Post a New Question

Programming

posted by .

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

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. Pseudocode programming

    I need a currency conversion application. It does not have to be written in an actual programming language, just the pseudocode as well as the elements listed below. Complete requirements analysis Design Verification Validation and …
  2. Computing

    Write a program that displays the following menu: 1 = Square 2 = Circle 3 = Ellipse 4 = End program When the user selects a shape from the menu, the program should ask for any necessary data, either: the length of the square’s side, …
  3. Information Technology

    I am pressed for time and need this assignment done by Sunday please. The language used is Java. I have attatched both worksheets to be used in this assignment. Thank you so much. Please reread the description of the Metric Conversion …
  4. Programming and Design

    Draw the hierarchy chart and design the logic for a program that calculates the projected cost of an automobile trip. Assume that the user's car travels 20 miles per gallon of gas. Design a program that prompts the user for a number …
  5. programming

    Pseudocode - Create the logic for a program that continuously prompts a user for a numeric value until the user enters 0. The application passes the value in turn to a method that squares the number and to a method that cubes the number. …
  6. programming pseudocode

    Create the logic for a program that continuously prompts a user for a numeric value until the user enters 0. The application passes the value in turn to a method that squares the number and to a method that cubes the number. The program …
  7. Programming

    Develop a menu-driven program that inputs two numbers and, at the user's option, finds their sum, difference, product, or quotient.
  8. Programming concepts

    Develop a menu-driven program that inputs two numbers and, at the user’s option, finds their sum, difference, product, or quotient. top-down modular approach and pseudocode to design a suitable program to solve it. I am having so …
  9. Computer Science/Pseudo Code Python

    Hi, I'm confused about an assignment. I'm not sure what to do and would like some help. An example: Write a program that obtains two integer numbers from the user. It will print out the sum of those numbers. Pseudo code: Prompt user …
  10. computer programming

    Design the pseudocode for a program that allows a user to enter 10 numbers, then displays them in the reverse order of their entry

More Similar Questions

Post a New Question