Design a C++ class to hold information of a Student. The information includes Student ID, Student Name, University, Couse and Course Price. Student ID is integer. Student Name contains no more than 25 characters. University contains no more than 30 characters. Course contains no more than 30 characters. Course Price is double. Write a C++ program to do the below tasks: Enter file name Add new student List all students Allow user to input name of file that contains data of all students. Allow user to add new information of one student. After check validation of all data, save this information into file that was inputted in task 2.1. Display all information of students in file that was inputted in task 2.1.
Explanation / Answer
PLZ Rate... Here is the Code... #include #include #include #include #include #include #include struct students { int id; char name[25]; char university[30]; char course[30]; double course_price; }; void outputLine( ostream &output, const students &instance ); void main() { int choice; string file_name; ofstream file; ifstream file1; do { clrscr(); cout