Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started