Question
There are two main systems for measuring distance, weight andtemperature, the Imperial System of Measurement and the MetricSystem of Measurement. Most countries use the Metric
There are two main systems for measuring distance, weight andtemperature, the Imperial System of Measurement and the MetricSystem of Measurement. Most countries use the Metric System, whichuses the measuring units such as meters and grams and adds prefixeslike kilo, milli and centi to count orders of magnitude. In theUnited States, we use the older Imperial system, where things aremeasured in feet, inches and pounds.
Write a program that shows the following menu options and letsthe user to convert from Metric to Imperial system:
Converter Toolkit
--------------------
1. Temperature Converter
2. Distance Converter
3. Weight Converter
4. Quit
- If the user enters 1, the program should ask for thetemperature in Celsius and convert it to Fahrenheit
- If the user enters 2, the program should ask for the distancein Kilometer and convert it to Mile
- If the user enters 3, the program should ask for the weight inKilogram and convert it to Pound
- If the user enters 4, the program should end.
I want the code have only these concepts:-
1. If else statements
2.Switch statements
3.
- Relational operators and logical operators
- Use of relational and logical operators to check numericranges
- User friendly
- Use of user-friendly user prompt and simple inputvalidation
- Use of meaningful output labels and format
- Use of output manipulators
- Working with string type
- Use of getline()
The programming language should be inC++.
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