Using Cstructs Write a program that performs the following 1
Using C++(structs)
Write a program that performs the following:
1. Presents the user a menu where they choose between:
a. Add a new student to the class
i. Prompts for first name, last name
ii. If assignments already exist, ask user for new student’s scores to assignments
b. Assign grades for a new assignment
i. If students already exist, prompt user with student name, ask them for score
ii. Students created after assignment will need to have score provided
c. List one student, displaying all their grades and their course average
i. Prompt user for student, telling them which inputs are valid
ii. If no students and/or no assignments, tell user to try after data input
d. List all the scores for a chosen assignment
i. Prompt user for assignment, telling them which options are valid
ii. includes class average
iii. if no valid assignments and/or students, tell user to try after data input
e. Display all grades currently contained in the gradebook
i. If no students, tell user gradebook is empty
f. Exit the program
2. Return to step 1
For your program you will be using an array (size: 10 elements) of the Student struct, which contains First Name, Last Name (char arrays or strings), and 10 assignment scores (double). Keep track the number of students and number of assignments with variables (might need to pass them to functions as arguments). If the user tries to add students or assignments when they are already full, they should get an error message.
Input should accept either a single lowercase char or an integer, prompts should tell user what to enter.
Solution
Output

