Programming Problems 2 Write a simple library seat reservation system. We have 2
ID: 3543820 • Letter: P
Question
Programming Problems 2 Write a simple library seat reservation system. We have 2 library section A, B. Each library section has 25 seats. (5 rows * 5 columns) - You must use 2 dimensional array member variable to represent this. - Every seat is specified by its x, y position. You must use Class to represent one library. Programming Problems 2 Our system should provide these features: Show Seat Status(availability map and number of remaining seats) Reserve a seat (by taking x, y coordinates of seat) Return a seat (by taking x, y coordinates of seat) Error handling When user selects menu which is non-existing. When user selects reservation menu in the absence of available seats. When user tries to reserve a seat which is already reserved. When user selects return menu if all seats are empty. When user tries to return a seat which is not reserved. When user types invalid x or y coordinates, (out of scope: x, y > 5 or x, yExplanation / Answer
Check my ans at http://codepad.org/mkrs9MJ0
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.