Question: please solve 3. Write a program to convert a person's height in feet and inches into a height in centimeters. Note that both the feet

please solve
please solve 3. Write a program to convert a person's height in

3. Write a program to convert a person's height in feet and inches into a height in centimeters. Note that both the feet and inches should be entered as an integer. The centimeters should be a real value. Assume that 1 inch is 2.54 centimeters. For example, if a person is 5 feet 7 inches, the program first calculates the total inches, which is 67 inches. Then convert the total inches to centimeters. The following is a sample run. > run HeightConversion Enter your height in feet and inches: Your height in centimeters is 170.18

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!