Question: Your project manager has tasked you to implement the following requirements: Create a StudentRecord class, with the following properties and method: - StudentID: Unique identifier

Your project manager has tasked you to implement the following requirements:
Create a StudentRecord class, with the following properties and method:
- StudentID: Unique identifier for each student.
- Name: Student's name.
- CourseGrades: List of CourseGrade objects where each object contains a course name and its corresponding grade.
- UpdateGrade(string course, double newGrade): Updates the grade for a specific course.
Define a RecordsManager class with the following properties and methods:
- RecordsFilePath: The path to the file storing academic records.
- StudentRecords: A list of StudentRecord instances.
- LoadRecords(): Reads the records from a file using StreamReader.
- SaveRecords(): Writes the records to a file using StreamWriter.
- FindRecord(string studentID): Retrieves a student's record by ID.
- UpdateRecord(string studentID, string course, double newGrade): Updates a student's grade for a specific course.
Building on the requirements outlined in question 3.1, you are now required to implement and simulate the system:
- Instantiate the RecordsManager and initialize it with a file path.
- Populate the RecordsManager with initial data for 10 students and save it to the file.
- Read the records back from the file to confirm they are stored correctly.
- Update some of the student records and demonstrate how changes are logged.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!