Program that shows the menu options

Assignment Help C/C++ Programming
Reference no: EM132432109

Project Description

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 toFahrenheit
  • If the user enters 2, the program should ask for the distance in kilometers and convert them to miles.
  • If the user enters 3, the program should ask for the weight in kilograms and convert them to pounds.
  • If the user enters 4, the program should end.

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.
  • Do not accept zero for distance and weight.Be sure to display appropriate error message if the input is invalid.

Examples.JPGProcessing Requirements

1.  The program should use at least one selection control structure (if - else statement)

2.  Use the following for converting input (these are constants):

  • 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

3.  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).

Reference no: EM132432109

Questions Cloud

Incorporate the concepts that you have learned : For part one of this project, you will incorporate the concepts that you have learned so far in the course.
Discusses effect of government intervention on recessions : Discusses the effect of government intervention on recessions. You need to focus on the Abstract, Introduction, Results, and Conclusion.
Discuss the Technologys impact on human rights : Discuss the Technologys impact on human rights so my part is Artificial Intelligence and Robotics.
Think about the products that you use : Think about the products that you use. Are there products that you feel did a good job of ensuring security during setup?
Program that shows the menu options : Program that shows the following menu options and lets the user to convert from Metric to Imperial system:
Pro forma forecast for real company : Pro forma forecast for a real company: the students will pick a real-world company and forecast its AFN
What is the estimated NPV of the project : What is the estimated NPV of the project if the after-tax cost of capital (discount rate) is 12%? Use the built-in NPV function in Excel
Define the terms Racism and the shifting political landscape : Define the terms Racism and the shifting political landscape,Public health and reducing disease and accidental death,Voting right and violence,Personal change
Implementations of fibonacci number program : Discuss the implementations of the Fibonacci Number program at the end of this section to consolidate the students' understanding of the while loop repetition

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd