Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need to put this Schedule class on UML into code, I have already put some of it but I am a bit confused. I

I need to put this Schedule class on UML into code, I have already put some of it but I am a bit confused. I shared my code below, it is incomplete can anyone help me to put Schedule class into code please?

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed
*Appointment.java *Activity.java *TelephoneNumber.java *Schedule.java & / *ScheduleLauncher.java 6 package cst8284. asgt1. scheduler; 7 import java.util.*; 8 public class Schedule { 9 10 private Scanner s = new Scanner (System. in); 11 private Appointment appointments; 12 private int aptIndex; 14 15 private static int SAVE_APPOINTMENT; 16 private static int DISPLAY_APPOINTMENT; 17 private static int DISPLAY_SCHEDULE; 18 private static int EXIT; 19 20 public Schedule () { 21 22 } 23 240 public void launch () { 25 26 } 27 280 private int displayMenu() { 29 return 30 } 31 320 private void executeMenuItem(int choice) { 33 34 35\f\fScheduler +Appointment (cal : Calendar, fullName : String, -scan: Scanner phone : TelephoneNumber, - appointments: Appointment [ ] activity: Activity) -aptIndex: int +Appointment (cal : Calendar, -SAVE APPOINTMENT: int firstName: String, last Name : String -DISPLAY APPOINTMENT: int phone : TelephoneNumber, -DISPLAY SCHEDULE: int activity: Activity) -EXIT: int ...plus getters and setters for all private fields +Scheduler () +toString () : String +launch () : void -displayMenu () : int -executeMenuItem (choice : int) : void TelephoneNumber - saveAppointment ToArray (apt : Appointment) : boolean -areaCode: int -displayAppointment (cal : Calendar) : void -prefix: int -lineNumber: int -displayDaySchedule (cal : Calendar) : void +TelephoneNumber (phoneNumber : String) -getResponseTo (s: String) : String -makeAppointment FromUser Input ( ) : +getAreaCode () : int Appointment +setAreaCode (areaCode : int) : void -makeCalendarFromUserInput ( ...etc. for all remaining getters and setters-getResponseTo (s: String) : String -makeAppointment FromUser Input ( ) : +getAreaCode () : int Appointment +setAreaCode (areaCode : int) : void -makeCalendarFromUserInput ( ...etc. for all remaining getters and setters suppressHour: boolean) : Calendar -processTimeString (t: String) :int +toString () : String -findAppointment (cal: Calendar) : Appointment Activity -getAppointments () : Appointment -getApt Index () : int -descriptionOfWork : String -getNextApt Index () : int -category: String +Activity (String: description, String: category) +getDescription () : String +setDescription (s: String) :void +getCategory () : String +setCategory (s: String) : void +toString () : String

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

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions