03 Input Process Output
03 Input Process Output
Chapter 3
IPO Chart
One of the first things we need to do in software development is understand the problem. We
cannot begin to plan the most effective solution until we properly understand what it is we are
trying to solve. Input Process Output tables, or IPO tables for short, are a valuable tool in helping
us formalize key aspects of the problem with respect to information. [1]
Output items
These are items of which we want to achieve. It is the goal in the problem.
Example 3-1:
The Philippine Pacific airplane has both business-class and economy seats. The business-class
tickets cost more than the economy tickets. The airline wants a program that calculates and
displays the total amount of money the passengers paid for a specific flight.
Input items
These are items required in order to achieve the goals or output items.
Example 3-2:
The Philippine Pacific airplane has both business-class and economy seats. The business-class
tickets cost more than the economy tickets. The airline wants a program that calculates and
displays the total amount of money the passengers paid for a specific flight.
Programming Logic and Design
Processing items
These are items that appear during the processing of the program.
Algorithm
It is a process or set of rules to be followed in calculations or other problem-solving operations,
especially by a computer.
Example 3-3:
The Philippine Pacific airplane has both business-class and economy seats. The business-class
tickets cost more than the economy tickets. The airline wants a program that calculates and
displays the total amount of money the passengers paid for a specific flight.
The algorithm or instructions to accomplish the output items or goals is presented below:
1. Enter the number of business-class tickets
2. Enter the number of economy-class tickets
3. Enter the price of the business-class tickets
4. Enter the price of the economy-class tickets
5. Calculate the total amount of business-class tickets by multiplying the number of
business-class tickets to the price of a business-class tickets
6. Calculate the total amount of the economy-class tickets by multiplying the number of the
economy-class tickets to the price of an economy-class tickets
7. Calculate the total amount of money the passengers paid for a specific flight by adding
the total amount of business-class tickets and the total amount of the economy-class
tickets
8. Display the total amount of money the passengers paid for a specific flight
Example 3-4:
Create an IPO chart for the problem.
Input Items
the number of business-class tickets
the number of economy-class tickets
the price of the business-class tickets
the price of the economy-class tickets
3-2
03 Input, Process, and Output (IPO)
Output Item
total amount of money the passengers paid for a specific flight
Processing Items
the total amount of business-class tickets
the total amount of the economy-class tickets
Algorithm
1. Enter the number of business-class tickets
2. Enter the number of economy-class tickets
3. Enter the price of the business-class tickets
4. Enter the price of the economy-class tickets
5. Calculate the total amount of business-class tickets by multiplying the number of
business-class tickets to the price of a business-class tickets
6. Calculate the total amount of the economy-class tickets by multiplying the number of
the economy-class tickets to the price of an economy-class tickets
7. Calculate the total amount of money the passengers paid for a specific flight by adding
the total amount of business-class tickets and the total amount of the economy-class
tickets
8. Display the total amount of money the passengers paid for a specific flight
Desk-check
A desk check is an informal non-computerized or manual process for verifying the programming
and logic of an algorithm before the program is launched. A desk check helps programmers to find
bugs and errors which would prevent the application from functioning properly. Although a useful
technique for spotting errors, modern debugging applications and tools have made desk checks
less relevant and not as essential as they previously were. [2]
Example 3.5
Desk-check the algorithm using 9, 52, ₱ 6,700, and ₱ 4,850 as the number of business-class tickets
sold, the number of economy tickets sold, the price of a business-class ticket, and the price of an
economy ticket, respectively.
3-3
Programming Logic and Design
References:
[1] R. Chadwick, "Input Process Output!," 2018. [Online]. Available: https://ryanstutorials.net/software-design-and-
development/input-process-output.php. [Accessed 2 July 2018].
[2] Techopedia, "What does Desk Check mean?," Techopedia, 2018. [Online]. Available:
https://www.techopedia.com/definition/18825/desk-check. [Accessed 3 July 2018].
3-4