Question: So, we are given a start code (attached here: https://introcs.cs.princeton.edu/java/15inout/Clock.java.html) and our professor wants us to add in these modifications. I am not expecting a

So, we are given a start code (attached here: https://introcs.cs.princeton.edu/java/15inout/Clock.java.html) and our professor wants us to add in these modifications. I am not expecting a whole code or anything, but even somewhere to start would be helpful. I am beyond lost! Thanks!
Clock Program Modifications 1. The clock should start at the time specified by the startHour,startMinute, startSecond input parameters. Hint: you'll need to calculate the starting value of the for loop control variable t these inputs instead of starting at zero. 2. The clock should play the alarm at the designated alarm time specified by alarmHour, alarmMinute, alarmSecond. The alarm to play is a.wav file specified by alarmFilename. Note that you will want to place the alarm wav file in the same directory as your Clock.class file so that you can refer to it simply in your input parameter for the filename, not requiring any directory information 3. The colors of the visual elements of the clock (canvas, face, hours markers, second, minute, and hour hands) should be settable by user input via the parameter file. There is a link to the StdDraw library in the textbook website, section 1.5. Here it is as well: https://introcs.cs.princeton.edu/java/stdlib/javadoc/StdDraw.html 4. The clock should make a "tic toc" sound as the second had progresses. Use one short-duration tone for the tic, and another for the toc. Clock Program Modifications 1. The clock should start at the time specified by the startHour,startMinute, startSecond input parameters. Hint: you'll need to calculate the starting value of the for loop control variable t these inputs instead of starting at zero. 2. The clock should play the alarm at the designated alarm time specified by alarmHour, alarmMinute, alarmSecond. The alarm to play is a.wav file specified by alarmFilename. Note that you will want to place the alarm wav file in the same directory as your Clock.class file so that you can refer to it simply in your input parameter for the filename, not requiring any directory information 3. The colors of the visual elements of the clock (canvas, face, hours markers, second, minute, and hour hands) should be settable by user input via the parameter file. There is a link to the StdDraw library in the textbook website, section 1.5. Here it is as well: https://introcs.cs.princeton.edu/java/stdlib/javadoc/StdDraw.html 4. The clock should make a "tic toc" sound as the second had progresses. Use one short-duration tone for the tic, and another for the toc
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
