You are on page 1of 5

CSC 126

Fundamental of Algorithms & Computer


Problem Solving

Project: Student Grader

Prepared by:
Mohamad Johari

CS1101D
Diploma in Computer Science (CS110)
September 2019 – January 2020

Prepared for:
Madam
Table of Contents

Contents Page

Flowchart 1

Source code 2

Samples of input and output 3


Flowchart
Begin

Read

stud_name, stud_id, test_mark, exam_mark

Calculate
total_mark = (test_mark / 100 * 40) + (exam_mark / 100 * 60)

Display
“Student with ID number: “ stud_name “obtains: “ total_mark

Display
true
If (total_mark > 80) “Grade obtained: A
Student Passed”
false

Display
true
If (total_mark > 70) “Grade obtained: B
Student Passed”
false

Display
true
If (total_mark > 60) “Grade obtained: C
Student Passed”
false
Display
true
If (total_mark > 50) “Grade obtained: D
Student Failed”
false
Display
true
If (total_mark > 0) “Grade obtained: F
Student Failed”

End

1
Source code

2
Samples of input and output

Sample 1

Sample 2

You might also like