Question: java assignmenr for 24 hr clock BADILava o > Users > Jalen Holland > Desktop > CSC115 > A2 > Time java > Time /*
BADILava o > Users > Jalen Holland > Desktop > CSC115 > A2 > Time java > Time /* addTime Purpose: updates the values of this Time's hour and minute by adding the given minutes. The updated time is a valid 24 hour clock Time * Parameters: int minutes * Precondition: minutes >= Example: Time t = new Time (23, 30); t.addTime(70) will change t's hour to @ and minute to 40 This is because 23:30 == 11:38pm, we add 70 minutes (1 hr, 10 minutes) => 12:40am - 8:40 on 24 hour clock RECALL 00:00 is 12:00am which is midnight // TODO public int addTime(int minutes) { this.minute += minutes; if (this.minute
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
