Fail
1
Click here to load reader
-
Upload
unit-kediaman-luar-kampus -
Category
Documents
-
view
22 -
download
3
Transcript of Fail
1. MTS 3013 has N number of students. At the end of the semester, the lecturer wants to keep the
students’ coursework (name, matrix num and total mark) in a file name cwork.dat. Write a
program to perform this task.
2. Based on the file cwork.dat, write a program to calculate number of students who get grade A, B
and C and display the result. The grade is based on the following marks:-
100<= mark< 80 A
80<=mark<=60 B
<60 C
Your program also should display the student’s name who get grade C.