Test Eingabe Erwartet Erhalten Menü ausgeben, Programm beenden x Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): leeren Zug ausgeben p x Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: No Carriages! Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: No Carriages! Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): 10 diverse Waggons einfügen (vorne, hinten, mitte im Array) n p 20 0 p n p 20 0 p n p 20 2 p n p 20 1 p n p 20 0 p n p 20 0 p n p 20 2 p n p 20 4 p n d 20 1 p n s 20 4 p x Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020] Length: 3 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020] Length: 4 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-4): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020]-4:[P:020] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-5): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020]-4:[P:020]-5:[P:020] Length: 6 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-6): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020]-4:[P:020]-5:[P:020]-6:[P:020] Length: 7 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-7): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020]-4:[P:020]-5:[P:020]-6:[P:020]-7:[P:020] Length: 8 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-8): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[D:020]-2:[P:020]-3:[P:020]-4:[P:020]-5:[P:020]-6:[P:020]-7:[P:020]-8:[P:020] Length: 9 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-9): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[D:020]-2:[P:020]-3:[P:020]-4:[S:020]-5:[P:020]-6:[P:020]-7:[P:020]-8:[P:020]-9:[P:020] Length: 10 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020] Length: 3 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020] Length: 4 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-4): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020]-4:[P:020] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-5): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020]-4:[P:020]-5:[P:020] Length: 6 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-6): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020]-4:[P:020]-5:[P:020]-6:[P:020] Length: 7 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-7): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020]-4:[P:020]-5:[P:020]-6:[P:020]-7:[P:020] Length: 8 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-8): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[D:020]-2:[P:020]-3:[P:020]-4:[P:020]-5:[P:020]-6:[P:020]-7:[P:020]-8:[P:020] Length: 9 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-9): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[D:020]-2:[P:020]-3:[P:020]-4:[S:020]-5:[P:020]-6:[P:020]-7:[P:020]-8:[P:020]-9:[P:020] Length: 10 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): 11 diverse Waggons einfügen n p 20 0 p n p 20 0 p n p 20 2 p n p 20 1 p n p 20 0 p n p 20 0 p n p 20 2 p n p 20 4 p n d 20 1 p n s 20 4 p n p 20 4 p x Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020] Length: 3 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020] Length: 4 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-4): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020]-4:[P:020] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-5): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020]-4:[P:020]-5:[P:020] Length: 6 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-6): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020]-4:[P:020]-5:[P:020]-6:[P:020] Length: 7 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-7): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020]-4:[P:020]-5:[P:020]-6:[P:020]-7:[P:020] Length: 8 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-8): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[D:020]-2:[P:020]-3:[P:020]-4:[P:020]-5:[P:020]-6:[P:020]-7:[P:020]-8:[P:020] Length: 9 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-9): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[D:020]-2:[P:020]-3:[P:020]-4:[S:020]-5:[P:020]-6:[P:020]-7:[P:020]-8:[P:020]-9:[P:020] Length: 10 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-10): Error: Train too long! Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[D:020]-2:[P:020]-3:[P:020]-4:[S:020]-5:[P:020]-6:[P:020]-7:[P:020]-8:[P:020]-9:[P:020] Length: 10 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020] Length: 3 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020] Length: 4 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-4): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020]-4:[P:020] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-5): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020]-4:[P:020]-5:[P:020] Length: 6 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-6): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020]-4:[P:020]-5:[P:020]-6:[P:020] Length: 7 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-7): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020]-4:[P:020]-5:[P:020]-6:[P:020]-7:[P:020] Length: 8 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-8): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[D:020]-2:[P:020]-3:[P:020]-4:[P:020]-5:[P:020]-6:[P:020]-7:[P:020]-8:[P:020] Length: 9 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-9): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[D:020]-2:[P:020]-3:[P:020]-4:[S:020]-5:[P:020]-6:[P:020]-7:[P:020]-8:[P:020]-9:[P:020] Length: 10 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-10): Error: Train too long! Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[D:020]-2:[P:020]-3:[P:020]-4:[S:020]-5:[P:020]-6:[P:020]-7:[P:020]-8:[P:020]-9:[P:020] Length: 10 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Kapazitätsgrenzen bei der Eingabe testen n p 20 0 p n p 19 20 0 p n p 130 2 p n p 131 20 1 p n s 20 2 p n d 20 4 p x Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Input invalid! Try again: Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:130] Length: 3 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Input invalid! Try again: Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:130] Length: 4 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-4): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[S:020]-3:[P:020]-4:[P:130] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-5): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[S:020]-3:[P:020]-4:[D:020]-5:[P:130] Length: 6 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Input invalid! Try again: Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:130] Length: 3 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Input invalid! Try again: Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:130] Length: 4 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-4): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[S:020]-3:[P:020]-4:[P:130] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-5): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[S:020]-3:[P:020]-4:[D:020]-5:[P:130] Length: 6 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Speisewagen wird nicht zwischen Passagierwagen eingefügt n p 20 0 p n p 20 0 p n p 20 0 p n p 20 0 p n s 20 2 p n d 20 2 p x Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020] Length: 3 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020] Length: 4 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-4): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[S:020]-3:[P:020]-4:[P:020] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-5): Error: Diner only possible between two passenger carriages! Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[S:020]-3:[P:020]-4:[P:020] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020] Length: 3 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020] Length: 4 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-4): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[S:020]-3:[P:020]-4:[P:020] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-5): Error: Diner only possible between two passenger carriages! Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[S:020]-3:[P:020]-4:[P:020] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Speisewagen wird hinten eingefügt n p 20 0 p n p 20 0 p n p 20 0 p n p 20 0 p n s 20 2 p n d 20 5 p x Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020] Length: 3 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020] Length: 4 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-4): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[S:020]-3:[P:020]-4:[P:020] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-5): Error: Diner only possible between two passenger carriages! Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[S:020]-3:[P:020]-4:[P:020] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020] Length: 3 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020] Length: 4 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-4): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[S:020]-3:[P:020]-4:[P:020] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-5): Error: Diner only possible between two passenger carriages! Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[S:020]-3:[P:020]-4:[P:020] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Schlafwagen wird vor nur einem Passagierwagen eingefügt n p 20 0 p n p 20 0 p n p 20 0 p n p 20 0 p n d 20 2 p n s 20 1 p x Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020] Length: 3 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020] Length: 4 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-4): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[D:020]-3:[P:020]-4:[P:020] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-5): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[S:020]-2:[P:020]-3:[D:020]-4:[P:020]-5:[P:020] Length: 6 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020] Length: 3 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020] Length: 4 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-4): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[D:020]-3:[P:020]-4:[P:020] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-5): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[S:020]-2:[P:020]-3:[D:020]-4:[P:020]-5:[P:020] Length: 6 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Schlafwagen wird hinten eingefügt n p 20 0 p n p 20 0 p n p 20 0 p n p 20 0 p n d 20 2 p n s 20 5 p x Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020] Length: 3 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020] Length: 4 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-4): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[D:020]-3:[P:020]-4:[P:020] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-5): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[D:020]-3:[P:020]-4:[P:020]-5:[S:020] Length: 6 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020] Length: 3 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020] Length: 4 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-4): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[D:020]-3:[P:020]-4:[P:020] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-5): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[D:020]-3:[P:020]-4:[P:020]-5:[S:020] Length: 6 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Schlafwagen wird vorne eingefügt n p 20 0 p n p 20 0 p n p 20 0 p n p 20 0 p n d 20 2 p n s 20 0 p x Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020] Length: 3 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020] Length: 4 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-4): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[D:020]-3:[P:020]-4:[P:020] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-5): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[S:020]-1:[P:020]-2:[P:020]-3:[D:020]-4:[P:020]-5:[P:020] Length: 6 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020] Length: 3 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020] Length: 4 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-4): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[D:020]-3:[P:020]-4:[P:020] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-5): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[S:020]-1:[P:020]-2:[P:020]-3:[D:020]-4:[P:020]-5:[P:020] Length: 6 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Speisewagenkapazitätstest n p 20 0 p n p 20 0 p n p 20 0 p n p 20 0 p n s 50 2 p n d 30 1 p n d 31 5 s x Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020] Length: 3 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020] Length: 4 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-4): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[S:050]-3:[P:020]-4:[P:020] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-5): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[D:030]-2:[P:020]-3:[S:050]-4:[P:020]-5:[P:020] Length: 6 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-6): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[D:030]-2:[P:020]-3:[S:050]-4:[P:020]-5:[D:031]-6:[P:020] Length: 7 Capacities: Passenger: 80 Sleeper: 50 Diner: 61 - invalid Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020] Length: 3 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020] Length: 4 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-4): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[S:050]-3:[P:020]-4:[P:020] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-5): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[D:030]-2:[P:020]-3:[S:050]-4:[P:020]-5:[P:020] Length: 6 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-6): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[D:030]-2:[P:020]-3:[S:050]-4:[P:020]-5:[D:031]-6:[P:020] Length: 7 Capacities: Passenger: 80 Sleeper: 50 Diner: 61 - invalid Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Schlafwagenkapazitästest n p 20 0 p n p 20 0 p n p 20 0 p n p 20 0 p n s 20 2 p n s 24 2 p s n s 20 2 s x Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020] Length: 3 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020] Length: 4 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-4): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[S:020]-3:[P:020]-4:[P:020] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-5): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[S:024]-3:[S:020]-4:[P:020]-5:[P:020] Length: 6 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[S:024]-3:[S:020]-4:[P:020]-5:[P:020] Length: 6 Capacities: Passenger: 80 Sleeper: 44 Diner: 0 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-6): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[S:020]-3:[S:024]-4:[S:020]-5:[P:020]-6:[P:020] Length: 7 Capacities: Passenger: 80 Sleeper: 64 Diner: 0 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020] Length: 3 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:020]-3:[P:020] Length: 4 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-4): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[S:020]-3:[P:020]-4:[P:020] Length: 5 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-5): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[S:024]-3:[S:020]-4:[P:020]-5:[P:020] Length: 6 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[S:024]-3:[S:020]-4:[P:020]-5:[P:020] Length: 6 Capacities: Passenger: 80 Sleeper: 44 Diner: 0 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-6): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[S:020]-3:[S:024]-4:[S:020]-5:[P:020]-6:[P:020] Length: 7 Capacities: Passenger: 80 Sleeper: 64 Diner: 0 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Passagierwagenkapazitätstest n p 20 0 p n p 20 0 p n p 24 0 s n p 20 0 s x Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:024]-1:[P:020]-2:[P:020] Length: 3 Capacities: Passenger: 64 Sleeper: 0 Diner: 0 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:024]-2:[P:020]-3:[P:020] Length: 4 Capacities: Passenger: 84 Sleeper: 0 Diner: 0 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:024]-1:[P:020]-2:[P:020] Length: 3 Capacities: Passenger: 64 Sleeper: 0 Diner: 0 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:024]-2:[P:020]-3:[P:020] Length: 4 Capacities: Passenger: 84 Sleeper: 0 Diner: 0 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Passagierwagenkapazitätstest n p 40 0 p n p 40 0 p n p 20 0 s n p 20 0 s x Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:040] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:040]-1:[P:040] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:040]-2:[P:040] Length: 3 Capacities: Passenger: 100 Sleeper: 0 Diner: 0 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:040]-3:[P:040] Length: 4 Capacities: Passenger: 120 Sleeper: 0 Diner: 0 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:040] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:040]-1:[P:040] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-2): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:040]-2:[P:040] Length: 3 Capacities: Passenger: 100 Sleeper: 0 Diner: 0 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-3): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020]-2:[P:040]-3:[P:040] Length: 4 Capacities: Passenger: 120 Sleeper: 0 Diner: 0 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Fehleingaben n e p 20 0 p x Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Input invalid! Try again: Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Input invalid! Try again: Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): getMenu function getMenu found function getMenu found printCarriage function printCarriage found function printCarriage found printTrain function printTrain found function printTrain found getCarriage function getCarriage found function getCarriage found getPosition function getPosition found function getPosition found insertCarriage function insertCarriage found function insertCarriage found sumCapacity function sumCapacity found function sumCapacity found printTrainStats function printTrainStats found function printTrainStats found Fehleingaben n p 20 -1 0 p x Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Input invalid! Try again: Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Input invalid! Try again: Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Fehleingaben n p 20 0 q p x Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Input invalid! Try again: Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Input invalid! Try again: Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Fehleingaben n p 20 0 p n p 20 4 0 p x Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Input invalid! Try again: Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-0): Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020] Length: 1 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Choose type of carriage: passenger (p), sleeper (s) or diner (d): Choose capacity (20 - 130): Choose position for the new carriage (0-1): Input invalid! Try again: Choose Action: print train (p), new carriage (n), print stats (s) or exit (x): Train: 0:[P:020]-1:[P:020] Length: 2 Choose Action: print train (p), new carriage (n), print stats (s) or exit (x):