C++ programming

Write a program given the following conditions:

  1. The program should will declare a structure for Student Records that will contain the following:
    a. First Name
    b. Last Name
    c. Gender
    d. Grades per Subject:
    i. English
    ii. Mathematics
    iii. Science
    iv. Computer
  2. The program should will ask for the number of students in the class. The minimum students in a class should be 5 and the maximum is 20 students only. Validate the users’ input and provide the necessary message to correct the input.
  3. The program should collect all the student record information and place it in an array of the student records.
  4. The program should compute for the average grade of the four subjects and store it in the students’ record under the variable Average_Grade.

Sample Solution