Sheet 6 Model Answer
Sheet 6 Model Answer
- Action Symbol.
e. List any two methods used for debugging the program.
- Break points, simulators.
f. List any two situations where the maintenance stage of program development
becomes essential.
- Change in specification, change in equipment.
Start
Percentage = ((g1+g2+g3+g4+g5)*100)/500
Yes
Is Print
Percentage >= 90 A
No
Yes
Is Print
Percentage >= 75 B
No
Print
C
Start
- Pseudocode
Start
Input s1, s2
Print Perimeter
Area = s1 * s2
Print Area
End
- Pseudocode
Input s1, s2
Compute Perimeter = (s1 + s2) * 2
Print Perimeter
Compute Area = s1 * s2
Print Area
c) Input 30 students name and ICT mark, calculate the subject average and
print “Good Class” if average is greater than or equal 50, otherwise print
“Bad Class”.
- Flowchart
-
Start
I=1
No
I <= 30 End
Yes
Yes No
Is
ICT_Mark_Average
>= 50
I=I+1
- Pseudocode
Initialize I = 1
While I <= 30
Input Student_Name, ICT_Mark_Average
IF ICT_Mark_Average >= 50 Then
Print “Good Class”
Else
Print “Bad Class”
End IF
I=I+1
End While