Question: i need the solution program code in java for this assigment task: Task 1 : Write a java program that creates records for the courses

i need the solution program code in java for this assigment task:
Task 1:
Write a java program that creates records for the courses in the CSIT College. Each course record
has the following information:
Course Code: String
Course Title: String
Credit Hours: double
Instructor Name: String
and Class Rooms: int
The program prompts the following menu:
1- Add Course.
2- Print all courses records.
3- Update course record.
4- Print a course record.
5- Exit.
Note:
- We have class CourseRecord and we have 2- D array of CourseRecord objects.
- To add a new course, there are a maximum number of courses for each level (5 courses)
- We could have a 2-d array (3 levels, 5 courses)
Example:
Level 1, Course 1: Introduction to Computing
Level 1, Course 2: Fundamentals of IS.
- Update course record: by entering level number & course code.
- Print a course record: by entering level number & course number (column number not
course code).
Your program should handle some exceptions that may occur as follows:
Add a course record: If the user entered a mismatched value, the application should
print the following error: Exception thrown: java.util.InputMismatchException
(InputMismatchException) and If the user tried to add more than 5 courses, the
application should print an error message (IndexOutOfBoundsException).
Print a course record: The user enters the course number, and the level numbers, it has
to be within the range or it will print error message (NullPointerException ).

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 Databases Questions!