Answered step by step
Verified Expert Solution
Link Copied!

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 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).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions