Loading

[NEW SOLN] CSIS 312 ASSIGNMENT 1 TIME2 CLASS

[SOLVED] CSIS 312 ASSIGNMENT 1 TIME2 CLASS: Using the Time2.java and Time2Test.java files provided, it would be perfectly possible to represent the time internally as the total number of seconds since midnight rather than with the three integer values hour, minute, and second. Clients could use the same public methods and get the same results.

[SOLVED] CSIS 312 ASSIGNMENT 1 TIME2 CLASS: Modify the Time2 class so that time is represented internally as seconds by replacing the instance variables hour, minute, and second with a single instance variable called totalSeconds, and then use Time2Test.java to test your modified Time2 class.  If your implementation is correct, the output of Time2Test should be the same as it was before you made any changes to Time2.

Support