subject

Create a class named collegecourse that includes data fields that hold thedepartment (for example, eng), the course number (for example, 101), the credits(for example, 3), and the fee for the course (for example, $360). all of the fieldsare required as arguments to the constructor, except for the fee, which is calculatedat $120 per credit hour. include a display() method that displays the coursedata. create a subclass named labcourse that adds $50 to the course fee. overridethe parent class display() method to indicate that the course is a lab course andto display all the data. write an application named usecourse that prompts theuser for course information. if the user enters a class in any of the followingdepartments, create a labcourse: bio, chm, cis, or phy. if the user enters anyother department, create a collegecourse that does not include the lab fee. then display the course data. save the files as collegecourse. java, labcourse. java, and usecourse. java.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:00
Apex q: what does a low employment rate indicate? a. not many people are earning high salaries b. not many people are going to college c. not many people are renting their homes d. not many people have jobs
Answers: 2
question
Computers and Technology, 23.06.2019 04:00
In a word processing program, such as microsoft word, which feature to you choose the desired picture enhancement?
Answers: 2
question
Computers and Technology, 23.06.2019 09:00
Which is the highest level of the hierarchy of needs model? a. humanity b. intrapersonal c. team d. interpersonal
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
In which of the following ways can using test-taking tips you? a. you can focus on the information that you need to study. b. you will see the answers to the test. c. you will study more. d. you will be less organized.
Answers: 1
You know the right answer?
Create a class named collegecourse that includes data fields that hold thedepartment (for example, e...
Questions
question
Mathematics, 29.11.2019 03:31
Questions on the website: 13722363