Design a Flowchart for the following Pseudocode:

START
GET distance
GET gallons
SET mpg = distance/gallons
PRINT mpg
STOP

Run the flowchart and check the output( mpg ) for the following input:

  • distance = 50.5
  • gallons = 7.5