Question: Exercise 1: Use dynamic array to solve this exercise Write a native C++ program that allows an unlimited number of students data (students ID, names,
Exercise 1: Use dynamic array to solve this exercise Write a native C++ program that allows an unlimited number of students data (students ID, names, score, subject (at least one)) to be entered and stored in an array allocated in the free store. The initial array size should be five elements. The program should create a new array with five additional elements when necessary and copy values from the old array to the new. The program should be able to perform the following operations: - Read and store new students data into the list; - Delete student from the list; - Sort the student by score - And print the list of student. The output should be as follows: Students ID, followed by his names, followed the subject, followed by the test score, followed by the test grade. Assume the following grade scale: [90 100] = A; [80 90[ = B; [70 80[ = C; [60 70[ = D; [0 60[= F; (More than 100 and less than 0) = N.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
