Menu

[solved] – Question 69228

For example, in the “roster.txt” below, student A0110793H takes 3 modules of 4
credits each and obtains grades “A-“, “C” and “B+” in these three modules.
A0110793H 3 4 A- 4 C 4 B+
A0094679J 5 4 A+ 4 A+ 4 A+ 5 A 4 A
A0091900M 4 4 B- 4 A- 4 C+ 3 B+
A0091809X 6 3 B 2 B- 4 B 4 B+ 4 C+ 4 D+

(a) Write a function read_records() that reads 4 student records from
“roster.txt” and stores them in an array of student_t variables such that the first
array slot stores information of the first student, etc.
Function prototype is as follows.
void read_records(student_t stu[]);

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *