please do asap, include a data defnition file and implementation class thank you thank you

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

please do asap, include a data defnition file and implementation class thank you thank you

Post by answerhappygod »

please do asap, include a data defnition file and implementation class thank you
thank you
Please Do Asap Include A Data Defnition File And Implementation Class Thank You Thank You 1
Please Do Asap Include A Data Defnition File And Implementation Class Thank You Thank You 1 (59.12 KiB) Viewed 44 times
One Air is a new commercial Airline that has a fleet of 10 airplanes with a capacity of 300 economy seats and 30 first class seats each. You have been hired by One Air to build a java program to keep track of their different flights, capacity, and amount earned per flight. Each flight is tracked by a flight Identifier (must be 6 characters long with the first two being upper case characters and the last four being only digits), flight route (e.g. Fairfax to Houston), general ticket cost, and a premium ticket cost ($250 plus the general ticket cost). Additionally, each flight should track how many economy seats and first class seats have been sold. Create a program with a menu that allows a user to select one of the following options: 1) Create Flight - This option will allow a user to create a new flight by entering all information about the route, other than the premium ticket cost. However, if the maximum number of flights has already been reached, an error message should display instead. 2) Remove Flight - This option will allow a user to delete a flight from service. To enable this, the user must first see a list of all flights available. The user may then select which flight to delete. However, if the user chooses an invalid flight, or if there are no flights to choose f e from, the user should be provided with an error message. 3) Sell Flight Ticket - This option will allow a user to sell a ticket for one of the flights by selecting a flight and specifying if it is a first class or economy seat. If the user chooses an invalid flight, or if there are no seats available for the specified type, then user should be provided with an error message. 4) Display Flights - This option will allow a user to view all information about all flights, including the number of tickets sold for each type and the money earned. However, if there are no flights created, the user should be provided with an error message. 5) Exit the Program - This option will provide a final report showing the current number of flights entered and total amount of money earned from selling tickets across all current flights (Note: Do not include flights that have been removed from service). Upon completion of the action from the menu item, the user should be prompted to select another menu item. This will continue until the user has selected to exit the program. Other Requirements: • You may assume a user will not enter two routes with the same route name or route code. • Your solution must use object-oriented techniques (No points earned for a procedural solution). . Your solution must demonstrate use of arrays Page 1 of 3 • Your solution must be designed as a modular solution using methods other than main, with each method performing one task. • Your solution must include appropriate constants, constructors, accessors, mutators, and special purpose methods (including a toString() method) with exception handling, as necessary in support of the problem. . . Your solution must not import any Java library other than JOptionPane. You may not use System.exit, or any variant that exits the program in the middle of the program. The program should only exit once the algorithm has finished completing.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply