Time Zone - 2 Points
Your mission, should you choose to accept it (and you will, of course!):
You are to plan a spy trip to follow Dr. Ego D. Stroyer. Sounds easy
enough, huh? Well...think again! This villain is international, and could
be anywhere. We've tracked a set of plane tickets bought under his name,
and will give you the time and time zone from which he will be leaving,
the time zone in which he arrives, and the length of the flight. Your job
is to calculate in local arrival time for the time zone in which he arrives.
The Times zones work like this:
There are 5 times zones: A, B, C, D, and E.
Now you might think (and wish) that they were an hour apart...but unfortunately,
they are not uniformly spread out.
Time will be listed as 24-hour time.
Input Format
You will be given for each set:
A
B
C
D
E
<Departure Time Zone> <Departure Time>
<Arrival Time Zone>
<Length of flight (in minutes)>
Each ticket will be separated by a -1.
A double -1 represents the end of a set of flights.
The input file will be called jin09.txt.
Output Format
For each flight, you should list the arrival information.
Dr Ego D. Stroyer will be arriving in time zone <zone> at <local
time for zone>.
Example
Input
A 1000
B 1100
C 1200
D 1300
E 1400
A 0400
C
240
Output
Dr Ego D. Stroyer will be arriving in time zone C at 0415.