Question

Draw flowchart AND write pseudo code You decide to write a program that figures how many...

Draw flowchart AND write pseudo code

You decide to write a program that figures how many gallons of gas you will need to take a road trip. The printout should contain the total amount of miles for the trip, the miles per gallon for your vehicle, and the total gallons needed for the trip.

Homework Answers

Answer #1

DECLARE : TOTAL_MILES,MILES_PER_GALLON,TOTAL_GALLON

OUTPUT: "Enter total distance in miles"
INPUT : TOTAL_MILES
OUTPUT: "Enter miles per gallon"
INPUT : MILES_PER_GALLON;

TOTAL_GALLON= TOTAL_MILES/MILES_PER_GALLON;

OUTPUT : TOTAL_MILES
OUTPUT : MILES_PER_GALLON
OUTPUT : TOTAL_GALLON


Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Draw flowchart AND write pseudo code User asks you to design a program that calculates the...
Draw flowchart AND write pseudo code User asks you to design a program that calculates the price of an item including sales tax. The program should print the total.
Draw flowchart AND write pseudo code Boeing 747 uses fuel at the rate of 4,776 gallons...
Draw flowchart AND write pseudo code Boeing 747 uses fuel at the rate of 4,776 gallons per hour at cruising speed and 2600 gallons for takeoff and 1500 gallons for landing. Calculate the fuel needed for a trip. User will input the trip length in hours.
Draw flowchart AND write pseudo code User asks you to develop a program to calculate and...
Draw flowchart AND write pseudo code User asks you to develop a program to calculate and print weekly payroll. Calculations must take into account the following: User input ? a. Income tax rate is rate is 15% (.15*salary) b. Social Security tax is 7.65% (.0765*salary) c. Display salary, income tax, social security tax, and net pay net pay=salary-income tax – social security tax
Draw flowchart AND write pseudo code for each of the following problems. 1. User asks you...
Draw flowchart AND write pseudo code for each of the following problems. 1. User asks you to develop a program that calculates and then prints interest earned on a bank balance. Program should print interest earned for the same balance when interest is accumulated annually, semiannually and quarterly. Interest earned yearly=balance * rate /100 for annual Interest earned semiannually =balance*rate/2/100 for semi annual Interest earned quarterly= balance*rate/4/100 for quarterly
Draw flowchart AND write pseudo code Ohm’s law state that volts (V) is Current (I) times...
Draw flowchart AND write pseudo code Ohm’s law state that volts (V) is Current (I) times resistance (R) V=I*R Calculate volts given the current and resistance for a circuit
1- Write algorithm (in pseudo-code) for the following problem: sum of the series: 1 +2+3+…+N 2-...
1- Write algorithm (in pseudo-code) for the following problem: sum of the series: 1 +2+3+…+N 2- Convert an algorithm to a flowchart diagram. 3- Counting the primitive operations of the algorithm. 4- Determine algorithm complexity. 5- Write a complete C++ program for the previous algorithm where the program should contain the following:  Display messages.  Input any number;  Display the series.  Display the sum of the series.
Write the Algorithm and Draw the flowchart for the following problem The city of Mr. Pleasant...
Write the Algorithm and Draw the flowchart for the following problem The city of Mr. Pleasant bills its residents for sewage, water and sanitation every three months. The sewer and water charge is figured according to how much water is used by the resident. The scale is Amount (gallons)Rate (per gallon) less than 1,000$0.03 1,000 to 2,000$ 30 + $0.02 for gallons over 1,000 greater than 2,000$50 + $0.015 for gallons over 2,000 The sanitation charge is $7.50 per month....
Write a program (also write its pseudocode and draw its flowchart) to prompt the user to...
Write a program (also write its pseudocode and draw its flowchart) to prompt the user to input the variables to solve the following problem: X2 + X×Y/Z – W*V3 Note 1: You should ask the user to input 5 number to be able to do this calculation. Note 2: You can use multiplication instead of power if you do not want to use it (as we have not officially covered it).
3. For this problem, you should describe the algorithm using a flowchart and then write Python...
3. For this problem, you should describe the algorithm using a flowchart and then write Python code to implement the algorithm. You will write the Python code in a Python program file and then run it to obtain the output. Include in your HW document a photo of your flowchart and a screenshot of your code and the output in IDLE you get when you run the program. Algorithm: Ask the user to enter the user’s first name, the number...
I need a Raptor Flowchart and a Java Source code for the following problem statement. Please...
I need a Raptor Flowchart and a Java Source code for the following problem statement. Please help! Problem specifications: You are tasked with developing an application that calculates the cost of a trip by a company salespeople consisting of the following type of expenses: -lodging. -meals. -gas. -tolls The salesperson will be refunded the total cost minus the cost of meals. Your application must prompt the user to enter all expenses, tally all expenses, and calculate how much, the company...