A student measures four samples of a mystery metal: their volumes are , , and , and their masses , , and . You will make the program find each density in , the average, and the volume of of the metal. It then names the metal from a table and draws mass against volume.
The idea. , and . For one material, mass grows in step with volume, so the points lie on a straight line.
Your tasks.
d, the density of each sample in .average, the average of the four densities.volume_1kg, the volume of () of the metal, in .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…