Create a test driver to test the functionality of your AlarmClock class created in number 3 above.

What will be an ideal response?

```
public class ClockTest
{
/** Test driver to exercise the AlarmClock class */
public static void main(String args[])
{
AlarmClock myClock = new AlarmClock(12, 30, 0, 6, 30, 0);
System.out.println(myClock.toString());
//Change the alarm time
myClock.setAlarmHour(7);
System.out.println(myClock.toString());
//Create another AlarmClock object and test equals
AlarmClock mySecondClock = new AlarmClock();
if(myClock.equals(mySecondClock))
System.out.println("The AlarmClocks are equal!");
else
System.out.println("The AlarmClocks are not equal!");
}
}

```

Computer Science & Information Technology

You might also like to view...

Match the following property types to their descriptions: I. Format II. Validation Text III. Required IV. Result Type V. Indexed A. increases the efficiency of a search on a designated field B. indicates that a value for the field must be entered C. specifies the error message that is displayed when the validation rule is violated D. enters the format for a calculated field result E. changes the

way a field is displayed but does not affect the stored value What will be an ideal response?

Computer Science & Information Technology

________ is the process of examining a worksheet for errors in formulas

A) Defining B) Auditing C) Segmenting D) Tracing

Computer Science & Information Technology