Identifying the problem
components
Program development does not imply
automatic program coding.
A programmer should understand
the problem first in order to
provide practical solutions to it
to easily understand the problem, one must divide the problem into three
basic components
Table 1
Input, Process, Output
INPUT PROCESS OUTPUT
Sample #1
Ask the user to enter two numbers, add these
numbers, and display the result.
Sample #2
The program requires prompting the operator for a
worker’s hourly wage and the number of hours the
worker has worked for and prints the pay.
Sample #3
When Jacob began his trip from California to Vermont, he filled
his car’s tank with gas and reset its trip meter to zero. After
traveling 324 miles, Jacob stop at the gas station to refuel; the
gas tank required 17 gallons. Create a program that Jacob can
use to compute and display his car’s gas mileage (the number of
miles his car can be driven per gallon of gas)
Sample #4
A program that will receive two number items from a terminal
operator, and display to the screen their sum, difference, product,
and quotient.