Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 unit such as meters and grams in as prefix is like kilo, milli and centi to count orders of magnitude. in the United States, we use the imperial system, where things are measured in feet, inches and pounds.
Write a program that sbows the following menu options and lets the user convert from Metric to Imperial system.
CAN YOU PLEASE MAKE A Pseudocode/Flowchart for the project & a test plan, im confused on those.
Thanks!
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
CMSC 140 Programming Project 2 Chapter Covered: Chapter 4 Concepts tested in this project [ALL concepts from previous projects] Selection control structure The if statement The switch statement (optional) Relational operators and logical operators Use of relational and logical operators to check numeric ranges User friendly Use of user friendly user prompt and simple input validation Use of meaningful output labels and format Use of output manipulators Working with string type Use of gettine) 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, 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 Tooltid 1 Temperature Converter 2 Distance Converter B Quit . If the user enters the program should ask for the temperature in Celulusand convert it to Fahrenheit If the user enters 2. the program should ask for the distance in Kilometer and convert it to Mile the user enters 3. the program should ask for the weight in Kilogram and convert O Pound the user enters the program should end Project Specifications Input for this project: the user must enter an 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 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 kalogram = 2.2 pounds, The formula for converting Celsius degree to Fahrenheit is F = (9/5)32 where F is the temperature in Fahrenher and is the temperature in Celsius A Convert temperature to whole number such as 78. distance to two position after decimal point (for example 84.56] and weight to one position after decimal point For example 121.6). Sale Sauti 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 funt Thank you for testing my program!! PROGRAMMER: Tina Lee CMSC149 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 16.54) 111 Program does not convert negative distance 1 Russia sounds fun! Thank you for testing my programi PROGRARRER: Tine Lee CHSC140 C Project 2 Due Datei 9/24/2018 Program ended with exit code. Special Protection Remments Deliverables Intermediate deliverable: Program design- Flowchart and/or pseudo code for the Program due one week after project is given. An intermediate assignment will be created for submission. Flowchart/pseudo code can be submitted electronically in the following format: word documents pdf or handwritten flowchart/pseudo code picture saved as.jpg or pos. NOTE: Be sure to check also 1. CMSC140 Common Project Submission Requirements (.docx) 2. CMSC140 Grading Bubos Checklist-Project 2 (.xlsx) Test Plan Test your program with at least two more test cases. Use the given data as an example. Record your data for input and output in the following table. Make sure your tests cover all the possible scenarios. Test Case Input Actual Input Expected Output Actual Output pid the test pass? 198 Tchoice1 Temp 20 Choco Dance - OF Message

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

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions