Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a C++ program Problem 1. Write a program that asks the user to enter a number of inches on input. Then offer the user
Write a C++ program
Problem 1. Write a program that asks the user to enter a number of inches on input. Then offer the user a menu, to select to which length format the number of inches should be converted. The menu must give the user the options to convert the number of inches to feet, yards, or miles. In your code, you may use the an if/else or a switch statement for the menu. The menu should display the following format: Menu options: (F) eet (Y) ards (M) iles Select the conversion format F/Y/M and enter it here: If the user selects miles, for example, the user would enter capital letter M and the program would print to screen a message: The number of inches entered is: 2.5 miles. // the 2.5 value is just an example As part of your answer, run the program on 23000 inches and include the output for all three formats as a C++ comment, below your codeStep 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