Question: Student Grade Record System using File System Problem Description: You are tasked with creating a Java program for managing student grade records. The program should
Student Grade Record System using File System
Problem Description:
You are tasked with creating a Java program for managing student grade records. The program should allow teachers to input student grades, save them to a text file, and retrieve grade information.
Requirements:
Implement a Student class with the following attributes:
Student ID integer
Student Name String
Grades an array or list to store grades for different subjects
Create a GradeRecordManager class that includes the following functionalities:
Input Grades:
Implement a method to input student grades. The method should prompt the user to enter the student's ID name, and grades for multiple subjects. Save this information to a text file named "graderecords.txt
Retrieve Grades:
Implement a method to retrieve and display grades for a specific student. The method should prompt the user to enter the student's ID and then display the student's name and grades.
File Handling:
Use file system operations to read and write student grade information to the text file. Ensure proper exception handling.
Additional Considerations:
Include appropriate validation for user inputs eg nonnumeric grades, invalid IDs
Provide a userfriendly menu for the GradeRecordManager class to interact with different functionalities.
Create sample input data in the "graderecords.txt file for testing purposes.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
