Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is chapter 3 of Blue jay book- The clock project and im struggling with it 3. Add a method named isAlarmGoingOff which takes no
This is chapter 3 of Blue jay book- The clock project and im struggling with it
3. Add a method named isAlarmGoingOff which takes no input parameters and has a boolean return type. It should return true if the alarm is set to be on and the value of the hours, minutes and seconds is the same as the alarm settings, false otherwise.
* The ClockDisplay class implements a digital clock display for a * European-style 24 hour clock. The clock shows hours and minutes. The * range of the clock is 00:00 (midnight) to 23:59 (one minute before * midnight). * The clock display receives "ticks" (via the timeTick method) every minute * and reacts by incrementing the display. This is done in the usual clock * fashion: the hour increments when the minutes roll over to zero. * @author Michael Klling and David J. Barnes * @version 2016.02.29 */ ublic class ClockDisplay private NumberDisplay hours; private NumberDisplay minutes; private String displayString; private NumberDisplay seconds; private int alarmHour; private int alarmMinute; private int alarmSecond; //private boolean NumberDisplay Alarmset; //private NumberDisplay setAlarm; // simulates the actual display / * Constructor for ClockDisplay objects. This constructor * creates a new clock set at 00:00. */ public ClockDisplay() \{ hours = new NumberDisplay (24); minutes = new NumberDisplay (60); seconds = new NumberDisplay (60); updateDisplay( ) ; \}Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started