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 :
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:
Add Course.
Print all courses records.
Update course record.
Print a course record.
Exit.
Note:
We have class CourseRecord and we have D array of CourseRecord objects.
To add a new course, there are a maximum number of courses for each level courses
We could have a d array levels, courses
Example:
Level Course : Introduction to Computing
Level Course : 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 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
