Answered step by step
Verified Expert Solution
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 noargument 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 howManyBySubjectString 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 addCourseCourse aCourse This method adds the provided course to the schedule
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started