Fail

1

Click here to load reader

Transcript of Fail

Page 1: 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.