Question

In: Computer Science

Create a flowchart for the following: Mr. Arthur Einstein, your college physics teacher, wants a program...

Create a flowchart for the following:

Mr. Arthur Einstein, your college physics teacher, wants a program for English-to-Metric conversions. The program should be able to convert from kilometers to miles, kilograms to pounds, and liters to quarts. The program should first determine the type of conversion desired. To do this, the user will enter a letter indicating the type of measurement: pounds (P), miles (M), and quarts (Q). After doing this, the program should proceed to read the appropriate metric value and convert it to the correct imperial value. Use the following conversion factors:

1 kilometer = 0.621388 miles

1 kilogram = 2.2046 pounds

1 liter = 0.877193 quarts

Solutions

Expert Solution

Flow chart

Flow chart is the pictorial representation of a program.Following are the symbols used to draw a flow chart

  • Terminal or Oval symbol represent begining or end of a program.
  • Parallelogram symbol represent input/output operation.
  • Rectangle used to represents process.
  • Rombus symbol indicate decision making

Flow cahert of the given problem

Working

  • Read choice from the user
  • if the choice c is P, then kilograms to pound conversion will be done
  • if not check user input is M,if yes,then kilometers to miles conversion will be done
  • If it is false,then liters to quarts conversion will be done
  • Conversion is done by using the factors
  • 1 kilogram = 2.2046 pounds,1 kilometer = 0.621388 miles,1 liter = 0.877193 quarts
  • Result is printed

Related Solutions

create flowchart using Flowgorithm and Pseudocode for the following program example:   Design a program for Jones...
create flowchart using Flowgorithm and Pseudocode for the following program example:   Design a program for Jones College. The current tuition is $12,000 per year, and tuition is expected to increase by 5 percent each year. Display the tuition amount for each year over the next five years (use a looping structure).
For this assignment, you will create flowchart using Flowgorithm to represent the logic of a program...
For this assignment, you will create flowchart using Flowgorithm to represent the logic of a program that allows the user to enter a number of dollars and convert it to Euros and Japanese yen. You will have to do some research on current rates of monetary exchange for this one. Don't forget to declare your variables and use output statements to prompt the user to enter specific values prior to including an input statement. You will use an assignment statement...
Write a Python program that: Create the algorithm in both flowchart and pseudocode forms for the...
Write a Python program that: Create the algorithm in both flowchart and pseudocode forms for the following requirements: Reads in a series of positive integers,  one number at a time;  and Calculate the product (multiplication) of all the integers less than 25,  and Calculate the sum (addition) of all the integers greater than or equal to 25. Use 0 as a sentinel value, which stops the input loop. [ If the input is 0 that means the end of the input list. ]...
Conversion of numeral to roman number: Create a FLOWCHART and C++ PROGRAM that prompts the user...
Conversion of numeral to roman number: Create a FLOWCHART and C++ PROGRAM that prompts the user to enter a number (from 1-3000 only) then output the number and its corresponding roman numeral number. ***validate the input (it must be 1-3000 only) SAMPLE OUTPUT: Enter a Number: 0 Number should be from 1-3000 only (Terminated) Enter a Number: -5 Number should be from 1-3000 only (Terminated) Enter a Number: 3500 Number should be from 1-3000 only (Terminated) Enter a Number: 1994...
For college physics. Please write in paragraph form, typed. Thanks! Respond to the following: In your...
For college physics. Please write in paragraph form, typed. Thanks! Respond to the following: In your own words, explain potential energy, kinetic energy, conservation of energy and examples in daily life. In your own words, explain the definition of work in Physics. In your own words, explain Hooke's Law and elastic potential energy.
For College Physics. Please explain in paragraph form. Respond to the following: In your own words,...
For College Physics. Please explain in paragraph form. Respond to the following: In your own words, explain vector, scalar, speed, velocity, and linear acceleration. Also give examples.
Scenario 2: A computer teacher wants to know if a new training program in keyboarding will...
Scenario 2: A computer teacher wants to know if a new training program in keyboarding will improve the students typing speed. The teacher randomly selects ten students to participate in a week of training with the new program. The teacher times their speed before and after the program, to see if the program is worth the time and expense. The teacher hypothesized that the new training program will increase the students typing speed. Before Course After Course 50 55 42...
Using RAPTOR Create a flowchart and create the pseudocode for the following question Le Chef Heureux...
Using RAPTOR Create a flowchart and create the pseudocode for the following question Le Chef Heureux Restaurant has 20 tables that can be reserved at 5 p.m., 7 p.m., or 9 p.m. Design a program that accepts reservations for specific tables at specific times; the user enters the number of customers, the table number, and the time. Do not allow more than four guests per table or invalid table numbers or times. If an attempt is made to reserve a...
what is the flowchart in RAPTOR for the following: Write a program that allows a tax...
what is the flowchart in RAPTOR for the following: Write a program that allows a tax accountant to compute personal income tax. Your program will ask for a filing status (0 for single, 1 for married filing jointly, 2 for married filing separately) and a taxable income. The program will compute the tax. Please use the following chart to find the tax rate to use to compute the tax:  (0) Single: o $0 - $33,950 --> 10% o $33,951...
Instructions from your teacher: Write a Python program that does the following: Displays a welcome message...
Instructions from your teacher: Write a Python program that does the following: Displays a welcome message Prompts a user to enter a number (an integer), and then converts that value from inches to feet. If the user entered a negative number, display an error message telling the user that it was not a "positive " number and prompt the user to enter a number again. Displays the converted value, then " feet" Continue converting the user's valid values until the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT