Commit 7d53f41d authored by LoomyGames's avatar LoomyGames

Added the Algorithm and program idea, vision at the end of the program

parent f1a000ad
...@@ -216,3 +216,25 @@ public class Airplanes { ...@@ -216,3 +216,25 @@ public class Airplanes {
} }
//-----------------------------------------------------------------------------------------------------------ALGORITHM-----------------------------------------------------------------------------------------------------
/* Use a two-dimensional array with i seats up to 90, while p, the 2nd dimension, is the plane number, up to 28
* Initialize the array elements as normal seat numbers
* Ask the user for his info (name, city, hour etc)
* Check whether we have airplanes left
* If yes then continue on with the program
* or else break and exit
* Ask the user for the class (1,2,3) and for the seat, and assign it, if possible
* If not possible then ask if the user would like another seat
* If not, then exit
* If yes. then the program will loop and ask the same questions, until either a seat is available or the user exits
* During this time, if a plane is full, the system automatically assigns the user a seat on the next flight
* Lastly, add a method for the boarding pass and call it each time the user books a good seat (not occupied)
* The user will be able to book more seats and each one will have a different boarding pass
*
* MISCELLANEOUS:
*
* Add a method for the first input of the user (name etc.)
* Add a method for checking occupied seats and assigning them
* Add a method for showing seats
*/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment