Question: Create a class named CollegeCourse that includes data fields that hold the department (example ENG), the course number (example 101), the credits (example 3) and
Create a class named CollegeCourse that includes data fields that hold the department (example ENG), the course number (example 101), the credits (example 3) and a fee for the course (example $360). All of the fields are required as arguments to the constructor, except for the fee, which is calculated at $120 per credit hour. Include a display) method that displays the course data. Create a subclass named LabCourse that adds $50 to the course fee. Override the parent class display) method to indicate that the course is a lab course and to display all the data. Write an application named UseCourse that prompts the user for course information. It may be better if you provide with choices for the user. If the user enters a class in any of the following departments, create a LabCourse: BIO, CHM, CIS, or PHY If the user enters any other department, create a CollegeCourse that does not include the lab fee. Display the course data in a readable format. Submit a minimum of 3.java files (CollegeCourseXXX.java, LabCourseXXX.java, UseCourseXXX.java where XXX denotes your last name followed by first initial)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
