Question: Height write a program that converts a person's height rom metres to centimetres cm, and then from centimetres to feet ft and inches in Your

 Height write a program that converts a person's height rom metresto centimetres cm, and then from centimetres to feet ft and inches

Height write a program that converts a person's height rom metres to centimetres cm, and then from centimetres to feet ft and inches in Your program will get the height in metres from command line arguments. You can assume this height will be given to two decimal places The centimetres, feet and inches should be calculated by rounding down to the nearest integers. For example, 11.85 inches would be rounded down to 11 inches Conversion formulas: ft 39.48 cm 1ft = 12 in 1 in2.54 cm 1 cm- (1 / 30.48) ft 1 in(1/12) ft cm = (1 / 2.54) in

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!