Question: 4. Converting distance values (25 pts) Write a program that converts distance values. The program should give the user three options: convert a whole number

4. Converting distance values (25 pts) Write a program that converts distance values. The program should give the user three options: convert a whole number of inches to feet and inches, convert feet and inches to decimal feet, or feet and inches to inches. Write the decimal feet to three decimal places. For example, 80 inches is 6 feet, 8 inches; 5 fect, 6 inches is 5.5 feet, and 4 feet, 2 inches is 50 inches. An example of output is provided below: hat would you like to do? Convert whole nunber of inches to feet and inches Convert feet and inches to decinal feet Convert feet and inches to inches 4. Exit nter 1. 2. 3. or 4 nter total inches (such as 6 88 8 inches is equal to 6 Feet 8 inches t would you like to do? Convert whole nunber of inches to feet and inches Convert feet and inches to decinal Feet Convert feet and inches to inches ha ? Exit nter 1. 2. 3. or The program will be named using your name, such as "JohnSmith 4.cpp
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
