Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need a modified version of the following code with the following function PROT

ID: 3547488 • Letter: I

Question

I need a modified version of the following code


with the following function PROTOYPES:



void ReadStudentData(ifstream& infile, StudentType*& student, int& numOfStudents);

StudentType* SortStudentsByName(const StudentType* student, int size);

StudentType* SortStudentsByScore(const StudentType* student, int size);


iam changing the existing prototypes with the same name to the 3 i just mentioned

The program runs great i just need to add these 3 functions and remove the old 3 functions with the same name

main program


1.Remove fixed-sized array


2. add a loop so that a user can open the students file several times, right now you can only do it once.

remember to deallocate memory at end of loop.If a file fails to open

you will need to handle this properly so that the program will allow the user to continue

the program and open another file.  


3. . Adjust your code to dynamically allocate the array used by

the program. Revise your variable declarations and your function arguments to handle

the pointer to the dynamic array. Test your program on an updated input file (i.e.: the

original data file had 23 students, 23 or a number ? 23 may now appear on the first line

of the file so that all the students with valid scores get into the course).


4.  In your ReadStudentData() function, you will first read the file

Explanation / Answer

AS DISCUSSED   

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote