Please write a java application. The application should
allow:
1. Collect student information and store it in a binary data
file. Each student is identified by an unique ID. The user
should be able to view/edit an existing student. Do not allow the
user to edit student ID.
2. Collect Course information and store it in a separate data
file. Each course is identified by an unique ID. The user should be
able to view/edit an existing course information. User is not
allowed to edit the key field such as Course ID.
3. Collect Enrollment information. Here you allow the user to
enroll students to courses. You make sure that the user types valid
student id and course ID. You display the student and course
information in the window. You will have to store enrollment
information in a separate binary file. This file may contain the
course, student ID, Year and semester information.
4. Grade Management, such as Add grades, View Grades. You will
allow the user to enter student ID, year, Semester, course ID, and
the grade. The user should be above to view/edit the grades.
You can create a menu driven interface to select the above
options. Please see the example of how the data would be in each
file.( Please note that the header row(Row with column
names is not stored in the file)
For sample test cases, please refer to the test cases at the
bottom of this description
Here is the sample of menu choices for Main Menu.
Welcome to University Enrollment
1. Create Student
2. Create Course
3. Create Enrollment
4. Edit Student
5. Edit Course
6. Edit Enrollment
7. Display Student(s)
8. Display Course(s)
9. Display Enrollment(s)
10. Grades Sub Menu
0. --- Quit ---
Please enter a valid choice (1-10, 0 to Quit):
When the user selects each of the above options, the following
takes place.
1. Create Student. When the user selects this, your program
should input the student name, id, address, age, etc, and store it
into a binary file.
2. Create Couse. When the user selects this, your program should
input the course name, Course ID, department name and store
it into a binary file.
3. Create Enrollment. When the user selects this, your program
should input a Valid course id, valid student id, and enrollment
id, year, semester and store it into a binary file.
4. Edit Student When the user selects this, your program should
input a Valid student id, retrieve the student information from the
student file and display it and allow the user to modify and store
it back to the file.
5. Edit Course When the user selects this, your program
should input a valid course, retrieve the course information from
the file and display it and allow the user to modify and store it
back to the file.
6. Edit Enrollment. When the user selects this, your program
should input a Valid enrollment id, retrieve the enrollment
information from the file and display it and allow the user to
modify and store it back to the file.
Grades Sub Menu:
Grades Menu
1. View Grades by Student
2. View Grades by Course
3. Edit Grades by Student
0. -- Exit to Menu --
Please enter a valid choice (1-4, 0 to Exit):
When the user selects each of the above options, the following
takes place.
1. View Grades by Student:
Ask the user to enter a student id. List the courses that the
student is enrolled in(pulled from enrollment file) and display
grades for each of the courses.
2. View Grades by Course
Ask the user to enter course id, List the students that are
enrolled in that course(pulled from enrollment file) and display
grades for each of the students.
3. Edit Grades by Student
Ask the user to enter a student id. List the courses that the
student is enrolled in(pulled from enrollment file). Ask the user
to select the course, year, and semester. Display the current
grade, input the new grade, and store it into the file.
Please do it with JAVA, output must be exactly same
Please write a java application. The application should allow: 1. Collect student information and store it in a binary
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Please write a java application. The application should allow: 1. Collect student information and store it in a binary
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!