Question: 3. Write a C++ program that defines a structure which represents a student record the fields: ID, Name, five subject scores (sc1, sc2, sc3, sc4,

 3. Write a C++ program that defines a structure which represents

3. Write a C++ program that defines a structure which represents a student record the fields: ID, Name, five subject scores (sc1, sc2, sc3, sc4, sc5), the average score and the grade letter. a. Define an array of 50 students. b. Read the structure for each student. c. Compute the average and grade letter for each student according to the following rule: i. Grade 'A' for average 90 ii. Grade 'B' for average80 and less than 90 iii. Grade 'C' for average >= 70 and less than 80 iv. Grade D for average >= 60 and less than 70 v. Grade 'F for average less than 60 d. Print the contents for each student structure e. Display all the records sorted alphabetically according to the students' names

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!