im trying to work on this project plz help

Discussion in 'C Programming' started by zeeee, May 21, 2012.

  1. zeeee

    zeeee

    Joined:
    May 21, 2012
    Messages:
    1
    in c++..You are the developer for taxiflite.com, a company which charters a light aircraft to
    Capetown from Johannesburg. Write a program to assign seats on each flight of the
    airline's only plane (capacity: 50 seats (10 rows (A-J) of 5 seats each)). The program
    should display the following menu of alternatives: Please type 1 for "First class" and
    Please type 2 for "Economy". If the person types 1 your program should ask for the
    person’s name and assign a seat in the first class section (rows 1-3 (15 seats)). If the
    person types 2, the program should ask for the person’s name and assign a seat in
    economy section (rows 4-10 (35 seats)). Menu Option 3 displays the seating
    allocation. The program should print a boarding pass indicating the person’s name
    and seat number and weather it is in the first class or economy section of the plane
    along with the price (R10 000 for first class and R5 000 for economy). Isle seats (A-J
    seat number 2 and 3 are subject to a 10% discount) Use a 2-Dimensional array to
    represent the seating chart of the plane. Initialize all the elements of the array to 0 to
    indicate that all seats are empty. As each seat is assigned, set the corresponding
    elements of the array to X to indicate that the seat is no longer available. When the
    first class section is full, the program should ask the person if it is acceptable to be
    placed in the economy section (and vice versa). If yes then make the appropriate
    seat assignment. All seats in each section are assigned randomly unless the person
    flying stipulates a specific seat. In the display view, show the percentage occupied of
    the total flight (seats taken vs seats available) else if no seats are available then print
    the message "Next Flight leaves in 3 hours." All flight information must be saved to a
    file.
    zeeee, May 21, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. brian

    Size of my Struct? PLZ PLZ reply

    brian, Nov 23, 2004, in forum: C Programming
    Replies:
    7
    Views:
    409
    Jens.Toerring@physik.fu-berlin.de
    Nov 25, 2004
  2. mrkanuganti@gmail.com

    plz help me in C/C++ Logic plz

    mrkanuganti@gmail.com, Nov 24, 2006, in forum: C++
    Replies:
    1
    Views:
    370
  3. mrkanuganti@gmail.com

    plz help me in C/C++ Logic plz

    mrkanuganti@gmail.com, Nov 24, 2006, in forum: C++
    Replies:
    2
    Views:
    326
    Nick Keighley
    Nov 24, 2006
  4. mrkanuganti@gmail.com

    plz help C/C++ Logic plz

    mrkanuganti@gmail.com, Nov 24, 2006, in forum: C++
    Replies:
    1
    Views:
    331
  5. nocturnal
    Replies:
    1
    Views:
    510
    nocturnal
    Jul 10, 2009
Loading...

Share This Page