Question: Write a program that converts centimeters to inches. Your program should prompt the user to enter a height in centimeters, convert it to inches, and

Write a program that converts centimeters to inches. Your program should prompt the user to enter a height in centimeters, convert it to inches, and print the result to the console. Note that 1 inch = 2.54 centimeters. Below is a sample run: Please enter your height in centimeters: 175.00 centimeters is equivalent to 68.90 inches

the program has to be written in java

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!