Answered step by step
Verified Expert Solution
Link Copied!

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,

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions

Question

What is a sentence fragment? How do you fix it?

Answered: 1 week ago

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago