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.
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
Get Answers For Free
Most questions answered within 1 hours.