Question: QUESTION 5: C PROGRAMMING Write a complete C program that begins by asking the user to enter the size of the array of students they

QUESTION 5: C PROGRAMMING Write a complete C program that begins by asking the user to enter the size of the array of students they would like to work with. The program then dynamically creates this array. The array is of type struct STUDENT and has the following fields: char name[50], int age, double gpa. The program then displays a text menu with the following options: (1) Add a student, (2) Delete a student, (3) Save all students, (4) Quit. The user stays in the menu until they select 4 to end the program. Option 1 asks the user to enter all the information for one student. It then asks for the cell number where the new student will be placed. If a student is already there it is overwritten without warning. The program does check if the cell number is valid. If it is not valid an error message is displayed and the user is prompted again to enter a cell number. This occurs until they enter a valid cel number. Option 2 only asks for a cell number. It validates that cell number and then deletes the information at the given cell number by assigning zero to the numbers and 10' to the array. Option 3 writes all the occupied fields of the array as a comma-separated-vector file named students.csv. f the file already exists a warning message prompts the user to confirm the overwrite. If they say no then nothing is saved. If they say yes then the previous file is overwritten
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
