Question: This problem should solve with JAVA CODES!!! The Banana Republic Airways (BRA) has just purchased a computer for its new automated reservation system. The company

This problem should solve with JAVA CODES!!!

This problem should solve with JAVA CODES!!! The Banana Republic Airways (BRA)

The Banana Republic Airways (BRA) has just purchased a computer for its new automated reservation system. The company has flights from izmir to six other cities in Turkey. The cities are referred to by number, 1 to 6. The prices for one-way flight ticket to each city are as follows: City Code1 Price(TL) 6 65 4 45 45 75 35 Each flight has a boarding capacity of 15 seats; they are numbered from 1 to 15. You are supposed to write a program that processes the order of each customer. The program should get the name of the passenger, the code of the destination city, and the number of tickets desired with a maximum of 5 tickets per sale If the passenger's order is completely satisfied, the program let the user choose the seat numbers from the displayed list of free seats in that flight and display the cost, otherwise continues with the next passenger by displaying an appropriate message You will design your test cases for 10 passenger's orders such that the code (a value between 1 and 6) and number of ticket (a value between 1 and 5) are generated randomly. You should only enter the name of the passenger, (that you design your code to choose from list of 10 names though). Do not forget to display random values in the output for each case Finally, after having processed 10 orders and the program should display the total number tickets sold to each of the six cities as well as the name of the passenger with their seat numbers in that flight and the grand total of all the ticket prices. For simplicity assume that one passenger that requires more than one ticket will use the same name his/her tickets The Banana Republic Airways (BRA) has just purchased a computer for its new automated reservation system. The company has flights from izmir to six other cities in Turkey. The cities are referred to by number, 1 to 6. The prices for one-way flight ticket to each city are as follows: City Code1 Price(TL) 6 65 4 45 45 75 35 Each flight has a boarding capacity of 15 seats; they are numbered from 1 to 15. You are supposed to write a program that processes the order of each customer. The program should get the name of the passenger, the code of the destination city, and the number of tickets desired with a maximum of 5 tickets per sale If the passenger's order is completely satisfied, the program let the user choose the seat numbers from the displayed list of free seats in that flight and display the cost, otherwise continues with the next passenger by displaying an appropriate message You will design your test cases for 10 passenger's orders such that the code (a value between 1 and 6) and number of ticket (a value between 1 and 5) are generated randomly. You should only enter the name of the passenger, (that you design your code to choose from list of 10 names though). Do not forget to display random values in the output for each case Finally, after having processed 10 orders and the program should display the total number tickets sold to each of the six cities as well as the name of the passenger with their seat numbers in that flight and the grand total of all the ticket prices. For simplicity assume that one passenger that requires more than one ticket will use the same name his/her tickets

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!