Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USE BEGINNER LEVEL JAVA!!!! BASIC JAVA!!! Schedule Class Create a class called Schedule. It will not have a main method; it is a business class.

USE BEGINNER LEVEL JAVA!!!! BASIC JAVA!!!
Schedule Class
Create a class called Schedule. It will not have a main method; it is a business class.
Put in your documentation comments at the top. Be sure to include your name and your instructor's name.
Schedule has the following instance variable named as shown in the table:
Create a no-argument constructor. Inside this constructor, instantiate the ArrayList of Course objects by having a
line that looks like this:
courseList = new ArrayList Course >();
Generate all the getters and setters.
Using the example provided above, write a toString method for this class.
Other methods you will need to create:
public int numAvailableCourses()- This method returns the number of courses in the schedule which are
considered available
public int totalCredits()- This method should iterate through the courses and return the total number of credit
hours being taken.
public int howManyBySubject(String subject)- This method is passed a specific subject such as "ITEC" or "ENGL".
It will then iterate through the courses which are part of the team. It will return the number of courses that
match the subject passed in.
public void addCourse(Course aCourse)- This method adds the provided course to the schedule
image text in transcribed

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

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions