Professional Documents
Culture Documents
Jo's Assignment 2
Jo's Assignment 2
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
Read
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