Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started