Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please include explanation for each line to fully understand. It also requires it to be done in 3 files. Create a class named college Course

image text in transcribed

please include explanation for each line to fully understand. It also requires it to be done in 3 files.

Create a class named college Course 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

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_2

Step: 3

blur-text-image_3

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

Relational Database Design With Microcomputer Applications

Authors: Glenn A. Jackson

1st Edition

0137718411, 978-0137718412

More Books

Students also viewed these Databases questions

Question

Why should each department participate in preparing its own budget?

Answered: 1 week ago

Question

a. Describe the encounter. What made it intercultural?

Answered: 1 week ago