You will write four small functions for the first two lessons. One gives the result of the copper(II) sulfate test. One decides whether a sample could be pure water from its melting point and boiling point. One finds the chlorine for a tank. One finds the volume of water that a cylinder of chlorine can treat.
The idea. Anhydrous copper(II) sulfate is white and turns blue with water. Pure water melts at and boils at . A tank of cubic metres at a dose of milligrams for each dm³ needs grams of chlorine.
Your tasks.
test_result(has_water), which gives "blue" or "white".looks_pure(melting, boiling), which is true when both points are within of the pure values.chlorine_grams(volume_m3, dose).cylinder_treats(cylinder_kg, dose), which gives the volume of water in cubic metres.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…