You will write a small unit converter for lengths, areas and volumes, and use it on a tank.
Your tasks.
length, return value changed from the unit start to the unit end.area, return value changed from the area unit start to the area unit end. For example area(1, "m", "cm") is the number of square centimetres in one square metre.litres to the capacity in litres of a tank long, wide and high.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…