Question: The Input(cm) column does not need two decimal places and the the first value (row of zeros) also does not need two decimal places. Write

The Input(cm) column does not need two decimal places and the the first value (row of zeros) also does not need two decimal places. Write in code?
The success of ServerBox Co. has led to the hiring of thousands of workers from various countries, each using a different measurement system. To aid the company, a conversion script is necessary. The script should ask the user for four values in centimeters and convert them to their equivalent in yards, feet, and inches. Make sure you use a for loop to avoid repetition of code. Validate the input and do not accept any value less than zero. The output should be formatted in four columns, with two decimal places for each value, as shown in the example. Input (cm) 0 50 100 312 Yards 0 0.55 1.09 3.41 Feet 0 1.64 3.28 10.24 Inches 0 19.69 39.37 122.83 (Needed conversions: 1 centimeter = 0.393700787 inches; 1 foot = 12 inches; 1 yard = 3 feet)
Step by Step Solution
3.43 Rating (166 Votes )
There are 3 Steps involved in it
Here is the code in Python PYTHON def centimeterstoyardsfeetinchescentimeters Converts centimeters t... View full answer
Get step-by-step solutions from verified subject matter experts
