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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!