10/12/09 – Problem 1

Write a program to time an event. Prompt the user to enter the starting hour. Prompt the user again to enter the number of hours that have elapsed. Write out what the time will be.

  Enter starting hour: 11
  Enter duration of event in hours: 53

  At the end of the event the hour hand will show: 4

Class Solution
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: