Question: Still having some issue with Java Create a class named CollegeCourse that includes data fields that hold the department (CMPS), the course number (1302), the

 Still having some issue with Java Create a class named CollegeCourse

Still having some issue with Java

Create a class named CollegeCourse that includes data fields that hold the department (CMPS), the course number (1302), the credit hours (3), and the fee for the course ($360). All of the fields are required as arguments to the constructor, except the fee, which is calculated at $120 per credit hour. Include a display () method that displays the course data. Create a subclass (child class) named Labcourse that adds $50 to the course fee for lab material. Override the parent display () method to indicate that the course is a lab course and to display the updated course fee. Write an application name Usecourse that prompts the user for course information. If the user enters a class in any of the following departments (BIOL, CHEM, CMPS, PHYS), create a LabCourse; otherwise create a Collegecourse. Then display the course information. Save the files as CollegeCourse.java, LabCourse.java, UseCourse

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