Question: IN JAVA(JGRASP) Write a program that will help a user determine when they should set their alarm clock. Ask the user to enter the day

IN JAVA(JGRASP)

Write a program that will help a user determine when they should set their alarm clock. Ask the user to enter the day of the week using the 3 letter designator: Sun, Mon, Tue, Wed, Thu, Fri, or Sat. Have the program convert the day of the week to an integer value: 0=Sun, 1=Mon, 2=Tue, etc. Ask the user to provide a Boolean indicating if they are on vacation.(True or False) The program should return a string indicating when the alarm clock should ring.

? Normal: Weekdays the alarm should be "7:00"; Weekends the alarm should be "10:00".

? Vacation: Weekdays the alarm should be "10:00"; Weekends the alarm should be "Off".

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!