-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpseudocode for exam marks .txt
49 lines (27 loc) · 1.15 KB
/
pseudocode for exam marks .txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
question
“To help students determine whether they qualify for a supplementary exam, students can enter
their final module mark and exam mark on a webpage. If the student obtained more than 30% for
their exam mark and a final mark of less than 50%, the student will be informed that he/she
qualifies for a supplementary exam.”
Q.3.1 Write the pseudocode that will prompt a user for the required information and
accurately represent the logic contained in the scenario provided at the
beginning of the question
start
Declaration
num finalMark
num examMark
output "enter your exam mark"
examMark = Convert.ToInt32(ReadLine)
output " enter your final module mark "
finalMark = Convert.toInt32(ReadLine)
while ( examMark >= 30 )
output "your exam mark is:" + examMark + "you passed !"
if ( finalMark < 50 )
output "you qualify to write the supplementary test"
else if (finalMark > 50 )
output "you do not qualify to write the supplementary test"
else if (examMark < 30)
output " you failed "
endif
endwhile
stop