Question: A program that define a structure named student with the following members: firstname, lastname, middlename, studentID, grade, average, sum and descript studentID- must generate a
A program that define a structure named student with the following members: firstname, lastname, middlename, studentID, grade, average, sum and descript
studentID- must generate a random generated number with 10 digits starting with 2021 (e.g 2021150412)
grade is an array with 5 elements
descript- will contains PASS or FAIL
Also, you need to create an object named stud for structure student with an array size of 5.
You need to compute for the average and equivalent grade of each students. Then You need to create an output streaming to send the output on a text file named completion.txt. Make sure that your text file is working and if we re-run the program, make sure that the next data will append to the existing data in completion.txt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
