Maybe, maybe not. It depends on how much detail you are interested in. When you are doing the over-all design for something you leave out details. Later on, you might put it in.
The first design is a rough sketch. Details come later. Let's keep the plan as it is, but complete the first task with more detail. The first task is:
Get the number of Miles
Let us do this by:
' Get the number of Miles PRINT "What is the first reading" INPUT FIRST PRINT "What is the second reading" INPUT SECOND LET MILES = SECOND - FIRST
The rest of the program can remain the same as before:
' Get the number of gallons PRINT "How many gallons were used" INPUT GALLONS ' ' Calculate and print miles per gallon PRINT MILES / GALLONS, "Miles per Gallon" ' END
Now the first task is performed by using five statements.
Consider a direct airplane flight from Hartford, CT to Miami, FL. What are the three major parts of the flight?