I was ask to create this project and i do not know how to do it. Can someone help me please. My e-mail is ([email protected]
Mini-Project of World Time
Write a menu-driven program that repeatedly allow the user to select one of the following two tasks:
(1) Display several important international cities names on the monitor. The program will then repeatedly allow the user to enter the time in any one of the cities and output the equivalent time in any of the other cities (see Figure 1).
(2) Display several important international cities names on the monitor. The program will then repeatedly assist a traveler to determine the arrival local time of a flight, given the departure time and city, flight hours and destination (see Figure 2).
Your program will use a Time class that you are required to define and implement.
A table showing the world time is given below:
G.M.T. 10 Honolulu
G.M.T. 8 Los Angeles
G.M.T. 7 Denver
G.M.T. 6 Chicago
G.M.T. 5 New York, Toronto
G.M.T. 3 Rio De Janeiro, Buenos Aires
G.M.T. 0 London
G.M.T. + 1 Paris, Rome, Amsterdam
G.M.T. + 2 Cairo
G.M.T. + 3 Moscow
G.M.T. + 5 Karachi
G.M.T. + 7 Bangkok, Jakarta
G.M.T. + 8 Hong Kong, Singapore, Beijing
G.M.T. + 9 Tokyo, Osaka
G.M.T. + 10 Sydney
Enter time and city: 12:30pm New York
City (XXX to quit): Paris
It is 6:30 PM in Paris.
City (XXX to quit): Los Angeles
It is 9:30 AM in Los Angeles
City (XXX to quit): Tokyo
It is 2:30 AM of the next day in Tokyo.
City (XXX to quit): XXX
Figure 1 Typical Sample Run (without the list of cities) for Task 1
Enter time and city: 1:50pm Singapore
Destination (XXX to quit): Jakarta
Flight duration: 1hr 40min
You will arrive at Jakarta at 2:30pm.
Destination (XXX to quit): Hong Kong
Flight duration: 3hr 45min
You will arrive at Hong Kong at 5:35pm.
Destination (XXX to quit): Los Angeles
Flight duration: 19 hr 0min
You will arrive at Los Angeles at 4:50pm.
Destination (XXX to quit): XXX
Figure 2 Typical Sample Run (without the list of cities) for Task 2