Question: Problem Create a Java application according to the following specs: 1 . Create a class named Course. Each course object will have attributes for course

Problem Create a Java application according to the following specs:
1. Create a class named Course.Each course object will have attributes for course ID, course title, enrollment limit, and feeeach student pays when taking the course.
2. Each course will be taught by a single Faculty member so the course will have information about the professor who teaches the course. This information includes faculty ID and faculty name, which should be coded in a class named Faculty. Implement the appropriate relationship between the Faculty and Course classes.
3. Add a parameterless method namedcalculateRevenue to theCourse class. This method should be empty (its body has no code)
4. Create a concrete class named ProgrammingCourse that extends Course. Have an additional attribute in this class to indicate the programming language used.
5. In ProgrammingCourse, implement the methodcalculateRevenue by overriding it. For simplicity, this method will compute the revenue generated from the course by assuming the course always reaches the enrollment limit.
6. Create a class named UseCourse. In this class, declare a global ArrayList that can store course objects.
7. Exception Handling: in the main method, collect information from the user that lets you create two programming coursesand then add these courses to the ArrayList. Ensure that you utilize exception handling to ensure the user enters valid information.
8. Display the revenue generated by each course.

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