Question
Project Description: **Use C++ program** There are two main systems for measuring distance, weight and temperature, the Imperial System of Measurement and the Metric System
Project Description:
**Use C++ program**
There are two main systems for measuring distance, weight and temperature, the Imperial System of Measurement and the Metric System of Measurement. Most countries use the Metric System, which uses the measuring units such as meters and grams and adds prefixes like kilo, milli and centi to count orders of magnitude. In the United States, we use the older Imperial system, where things are measured in feet, inches and pounds.
Write a program that shows the following menu options and lets the 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 the temperature in Celsius and then convert it to Fahrenheit
If the user enters 2, the program should ask for the distance in Kilometers and convert it to Miles
If the user enters 3, the program should ask for the weight in Kilograms and convert it to Pounds
If the user enters 4, the program should end.
Project Specifications
Input for this project:
the user must enter an number to select a menu option
the user must enter a temperature in Celsius
the user must enter a distance in Kilometers
the user must enter a weight in Kilograms
the user must enter a country name
Input Validation:
Do not accept a number outside the range of 1 through 4 for the menu option. Be sure to display appropriate error message if the input is invalid.
Do not accept negative numbers for distance and weight. Be sure to display appropriate error message if the input is invalid.
Show the country name and the wrap up info, even if the number or values are invalid.
Output: The program should display the following:
a menu for Converter Toolkit
temperature in Fahrenheit, distance in miles or weight in pounds
a country name
Programmers full name
project number
a due date
Processing Requirements
The program should use at least one selection control structure (if else statement or switch)
Be sure to convert as specified. For example, convert temperature from Celsius to Fahrenheit, not the other way around.
Use the following for converting input:
1 kilometer = 0.6 mile,
1 kilogram = 2.2 pounds,
The formula for converting Celsius degree to Fahrenheit is:
F = (9/5)*C + 32 where F is the temperature in Fahrenheit and C is the temperature in Celsius
Convert temperature to a whole number such as 78, distance to two positions after the decimal point (for example 84.56) and weight to one position after the decimal point (For example 121.6).
E.G.:
Sample Screen Output #2: Enter a country name: Russia Converter Toolkit 1. Temperature Converter 2. Distance Converter 3. Weight Converter 4. Quit Enter your choice (1-4): 2 Please enter distance in Kilometer (such as 18.54) -8 !!Program does not convert negative distance !!! Russia sounds fun! Thank you for testing my program!! PROGRAMMER: Tina Lee CMSC140 Common Project 2 Due Date: 9/24/2018 Program ended with exit code: 0Step 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