Question: Write a program that keeps track of students' information in a class. The program should use a structure ( name it Students ) to store
Write a program that keeps track of students' information in a class. The program should use a
structure name it Students to store the following data about a student:
name c string of capacity Name contains a space. You may hardcode
id integer
grade double
your program should keep an array of students. It should also have the following organization and menu
choices. Use a loop to allow the user to repeatedly choose from the following menu choices:
Edit a student
View a student's info
Display a count of how many students are in the list.
Quit display Finished
There is no need to create functions, but for each of the menu options:
Data Storage:
Data should be stored in an array of structures. The array should hold structures.
All elements of the array should be initialized to This will make it easy to determine if a
structure at an index position has been used to store a student's information see menu option and
const int SIZE ;
Students studentsSIZEinitialization should be done here
Input Validation:
For view option option Ask user to reenter an index if there is no student on that index ie
name is
User input for index must be between
Menu options can only be or
Other Requirements
Line separator used in the display has Define a string variable name "line" to handle this
task. string line;
Use cin.ignore between cin and getline function
Name should be a cstring, do not use string
Your output should be similar to the provided output attached below including format and
messages, although you can try different input. Copy and paste your output to the end of the
program, commented out, and separated by a line separator.
C ONLY PLEASE
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
