Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AirlineReservation
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alexandru.radulescu
AirlineReservation
Commits
7d53f41d
Commit
7d53f41d
authored
Nov 04, 2019
by
LoomyGames
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the Algorithm and program idea, vision at the end of the program
parent
f1a000ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
Airplanes.java
src/Airplanes.java
+22
-0
No files found.
src/Airplanes.java
View file @
7d53f41d
...
...
@@ -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
*/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment