Write a C++ program to create a database for a constant number of students (for example…
- User
Write a C++ program to create a database for a constant number of students (for example 10) using only 2 arrays: the first is the students’ names (string), the second array is the students’ marks of 1 subject (float) Required: A menu of choices (min 8 choices) using switch-case (using for loop inside each case except the case of exit) 1- Fill the students’ data (enter the name and mark) 2- Print (Display) the students’ data in a table form 3- Print the sum and average of the marks 4- Print the succeeding students (mark>=60) 5- Print the failed students (mark<60) 6- Print the students having the maximum mark 7- Print the students having the minimum mark 8- Search for a student by his/her name 9- Search for a student by his/her mark 10- Exit (Ends the program) This menu should be repeated (using do-while) until the user enters the choice of exit (10) Note: The user should choose “1” first to fill the data. If the user chose any other choice, a message “Wrong Choice, you must chose “1” first “ should appear on the screen until the user enters “1”
- Assistant