Problem 7 IPO Chart Algorithm Flowchart Trace Table Pascal Program
Problem 7 IPO Chart Algorithm Flowchart Trace Table Pascal Program
Ali
4.2 IT
Problem #7
Write a program that accepts two whole numbers. It then determines
which number is larger and prints the larger number of the two
numbers.
I.P.O Chart.
(3).Determine if Number
1 is larger than Number 2
Pseudocode Algorithm
START
Read Num1
Read Num2
If Num 1 > Num2 then
LargeNum=Num1
Print LargeNum
Else
LargeNum=Num2
Print LargeNum
End if
STOP
Rayad S. Ali
4.2 IT
Flowchart
START
Read Num1
Read Num2
Yes No
Num1>Num2
LargeNum=Num1 LargeNum=Num2
STOP
Rayad S. Ali
4.2 IT
Trace Table
Trace Table
Pascal Program
Rayad S. Ali
4.2 IT