104 lines
2.2 KiB
Plaintext
104 lines
2.2 KiB
Plaintext
|
Enter number of passengers permitted on ferry: 10
|
||
|
Enter number of axels allowed on ferry: 10
|
||
|
Enter weight limit for ferry: 1600
|
||
|
Enter number of vehicles ferry can hold: 3
|
||
|
|
||
|
Please select one of these options:
|
||
|
1. Add a vehicle
|
||
|
2. Remove a vehicle
|
||
|
3. Change passengers in a vehicle
|
||
|
4. Print ferry contents list
|
||
|
5. Print weight left
|
||
|
6. Quit
|
||
|
1
|
||
|
Enter number of passengers: 3
|
||
|
Enter number of axels: 4
|
||
|
Enter weight: 200
|
||
|
==> vehicle added
|
||
|
|
||
|
Please select one of these options:
|
||
|
1. Add a vehicle
|
||
|
2. Remove a vehicle
|
||
|
3. Change passengers in a vehicle
|
||
|
4. Print ferry contents list
|
||
|
5. Print weight left
|
||
|
6. Quit
|
||
|
1
|
||
|
Enter number of passengers: 3
|
||
|
Enter number of axels: 4
|
||
|
Enter weight: 300
|
||
|
==> vehicle added
|
||
|
|
||
|
Please select one of these options:
|
||
|
1. Add a vehicle
|
||
|
2. Remove a vehicle
|
||
|
3. Change passengers in a vehicle
|
||
|
4. Print ferry contents list
|
||
|
5. Print weight left
|
||
|
6. Quit
|
||
|
3
|
||
|
Enter vehicle ID: 101
|
||
|
Enter new number of passengers: 4
|
||
|
==> vehicle 101's passenger number changed
|
||
|
|
||
|
Please select one of these options:
|
||
|
1. Add a vehicle
|
||
|
2. Remove a vehicle
|
||
|
3. Change passengers in a vehicle
|
||
|
4. Print ferry contents list
|
||
|
5. Print weight left
|
||
|
6. Quit
|
||
|
4
|
||
|
100 00,200.00 kg
|
||
|
101 00,300.00 kg
|
||
|
Total Weight: 00,500.00 kg
|
||
|
Total Axels: 8
|
||
|
Total Passengers: 7
|
||
|
|
||
|
Please select one of these options:
|
||
|
1. Add a vehicle
|
||
|
2. Remove a vehicle
|
||
|
3. Change passengers in a vehicle
|
||
|
4. Print ferry contents list
|
||
|
5. Print weight left
|
||
|
6. Quit
|
||
|
5
|
||
|
1100.0
|
||
|
|
||
|
Please select one of these options:
|
||
|
1. Add a vehicle
|
||
|
2. Remove a vehicle
|
||
|
3. Change passengers in a vehicle
|
||
|
4. Print ferry contents list
|
||
|
5. Print weight left
|
||
|
6. Quit
|
||
|
4
|
||
|
100 00,200.00 kg
|
||
|
101 00,300.00 kg
|
||
|
Total Weight: 00,500.00 kg
|
||
|
Total Axels: 8
|
||
|
Total Passengers: 7
|
||
|
|
||
|
Please select one of these options:
|
||
|
1. Add a vehicle
|
||
|
2. Remove a vehicle
|
||
|
3. Change passengers in a vehicle
|
||
|
4. Print ferry contents list
|
||
|
5. Print weight left
|
||
|
6. Quit
|
||
|
2
|
||
|
Enter vehicle ID:
|
||
|
101
|
||
|
==> vehicle removed
|
||
|
|
||
|
Please select one of these options:
|
||
|
1. Add a vehicle
|
||
|
2. Remove a vehicle
|
||
|
3. Change passengers in a vehicle
|
||
|
4. Print ferry contents list
|
||
|
5. Print weight left
|
||
|
6. Quit
|
||
|
6
|
||
|
|
||
|
Process finished with exit code 0
|