Friday
May 24, 2013

Homework Help: Programming

Posted by Nyeel on Sunday, November 25, 2012 at 8:32pm.

How would the flow charts and pseudocode look for this?

The Metric Conversion application is a menu-driven program. First, the program displays a Main Menu that states the purpose of the program and allows the user to select one of five metric system measurements or quit the program in the following manner:

Press the 1 key to convert meters to U.S. yards
Press the 2 key to convert kilometers to U.S. miles
Press the 3 key to convert kilograms to U.S. pounds
Press the 4 key to convert milliliters to U.S. ounces
Press the 5 key to convert liters to U.S. gallons
Press the 6 key to quit the program

After the user selects a metric measurement and the program confirms the entry is valid, the program prompts the user to enter an amount of the selected metric measurement (0.0 to 10000.0). For example, if the user selected the first menu option, the prompt message should be displayed in the following manner:

Enter the amount of meters to convert:

After user enters a metric measurement amount and the program confirms the entry is valid, the program converts the metric amount to an equivalent amount of a corresponding U.S. measurement.

Finally, the program then displays the equivalent U.S. measurement amount in the following manner:

10.25 meters is equivalent to 11.2094 U.S. yards

Here are the metric system measurements and U.S. conversions to be used:
Conversion Type: Conversion Formula:
Meters to yards 1 meter = 1.0936 U.S. yards
Kilometers to miles 1 kilometer = 0.6214 U.S. miles
Kilograms to pounds 1 kilogram = 2.205 U.S. pounds
Milliliters to ounces 1 milliliter = 0.0338 U.S. ounces
Liters to gallons 1 liter = 0.264 U.S. gallons

No one has answered this question yet.

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

Pseudocode programming - I need a currency conversion application. It does not ...
Information Technology - I am pressed for time and need this assignment done by ...
Programming - Write a program that would calculate and display the results for ...
IT210 - I would really appreciate it if you can please explain how the following...
programming - I really need help on this I'm kind of confused on homework ...
Programming - Design a program in pseudocode that calculates the amount of money...
programming - Where do i get the info to make flow charts my teacher will not ...
programming - I am in a beginners class in computer programming and we have been...
programming - I am in a beginners class in computer programming and we have been...
programming - I am in a beginners class in computer programming and we have been...

For Further Reading

Search
Members
Community