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 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
Get step-by-step solutions from verified subject matter experts
