Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

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

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

3rd Edition

0128012757, 978-0128012758

More Books

Students also viewed these Databases questions