Question: Major Program 1 COMP 167 Introduction This program will require you to create a program that will allow faculty members to post theircourse and office

 Major Program 1 COMP 167 Introduction This program will require youto create a program that will allow faculty members to post theircourseand office hourschedules. Enumeration First of all, this project utilizes enumerated typeswhich help your program's readability. Here is an example: public enum DaysofWeek{ SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY; } The code above

Major Program 1 COMP 167 Introduction This program will require you to create a program that will allow faculty members to post theircourse and office hourschedules. 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 Days OfWeek.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 of representing these values. The following examples should also prove helpful to you: DaysOfWeek firstDayOfWeek = DaysOfWeek. SUNDAY;| Youcan also retrieve the String value of an enumeration. 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 mustimplementin Java. You are free to add additional private methods if needed. departmentName:String -unit Name:String -university Name:String -faculty:ArrayList Course Course name Building and room number where course is conducted Course days and meeting times. Set defaults and instantiate the ArrayList +Coursel) +//mutator and accessor methods +toString():String Use same format as the input file. -firstName:String lastName: String -officeLocation:String -courses:ArrayList -appointments:ArrayList Faculty Faculty first name Faculty last name Campus building and office number Information on courses taught Information on office hour sessions Information on miscellaneous appointments and meetings. *Faculty //mutator and accessor methods get Calendar(): String toString():String Set defaults and instantiate the ArrayList See "Handling ArrayList" See note below. Use same format as the input file. The method get Calendar) should return all course items, office houritems and appointmentitems. Each item (ie_formatted TimeBlock) should be listed under aheading with the day ofthe week. Within aparticularday, the items should be listed in sorted order by time (Hint: Sorting is not necessary--use a loop that goes from 5 to 2400 by 5's.). Department Name College Name University Name Facultye First Name Facultye Last Name Faculty Office Location Facultye Number of Courses Course Name Course Location Course Number of meeting days Course Day of the week, Start_Time, End_Time * repeat for other days * repeat for other courses Facultye Number of office hour sessions Office Hourse Day of the week, Start_Time, End_Time * Repeat for other office hours. Facultye Number of Appointments Appointmentse Description Appointmentse Day of the week, Start_Time, End_Time * Repeat for other appointments. * Repeat for other faculty The file will end when there are no more faculty. You should also reference the input file provided in this repository. Notes When outputting office hour information, use the string Office Hours" as a description. All start and end times will be a multiple of 5. Output File The format of the output file is the same as the input file. If you have created the toStrinal) method for the Department class correctly, the produced String should match the input/output format. This should make this method trivial to write. Grading Level 1: 25 points Complete the DaysotWeekenumerated type, the TimeBlockclass, the Course class and the Appointment class. Write a simple driver program that will instantiate an object of each class type, populate the data fields and test the other methods of the classes. Display your output. Level 2: 10 points Complete all of the Faculty class except for the getCalendard) and atGlance() methods. Level 3: 20 points Complete all of the Department class except for the leadRenatmentRatai) and save DenacimentDatal) classes Level 4: 30 points Implement the lead DerantmentRatai) and save DepacimentDatal) methods. Your main () method should be able to read from the input file. Level 5: 15 points Implement the getCalender) and atGlance() methods

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!