hw03 - CS 159 HW#03 5 Points Possible Due at 11:00pm...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 159 – HW #03 5 Points Possible - Due: February 20, 2012 at 11:00pm. Problem: It is another long day (or night) at the library preparing for your next round of midterms. You've done your best to avoid any reference to time as you'd rather not know how long you've been staring at your books and notes. Despite your best efforts you are able to see a reflection of the library clock on a near-by wall. Given the time according to reflection (hour and minute) display the actual time. Example Execution #1: Enter the observed hour value: 6 Enter the observed minute value: 43 Reflected Time: 06:43 Actual Time: 05:17 Observed: 6:43am Actual: 5:17am Example Execution #2: Enter the observed hour value: 15 Enter the observed minute value: 10 Reflected Time: 15:10 Actual Time: 20:50 Observed: 3:10pm Actual: 8:50pm Example Execution #3: Enter the observed hour value: 0 Enter the observed minute value: 1 Reflected Time: 00:01 Actual Time: 11:59 Observed: 12:01am Actual: 11:59am Example Execution #4: Enter the observed hour value: 21 Enter the observed minute value: 30 Reflected Time: 21:30 Actual Time: 14:30 Observed: 9:30pm Actual: 2:30pm Example Execution #5: Enter the observed hour value: 9 Enter the observed minute value: 15
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

hw03 - CS 159 HW#03 5 Points Possible Due at 11:00pm...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online