Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Problem In C++ Project

ericlin81ericlin81 Member Posts: 2
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 (ericlin81@yahoo.com.sg).

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:

Time Cities
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


<<<<<<<<<<Result>>>>>>

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


Comments

  • ericlin81ericlin81 Member Posts: 2
    : 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 (ericlin81@yahoo.com.sg).
    :
    : 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:
    :
    : Time Cities
    : 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
    :
    :
    : <<<<<<<<<<Result>>>>>>
    :
    : 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
    :
    :
    :

  • Chris BrownChris Brown USAMember Posts: 4,624 ✭✭

    ____ / http://forcoder.org / free video tutorials and ebooks about [ C++, Visual Basic .NET, Go, Python, C, Perl, JavaScript, PL/SQL, PHP, C#, Assembly, Swift, Scratch, Objective-C, MATLAB, R, Ruby, Visual Basic, Delphi, Java Erlang, Transact-SQL, Lua, Crystal, SAS, F#, Fortran, Kotlin, Lisp, Alice, VBScript, Rust, Hack, COBOL, Scheme, FoxPro, Ada, Prolog, Dart, Apex, LabVIEW, ABAP, ML, Scala, Bash, Clojure, D, Logo, Julia, Awk ] ___________

Sign In or Register to comment.