Question: i have trouble understand what the note mean? Question 2 Write algorithn using pseudocode or flowchart that will calculate the value for Miles Per Gallon
Question 2 Write algorithn using pseudocode or flowchart that will calculate the value for Miles Per Gallon (MPG) for a distance of 31e miles and gasoline of 10 gallons. Miles per Gallon - distance travelled (in miles) / amount of gallons used Note that values for miles and gallons are NOT inputted as was done in the Algorithm in question 1 rather they are set to 310 and 10. Here is the solution in Pseudocode. Set distance to 310 Set gasoline Anount to 10 Compute milesPergallon - distance/gasoline mount Display "Miles Per Gallon is "enilesPergallon
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
