Question: Problem 8: Around the Clock (10 points) You've been hired to work with air traffic control to determine the expected arrival time coming aircraft. You

 Problem 8: Around the Clock (10 points) You've been hired to

Problem 8: Around the Clock (10 points) You've been hired to work with air traffic control to determine the expected arrival time coming aircraft. You must determine the arrival time using only the aircraft's departure time and the travel time. Facts: All times are given in hour blocks, no minutes, no seconds Don't worry about time zones Air traffic control uses a 12 hour cycle to determine time. You may treat the result of 0 o'clock as 12 o'clock Input You will be given two integer inputs. The first input is the departure time in an am/pm cycle (1 to 12). The second input is the travel time in hours, (any positive number). Output Your solution must print the integer result that represents the expected arrival time in an am/pm cycle. Therefore your output should be limited between 0-11 Sample Input Sample output 114 48 7 36 vow

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!