You will write four small functions that work out a reading of the vernier calipers or the screw gauge. They follow the rules of the lesson.
The idea. A vernier has a least count of one main scale division divided by the number of vernier divisions. A screw gauge has a least count of the pitch divided by the number of circular divisions. Every reading is corrected by taking away the zero error.
Your tasks.
vernier_least_count, return the least count for a main scale division msd and n vernier divisions.vernier_reading, return the corrected reading: the main scale reading plus the vernier division times the least count, minus the zero error.zero_error, return the zero error of a screw gauge in the units of the pitch. The closed reading closed is on a circular scale of divisions. A reading in the lower half is positive. A reading in the upper half is negative, times the least count.screw_reading, return the corrected reading: psr plus csr times the least count, minus the zero error.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…