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)
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...
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)
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
Recommended textbooks for you
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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
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
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY