Title: Input Process Output (IPO) and Structured/Hierarchy Charts
1Input Process Output (IPO) and
Structured/Hierarchy Charts
2Topics
- Input Process Output (IPO) Chart
- Hierarchy/Structured Chart
- Flow Chart
- Pseudo Code
- Source Code
3Design Steps and Tools
4Input -gt Process -gt Output (IPO)
5Input ? Process ? Output
6Input, Processing, and Output
- Three steps many programs perform
- Gather input data
- from keyboard
- from files on disk drives
- Process the input data
- Display the results as output
- send it to the screen
- write to a file
7Example1
Write a program that asks the user to enter a
temperature reading in centigrade and then prints
the equivalent fahrenheit value.
8Example2
Write a program that asks the user to enter
firstName and lastName and display a welcome
message to screen as Hello firstName lastName!
Welcome to HCCS
9Hierarchy/Structured Chart
10Hierarchy (Structured) Charts
- Depicts the logical functions to the solution of
the problem using a chart - Provides an overview that users and senior
management can use to confirm the solution to the
problem without excessive consideration to
detail. - High-level in nature
11Example1
Write a program that asks the user to enter a
temperature reading in centigrade and then prints
the equivalent fahrenheit value.
celsiusToFahrenheit (main function)
centigrade
fahrenheit
centigrade
fahrenheit
inputCent
calcFah
outputFah
12 Write a program that asks the user to enter
firstName and lastName and display a welcome
message to screen as Hello firstName lastName,
Welcome to HCCS!
Example2
displayWelcomeMsg (main function)
firstName lastName
welcomeMsg
output WelcomeMsg
inputNames