this assignment is going to be checked on Moss deduction ! could help me please?  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 cent to count orders of magnitude. In the United States, we use the older Imperial system, where things are measured in feet, inches, and pounds.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 28PE
icon
Related questions
Question

Hi there, 

this assignment is going to be checked on Moss deduction ! could help me please? 

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 cent 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 convert it to Fahrenheit

 

  • If the user enters 2, the program should ask for the distance in Kilometer and convert it to Mile

 

  • If the user enters 3, the program should ask for the weight in Kilogram and convert it to Pound

 

  • 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 temperature in Celsius
  • the user must enter distance in Kilometer
  • the user must enter weight in Kilogram
  • 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.

 

 

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
  • Programmer’s full name
  • project number
  • a due date

thank you in advance for help and advice. 

Processing Requirements
1. The program should use at least one selection control structure (if – else
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 degree 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).
5. Use C++ constants to store all permanent data.
6. Don't use numbers of literals, such as 9, 5, 32. Instead use constants.
7. Your program should do all calculations using C++ expressions (Don't use
calculators for any calculations)
Transcribed Image Text:Processing Requirements 1. The program should use at least one selection control structure (if – else 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 degree 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). 5. Use C++ constants to store all permanent data. 6. Don't use numbers of literals, such as 9, 5, 32. Instead use constants. 7. Your program should do all calculations using C++ expressions (Don't use calculators for any calculations)
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 tempearture in Celsius (such as 24 ): 20
It is 68 in Fahrenheit.
United Kingdom sounds fun!
Thank you for testing my program!!
PROGRAMMER: Tina Lee
CMSC140 Common Project 2
Due Date: 9/24/2018
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: 0
Transcribed Image Text: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 tempearture in Celsius (such as 24 ): 20 It is 68 in Fahrenheit. United Kingdom sounds fun! Thank you for testing my program!! PROGRAMMER: Tina Lee CMSC140 Common Project 2 Due Date: 9/24/2018 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: 0
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 8 steps with 6 images

Blurred answer
Knowledge Booster
Graphical User Interface
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage