Professional Documents
Culture Documents
Program Design Example 2
Program Design Example 2
Design a program that will check if a student has passed or failed an assessment. The pass mark for a
course is 50%. Each student is to provide their name, sin and percentage they received in the
assessment. Inform the student of their status whether passed or failed.
You are required to:
1. Write a table of steps (Operations) that will be used in the program design. The table
should include the name of the program, inputs, Decisions (if any), Processes (if any),
and Outputs
2. Write the Pseudo Code for your program
3. Draw a Flow chart that will show how the above program operations will run.
ANSWER
1. Table of Steps (Operations)
From the given information in the question, the following operations will be
necessary for us to design the program
Begin
Input: Name
Input: SIN
Decision: If
Process: [No] Percentage [Yes] Process:
Status = Failed Received >= Status = Passed
50%
Output: Status
End