Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started