Question: Please i need a help in this question... programming language java 2 We want to manage the buy of Seats for a flight. A Flight
Please i need a help in this question...
programming language
java 2
We want to manage the buy of Seats for a flight. A Flight could be from "Beirut to Paris. We suppose that the number of seats for a flight is a constant NBSEATS -100. A seat has a number, and a price. A Premium Seat is a seat with additional fees and labeled with characters from A to J (only 10 premium seats per Flight). A NormalSeat is a seat with a number from 11 to 100. # Seat Price: double Flight source: String destination: String NB SEATS: int ste! Seats [] + Flight (9: String, d String) + toString(): String + buseat (..Sealing aniin monex.double) :boolean + total ()double + Seat (pidouble) + buy money double): boolean + toString(): String + compare to :Object) : ine Normal Seat Agency nu i int + main (arga: String[]); void + Normal Seat (Ridouble, n:int) toString(): String Premium Seat pl:char Fee: double + Premium Seat (p:double,pi:char,f:double) SRSing(): String buy (moneva double): boolean 1 We want to manage the buy of Seats for a flight. A Flight could be from "Beirut to Paris. We suppose that the number of seats for a flight is a constant NBSEATS -100. A seat has a number, and a price. A Premium Seat is a seat with additional fees and labeled with characters from A to J (only 10 premium seats per Flight). A NormalSeat is a seat with a number from 11 to 100. # Seat Price: double Flight source: String destination: String NB SEATS: int ste! Seats [] + Flight (9: String, d String) + toString(): String + buseat (..Sealing aniin monex.double) :boolean + total ()double + Seat (pidouble) + buy money double): boolean + toString(): String + compare to :Object) : ine Normal Seat Agency nu i int + main (arga: String[]); void + Normal Seat (Ridouble, n:int) toString(): String Premium Seat pl:char Fee: double + Premium Seat (p:double,pi:char,f:double) SRSing(): String buy (moneva double): boolean 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
