Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in java Introduction This program will require you to create a program that will allow faculty members to post their course and office hour schedules.

in java
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Introduction This program will require you to create a program that will allow faculty members to post their 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 of representing these values. The following examples should also prove helpful to you: DaysOfWeek firstDayOfWeek DaysOfWeek SUNDAY:| You can also retrieve the String value of an enumeration. The following example would give the String "value the value ""SUNDAY": String value - firstDayOfWeek.name(); String value = firstDayOfWeek.name(); UML Class Diagrams Here are the UML Class Diagrams for the classes you must implement in Java. You are free to add additional private methods if needed. day DaysofWeek startTime:int endTimerint comments String location String TimeBlock() //mutator and accessor methods getformated TimeBlock0): 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 getFormatedTimeBlock() should return a string in the following format. The method getFormated Time Block() should return a string in the following format: startTime - endTime comments location (e.8. 120 - 130 COMP167 ACB 297 ) Appointment description:String Description of the appointment time Block:TimeBlock day and times of appointment. +Appointment +//mutator and accessor methods Set defaults and instantiate the TimeBlock +toString():String Use same format as the input file -courseName String location:String -time Blocks:ArrayList

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

Step: 3

blur-text-image

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

Main Memory Database Systems

Authors: Frans Faerber, Alfons Kemper, Per-Åke Alfons

1st Edition

1680833243, 978-1680833249

More Books

Students also viewed these Databases questions

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago