Boost your Grades with us today!

CIS 407 Week 1 Lab 2: Exercise 8 on page 541 of your text

Due in Week1 and worth 20 points

Complete the weekly labs based on the following:

  • Write the code for each lab assignment.
  • The lab is to be submitted in a single zip file in the online course shell, which must contain all .java files, along with any additional files that may be necessary for your project to run (ex: text files). 
  • Any and all written answers must be entered into the online course shell with the submission of the attached lab assignment.

8.  Create a class named CollegeCourse that includes data fields that hold the department (for example, ENG), the course number (for example, 101), the credits (for example, 3), and the fee for the course (for example, $360).  All fo 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 for course information.  If the user enters a class in any of the following departments, create 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.  Save the files as CollegeCourse.java, LabCourse.java, and UseCourse.java.    

Looking for a Similar Assignment? Our Experts can help. Use the coupon code SAVE30 to get your first order at 30% off!