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

  1. 👍 0
  2. 👎 0
  3. 👁 133
asked by Nyeel

Respond to this Question

First Name

Your Response

Similar Questions

  1. 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

    asked by Nyeel on November 24, 2012
  2. 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

    asked by Rick on July 24, 2007
  3. Programming Logic

    How do I write case logic pseudocode and visual logic nested if-then-else flow charts for atm check balances, making remote photo capture check deposits, and perform balance transfers?

    asked by Ryan on May 14, 2013
  4. programming

    Where do i get the info to make flow charts my teacher will not respond to me and I don't know what to do i also need to make a hierarchy chart both items are on currency conversion can anyone help me I cant afford to fail this

    asked by steve on October 11, 2009
  5. history ish

    The U.S is the only country currently not using the metric system as its primary system of measurement. Imagine uou have been appointed to the Board in the US Trade and Commerce department that is trying to rewrite the metric

    asked by Chopsticks on February 10, 2009
  1. Programming

    Using your knowledge of pseudocode, conditional statements, and loops create a pseudocode document and flow chart that displays all numbers from 20 to 1 and indicate if the number is prime as it displays

    asked by E on January 22, 2011
  2. geometry

    I don't really understand the whole idea of Flow Charts. Can someone explain them to me? My geometry teacher doesnt do a good job explaining it. I don't understand the book either Since this is not my area of expertise, I searched

    asked by Te ZiL on September 15, 2006
  3. Information Technology

    Develop an algorithm, flow chart and pseudocode that accept as input three unit test scores and a project score for seven students. The algorithm, flow chart and pseudocode should accept seven examination scores. The students's

    asked by Sophia on October 23, 2012
  4. Science

    Is there an easier way to understand how to convert gallons to liters I am having problems understanding the whole metric conversion process. I don't know what method you are using so I don't know if I know an easier one or not. I

    asked by Somer on October 13, 2006
  5. Metric System

    I have two queations that have to do with the metric system: 1- What connections can you identify between the metric units for length and volume? 2- Why is it difficult to convert miles to yrads or feet? Thanks in advance for your

    asked by Olivia on August 18, 2005

More Similar Questions