subject

Create a class named CollegeCourse that includes the following data fields: dept (String) - holds the department (for example, ENG) id (int) - the course number (for example, 101) credits (double) - the credits (for example, 3) price (double) - the fee for the course (for 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 cours 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. 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.
Then display the course data.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:30
Corey set up his presentation for delivery to his team.the information he had to convey was critical to their job performance.he knew he would need a lot of time to explain each point
Answers: 3
question
Computers and Technology, 22.06.2019 17:30
Rachel completed typing an official document with a word processing program. she wants to make sure that her document has no typographical errors. she also wants all headings to have the same font. which features in a word processing program should she use? rachel should use the feature in a word processing program to find typographical errors. she should apply to have uniform headings.
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
What is the original authority for copyright laws
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
Sports and entertainment class, your goal is to increase attendance and make a profit for a game by getting your team on a winning track with total salaries less than $3,000,000
Answers: 3
You know the right answer?
Create a class named CollegeCourse that includes the following data fields: dept (String) - holds th...
Questions
question
English, 05.05.2020 07:56
question
Mathematics, 05.05.2020 07:56
question
Mathematics, 05.05.2020 07:56
question
Mathematics, 05.05.2020 07:56
question
Mathematics, 05.05.2020 07:56
Questions on the website: 13722363