Please help me writ a code for this question

Airline travelers often want to know what time a flight will arrive at its destination in the local time of the destination. This can be calculated given the following data:
- The scheduled take off time, in hours and minutes on a 24-hour clock
- The number of time-zone boundaries the flight will cross. This number should be negative if traveling from East to West, positive if going West to East
- Whether the international date line will be crossed. This number should be +1 if it is crossed traveling from East to West, -1 if crossed while going West to East, and o if it is not crossed
- The scheduled duration of the flight, in hours and minutes.

Input these data values from the user and print the scheduled time at which the flight should arrive at its destination. This time is calculated as follows:
- Starting with the takeoff time, add or subtract an hour for each time-zone change
- Then add the duration of the flight to this time
- Finally, adjust the time by adding or subtracting a day if the flight crossed the international date line
Print the local time of arrival using a 24-hour clock. Also print – 1 day if the flight will land the day before it took off or + 1 day if it will land the day after it took off.
That's an interesting problem. What do you need help with?
(We don't outright solve problems on this forum. Sorry.)

-Albatross
Last edited on
Please help me with it I would appreciate it
I need to input the info in a program it is someting for school I am having problem
make a first try, and we'll tell you how to resume and help you to the latter :-)
Topic archived. No new replies allowed.