Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started