Question: Introduction This program will require you to create a program that will allow faculty members to posttheir course and office hour schedules. Enumeration First of

 Introduction This program will require you to create a program thatwill allow faculty members to posttheir course and office hour schedules. EnumerationFirst of all, this project utilizes enumerated types which help your program'sreadability. Here is an example: public enum DaysofWeek { SUNDAY, MONDAY, TUESDAY,

WEDNESDAY, THURSDAY, FRIDAY, SATURDAY; } The code above would appear in a

Introduction This program will require you to create a program that will allow faculty members to posttheir course and office hour schedules. Enumeration First of all, this project utilizes enumerated types which help your program's readability. Here is an example: public enum DaysofWeek { SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY; } The code above would appear in a separate file named DaysOfWeek.java and would serve as the data type for variables that could only have the values: 'SUNDAY", "MONDAY, 'TUESDAY', 'WEDNESDAY, "THURSDAY, FRIDAY, SATURDAY Notice, these are not Strings! Internally, 'SUNDAY=0", MONDAY=1", "TUESDAY=2", "WEDNESDAY=3', 'THURSDAY=4", "FRIDAY=5', 'SATURDAY=6". However, the enumerated type is more elegant way ofrepresenting these values. The following examples should also prove helpful to you: DaysOfWeek firstDayOfWeek = DaysOfWeek.SUNDAY;|| You can also retrieve the String value ofanenumeration. The following example would give the String value the value "SUNDAY": String value = firstDayOfWeek.name(); UML Class Diagrams Here are the UML Class Diagrams for the classes you must implementin Java. You are free to add additional private methods if needed. -day:DaysOfWeek -startTime:int -endTime:int comments:String Hocation:String +TimeBlock() +//mutator and accessor methods +getFormated TimeBlock(): String +toString():String TimeBlock Day of time block Start time of block End time of block Comments about the time block. Location where the time block is spent Set defaults See Comment below. Use same format as the input file. The method getFormated TimeBlock() should return a string in the following format: startTime - endTime comments location (e.g. 1200 - 1300 COMP167 ACB 207 ) -description:String -timeBlock:TimeBlock Appointment Description of the appointment day and times of appointment Set defaults and instantiate the TimeBlock +Appointment() +1/mutator and accessor methods +toString():String Use same format as the input file. -courseName:String Hocation:String -timeBlocks:ArrayList Course Course name Building and room number where course is conducted Course days and meeting times. Set defaults and instantiate the ArrayList Use same format as the input file. +Coursel) +//mutator and accessor methods +toString():String -firstName:String HastName:String -office Location:String -courses:ArrayList -appointments:ArrayList

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!