You will write three functions for an electroplating job. One finds the electrons that deposit a given mass of metal. One finds the thickness of a coat. One checks a plating set-up.
The idea. A metal ion with a charge of takes electrons, so electrons . The coat is a layer, so its volume is and its thickness is that volume divided by the area. In a plating set-up the object is the cathode, the anode is the plating metal and the electrolyte contains ions of the plating metal.
Your tasks.
electrons_for_mass(mass, ar, charge).thickness_um(mass, density, area). The answer is in micrometres. One centimetre is micrometres.good_setup(cathode, anode, electrolyte_ion, plating_metal). It returns True only if all three rules are met.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…