Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please write out the code to this. Thank you! Program Summary Write a C++ object-oriented program to manage a file system for professors at Norfolk
Please write out the code to this. Thank you!
Program Summary Write a C++ object-oriented program to manage a file system for professors at Norfolk State University: First Name - string Last Name - string Department string Number of advisees - unsigned integer The program will manipulate the professor list based on the file professors.dat Class requirements 1. Create a professor class or struct based on the above professor structure 2. Create a professor class which contains two private members - an array of professors and the size of the array. The professor class will provide the following functionality. a. Load data from the data file professors.dat into the professor list 10 pts b. Retrieve and print a professor from the professor list 10 pts C. Insert a professor into the professor list 10 pts d. Delete a student from the professor list 10 pts e. Print the list of professors 10 pts f. Sort the professor list by last name 10 pts g. Print the name of the professor with the most students 10 pts h. Print the name of the professor with the least students 5 pts i. Print the average number of students per professor 5 pts Processing requirements 1. Load the professor file into an array called professors.dat 2. Create a menu to carry out the given operations 3. Implement input validation to avoid erroneous program errors 10 pts 4. Program must use appropriate functions be well commented 10 pts Structure of the file professors.dat - First Name, Last Name, Department, Number of adviseesStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started