Problem 5 IPO Chart Algorithm Flowchart Trace Table Pascal Program
Problem 5 IPO Chart Algorithm Flowchart Trace Table Pascal Program
Ali
4.2 IT
Problem #5
I.P.O Chart.
Pseudocode Algorithm
START
Read mark
If mark >= 50 then
Print ‘This student has passed’
Else
Print ‘This student has failed’
End if
STOP
Rayad S. Ali
4.2 IT
Flowchart
START
Read mark
YES NO
mark >= 50
STOP
Rayad S. Ali
4.2 IT
Trace Table
Test Data
Test Data Set #1
Mark=75
Pascal Program
Program Student_Passed_or_Failed; // This is the Program Header //
//This program accepts a student’s mark. If the student’s mark is
greater than or equal to 50, it prints “This student has passed”. If the
student’s mark is less than 50, it prints “This student has failed”.//