Question
Use C++ to create an application that provide the menu with two following tasks. After finishing one task, the program should redisplay the menu to
Use C++ to create an application that provide the menu with two following tasks. After finishing one task, the program should redisplay the menu to allow users to continue using the program until users select 0 to exit:
menu
- Formula: Miles to Kilometers
- Formula: Kilometers to Miles
- Estimate: Miles to Kilometers
- Estimate: Kilometers to Miles
- Exit
Creating user-defined functions to define the action of each case:
CASE 1: Formula: Miles to Kilometers
Display the message to ask for input and read the number of miles that users want to convert to kilometers. Display the result in the following format:
case 2:same like 1 ,2 ,...
CASE 3: same like 1, 2 , ,...
case 4 : same like 2 ,3 ,...
CASE 1: Formula: Miles to Kilometers Display the message to ask for input and read the number of miles that users want to convert to kilometers. Display the result in the following format: File SP2021_Distance Converter_Martinez SP2021 - DISTANCE CONVERTER - LUIS MARTINEZ Miles to Kilometers Number of miles: Number of kilometers: 36.50 miles 58.74 km
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