Names: Toni Oliver
Shania Mckenzie
Marina Punnett
Cristine Veira
Form 5I
17th November 2017
Problem Definition #1
Develop an algorithm in flowchart and pseudocode that will accept students
name and marks for the nine (9) subjects taken. The program should produce a
printout for each student stating whether they will sign up or not for each
subject. The fees include (1). The registration fee which is a onetime fee of $40
that all candidates writing the examinations must pay to register and (2). The
subject fee which is calculated by multiplying the number of subjects taken by
$38.50. The program should calculate and display the total number of subjects
signed up for, the exam fees due as well as the overall sum of exam fees to be
collected. The programme loop should end after 10 candidates have been
entered.
Input, Processing and Output Chart (IPO)
INPUT PROCESSING OUTPUT
Name CFee=40 Name of Student
Math SFee=38.50 Total # of subjects
English B If Maths > 55 then Y else N Total exam fee
English A If Eng B > 55 then Y else N
Geography If Eng A > 55 then Y else N
History If Geo > 55 then Y else N
Biology If History > 55 then Y else N
Chemistry If Bio > 55 then Y else N
I.T If Chem > 55 then Y else N
Physics If I.T. > 55 then Y else N
OR If Physics > 55 then Y else N
Subject Count 1-10
Mark Total exam fee = Y >=55
IF Subject = Maths and Mark >55
then
Sign Up= Y
Else
Sign Up= N
Pseudocode
1. Start
2. Set C_Fee -> $40
S_Fee ->$38.50
Set Number of subjects =0
3. Input S_NAME
4. Input: Math-
English A-
English B-
Spanish-
French-
I.T-
Physics-
Biology-
Chemistry-
5. If: Math >=55 then NOS=NOS+1
Else NOS+0
English A>=55 then Y
Else N
Spanish>=55 then Y
Else N
French>=55 then Y
Else N
I.T>=55 then Y
START
i 0
r_fee40
s_fee38.50
WRITE “Enter the name of the
student”
READ student_name[i]
Total_fee[i]<- total_fee[i] + r_fee
WRITE “Enter the grades of the student for
each subject (maths, English b, English a,
geography, history, biology, chemistry. IT.
Physics) “
READ marks_maths[i], marks_engb[i],
marks_enga[i], marks_geography[i],
marks_history[i], marks_biology[i],
marks_chemistry[i], marks_it[i],
marks_physics[i]
IF
marks_maths[i
]> =55
THEN
- WRITE “ Student will sign up
for maths”
1
1
2
2
STOP
Problem Definition #2
Construct a trace table that accepts the names and marks of five (5) students.
The program should determine for each subject whether the student will sign
up or not and calculate the number of subjects for each student. An additional
Lab fee of $20 each is added for students who are signed up for Physics and/or
Chemistry. The sum of the exam fees plus the lab fees should be calculated for
each student.
First Name Last Name Biology Chemistry English A English B Geography History I.T Mathematics Physics
Cruz Halbich 53 65 78 56 85 75 85 68 86
Darrion Myers 43 26 79 77 78 35 89 65 34
Christian Warner 67 58 85 96 85 56 75 84 73
Shane Cadogan 32 69 78 46 87 65 90 87 91
Alex Cyrus 77 36 64 63 92 86 35 64 79