Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Computer Performance Engineering 10th European Workshop Epew 2013 Venice Italy September 17 2013 Proceedings

Authors: Maria Simonetta Balsamo ,William Knottenbelt ,Andrea Marin

2013 Edition

3642407242, 978-3642407246

More Books

Students also viewed these Programming questions

Question

3-1. Give an example of hierarchical planning in an organization.

Answered: 1 week ago