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, mili and centi you count orders of magnitude. In United States, we use the older Imperial system, where things are measured in feet, inches and pounds. Write a program in c++ language that shows the following menu options and lets the user to convert from Metric to Imperial system: Convert 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 a 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 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 an appropriate error message if the input is invalid . Do not accept negative numbers for distance and weight. Be sure to display an 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, weight in pounds . A country name Processing requirements 1. The program should use at least one selection control structure (if statement or switch) preferably if statement!! 2. Be sure to convert as specified. For example, convert temperature from Celsius to Fahrenheit, not the other way around. 3. Use the following for converting input: . 1 kilometer = 0.6 mile . 1 Kilogram = 2.2 pounds . The formula for converting Celsius to Fahrenheit is: F = (9/5)*C + 32 where F is the temperature in Fahrenheit and C is the temperature in Celsius 4. Convert temperature to a whole number such as 78, distance to two positions after decimal point (for example 84.56) and weight to one position after decimal point(for example 121.6)

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Project description 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, mili and centi you count orders of magnitude. In United States, we use the older Imperial system, where things are measured in feet, inches and pounds. Write a program in c++ language that shows the following menu options and lets the user to convert from Metric to Imperial system: Convert 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 a 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 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 an appropriate error message if the input is invalid . Do not accept negative numbers for distance and weight. Be sure to display an 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, weight in pounds . A country name Processing requirements 1. The program should use at least one selection control structure (if statement or switch) preferably if statement!! 2. Be sure to convert as specified. For example, convert temperature from Celsius to Fahrenheit, not the other way around. 3. Use the following for converting input: . 1 kilometer = 0.6 mile . 1 Kilogram = 2.2 pounds . The formula for converting Celsius to Fahrenheit is: F = (9/5)*C + 32 where F is the temperature in Fahrenheit and C is the temperature in Celsius 4. Convert temperature to a whole number such as 78, distance to two positions after decimal point (for example 84.56) and weight to one position after decimal point(for example 121.6)
Sample Screen Output #2:
WORLD WIDE CONVERSIONS
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 a distance in Kilometers (such as 18.54): -8
!!! Program does not convert negative distance !!!
Russia sounds fun!
Thank you for testing my program!
PROGRAMMER: insert vour name here
esc
80
F3
14
F7
F2
!
@
#
$
4
%
&
*
1
2
3
5
6
8
Q
W
E
R
tob
A
SD
F
G H
ops lock
Transcribed Image Text:Sample Screen Output #2: WORLD WIDE CONVERSIONS 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 a distance in Kilometers (such as 18.54): -8 !!! Program does not convert negative distance !!! Russia sounds fun! Thank you for testing my program! PROGRAMMER: insert vour name here esc 80 F3 14 F7 F2 ! @ # $ 4 % & * 1 2 3 5 6 8 Q W E R tob A SD F G H ops lock
O Upload Assignment: Project #2-202130 - CMSC-140
Sample Screen Output:1H
WORLD WIDE CONVERSIONS
Enter a country name: United Kingdom
Converter Toolkit
1. Temperature converter
2. Distance converter
3. Weight Converter
4. Quit
Enter your choice (1 - 4) 1
Please enter a temperature in Celsius (such as 24): 20
It is 68 degrees Fahrenheit.
United Kingdom sounds fun!
Thank you for testing my program!
PROGRAMMER: insert your name here
esc
80
F3
000
00 SA
FI
F2
FS
F6
@
#
$
%
&
2
3
4
5
6
W
E
R
tab
Transcribed Image Text:O Upload Assignment: Project #2-202130 - CMSC-140 Sample Screen Output:1H WORLD WIDE CONVERSIONS Enter a country name: United Kingdom Converter Toolkit 1. Temperature converter 2. Distance converter 3. Weight Converter 4. Quit Enter your choice (1 - 4) 1 Please enter a temperature in Celsius (such as 24): 20 It is 68 degrees Fahrenheit. United Kingdom sounds fun! Thank you for testing my program! PROGRAMMER: insert your name here esc 80 F3 000 00 SA FI F2 FS F6 @ # $ % & 2 3 4 5 6 W E R tab
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY