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 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
