0% found this document useful (0 votes)
40 views8 pages

Identifying The Problem PDF

The document discusses identifying the problem components of a program by dividing it into input, process, and output. It provides examples of problems and their corresponding input, process, and output components.

Uploaded by

Shineii
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views8 pages

Identifying The Problem PDF

The document discusses identifying the problem components of a program by dividing it into input, process, and output. It provides examples of problems and their corresponding input, process, and output components.

Uploaded by

Shineii
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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.

You might also like