subject

Write a Java console program that allows students to schedule 1 hour appointments at either 1, 2, 3, 4, 5, or 6 o'clock (pm only). Declare an array that can hold exactly 6 Strings, one for each name of the person who will be scheduled for the appointment at a particular hour. Write a loop that prompts the user to enter an integer value for the time they wish to schedule an appointment. Within a try block, allow the user to enter a time (whole number) and a name. If the time is free, put the name in the array at that timeslot. If the time is not free, throw a TimeInUseException (create custom exception class). If the time is not valid, throw an InvalidTimeException (create custom exception class). Use a catch block to handle both exceptions.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:30
Research data that is presented using descriptive language is said to be
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Font size, font style, and are all aspects of character formatting.
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
List 3 items that were on kens resume that should have been excluded
Answers: 1
question
Computers and Technology, 23.06.2019 18:50
Ais a picture icon that is a direct link to a file or folder
Answers: 1
You know the right answer?
Write a Java console program that allows students to schedule 1 hour appointments at either 1, 2, 3,...
Questions
question
Mathematics, 22.08.2019 18:30
question
Mathematics, 22.08.2019 18:30
Questions on the website: 13722363