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?
Transcribed Image Text:
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.
(Needed conversions: 1 centimeter = 0.393700787 inches; 1 foot = 12 inches; 1 yard = 3 feet)
Answer rating: 100% (QA)
Here is the code in Python PYTHON def centimeters to yards feet inches centimeters Converts centimetView the full answer