The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
C#
A small airline has asked you to develop a reservation system to assign seats on flights of the airline’s only plane. This plane has a capacity of 15 seats, and travel agents will be the end users of this system. The system needs to meet three major requirements:
Display the current seating chart of the plane (by somehow showing whether each and every seat has been assigned or not).
Allow the user assign a seat by entering the seat number (1 ~ 15): if this designated seat has not been assigned yet, market it as assigned and display a message indicating that the seat assignment is successful; otherwise display a message indicating that the seat is not available;
Once the program is running, users can repeatedly assign seats and check the updated seating chart, until the user explicitly chooses to exit the program.
You can make other reasonable assumptions on both user interfaces and business logics.
In addition, please also meet the following two best practices as much as possible:
Make your app as user friendly as possible (e.g., easy-to-follow user instruction; clearly presented result; meaningful error messages; etc).
Annotate your program with comments properly so that others can easily follow your logic.