// P.108 - 108 import java.util.Scanner; class Time { private int hrs, mins, secs; public Time() { hrs=0; mins=0; secs=0; } public Time(int h, int m, int s) { hrs=h; mins=m; secs=s; } public void set(int h, int m, int s) { hrs=h; mins=m; secs=s; } public void writeOut() { if(hrs<10) System.out.print("0"); System.out.print(hrs + ":"); if(mins<10) System.out.print("0"); System.out.print(mins + ":"); if(secs<10) System.out.print("0"); System.out.print(secs); } public void increment() // for 1 second { secs ++; if(secs >= 60) { secs = 0; mins ++; if(mins >= 60) { mins = 0; hrs ++; if(hrs>=24) hrs = 0; } } } public boolean equal(Time other) { return (hrs==other.hrs && mins==other.mins && secs==other.secs); } public static void main(String[] args) { Scanner input = new Scanner(System.in); int hh, mm, ss; // read hh System.out.print("Input hh: "); hh = input.nextInt(); System.out.print("Input mm: "); mm = input.nextInt(); System.out.print("Input ss: "); ss = input.nextInt(); // declare an object now - 13:37:21? Time now = new Time(hh, mm, ss); //now.set(13, 37, 21); System.out.print("Input execution time in s: "); int N = input.nextInt(); for(int i=0; i