hi can u please help me solve this question.
A small company dealing with transportation has just purchased a computer for
its new automated reservations system. You have been asked to program the new system. You are to write a program called ReservationSystem to assign seats on a vehicle. Your class also requires the following:
a constructor method, which initialise the variables
a method to assign the capacity of seating.
a method for assigning seats. Use a 1-d array to represent the seating chart of the plane. Initialize all the elements of the array to 0 to indicate that all the seats are empty. As each seat is assigned, set the corresponding elements of the array to 1 to indicate that the seat is no longer available. Your program should, of course never assign a seat that has already been assigned.
appropriate mutator and accessor methods
The company also needs a program dealing especially with its only plane with each flight having a capacity of 10 seats. Name this class AirlineReservationSystem. This class is a type of ReservationSystem but the way it reserves seats are different.
Your program should display the following menu of alternatives for reserving a seat on the flight:
Please type 1 for “smoking”
Please type 2 for “non-smoking”
If the person types 1,then your program should assign a seat in the smoking section(seats 1-5) If the person types 2,then your program should assign a seat in the non-smoking section(seats 6-10). Your program should then print a boarding pass indicating the person’s seat number and whether it is in the smoking or non-smoking section of the plane.
When the smoking section is full, your program should ask the person if it is acceptable to be placed in the non-smoking section (and vice versa). If yes, then make the appropriate seat assignment. If no, then print the message “Next flight leaves in 3 hours.”
Create a main() method to test the next scheduled flight.

2 Years
Discussion Span
Last Post by Ancient Dragon

Is that supposed to be written in java or c++? There is a java form for such questions.

In either event, no one here will do your homework for you. Post the code you have written and ask questions about what you don't understand. It is YOUR responsibility to do this program, not ours.

Of course, I'll be glad to write it for you after you deposit $10,000.00 USD in my personal PayPal account :)

Edited by Ancient Dragon

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.