close

Вход

Забыли?

вход по аккаунту

код для вставкиСкачать
Design Tools Part1
Input Process Output (IPO)
and Structured/Hierarchy
Charts
Topics
1.
2.
3.
4.
5.
Input Process Output (IPO) Chart
Hierarchy/Structured Chart
Flow Chart
Pseudo Code
Source Code
4/20/2015
Design Tools Part1
2
Design Steps and Tools
IPO Chart
Hierarchy or
Structured Chart
Flow Chart
Pseudo Code
Source Code
4/20/2015
Design Tools Part1
3
Input -> Process -> Output (IPO)
4/20/2015
Design Tools Part1
4
Input  Process  Output
Data
4/20/2015
Information
Design Tools Part1
5
Input, Processing, and Output
Three steps many programs perform:
1) Gather input data:
-
from keyboard
from files on disk drives
2) Process the input data
3) Display the results as output:
-
4/20/2015
send it to the screen
write to a file
Design Tools Part1
6
Example1
Write a program that asks the user to enter a
temperature reading in centigrade and then prints the
equivalent fahrenheit value.
Input
centigrade
4/20/2015
Process
Prompt for centigrade value
Read centigrade value
Compute fahrenheit value
Display fahrenheit value
Design Tools Part1
Output
fahrenheit
7
Example2
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”
Input
firstName
lastName
4/20/2015
Process
Prompt for firstName, lastName
Read firstName, lastName
Display welcomeMsg
Design Tools Part1
Output
welcomeMsg
8
Hierarchy/Structured Chart
4/20/2015
Design Tools Part1
9
Hierarchy (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
4/20/2015
Design Tools Part1
10
Example1
Write a program that
asks the user to enter a
temperature reading in
centigrade and then
prints the equivalent
fahrenheit value.
Input
centigrade
4/20/2015
celsiusToFahrenheit
(main function)
centigrade
fahrenheit
centigrade
inputCent
Process
Prompt for centigrade value
Read centigrade value
Compute fahrenheit value
Display fahrenheit value
Design Tools Part1
fahrenheit
calcFah
outputFah
Output
fahrenheit
11
Example2
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!”
displayWelcomeMsg
(main function)
firstName
lastName
welcomeMsg
output
inputNames
WelcomeMsg
Input
firstName
lastName
4/20/2015
Process
Prompt for firstName, lastName
Read firstName, lastName
Display welcomeMsg
Design Tools Part1
Output
welcomeMsg
12
1/--страниц
Пожаловаться на содержимое документа