-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbusResOutput
176 lines (131 loc) · 5.65 KB
/
busResOutput
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
souravmondal@sourav-pc:~/Documents$ g++ smBusRes.cpp
souravmondal@sourav-pc:~/Documents$ ./a.out
---------------------------------------------------------------------------
****SM Bus Travel Agency****
---------------------------------------------------------------------------
***************************************************************************
1.Add new Bus Details:
2.Reserve your seats:
3.Show the available seats in a bus:
4.Buses Available Now:
5.Exit
***************************************************************************
Enter your choice:-> 1
***************************************************************************
Enter bus no: 123
Enter Driver's name: Sam
Arrival time : 12:05AM
Departure: 12:20AM
From: HJK
To: LKI
***************************************************************************
1.Add new Bus Details:
2.Reserve your seats:
3.Show the available seats in a bus:
4.Buses Available Now:
5.Exit
***************************************************************************
Enter your choice:-> 1
***************************************************************************
Enter bus no: 245
Enter Driver's name: Josh
Arrival time : 01:15PM
Departure: 01:30PM
From: KLO
To: PKL
***************************************************************************
1.Add new Bus Details:
2.Reserve your seats:
3.Show the available seats in a bus:
4.Buses Available Now:
5.Exit
***************************************************************************
Enter your choice:-> 4
***************************************************************************
***************************************************************************
Bus no: 123
Driver: Sam Arrival time: 12:05AM Departure Time: 12:20AM
From: HJK To: LKI
***************************************************************************
___________________________________________________________________________
***************************************************************************
Bus no: 245
Driver: Josh Arrival time: 01:15PM Departure Time: 01:30PM
From: KLO To: PKL
***************************************************************************
___________________________________________________________________________
***************************************************************************
1.Add new Bus Details:
2.Reserve your seats:
3.Show the available seats in a bus:
4.Buses Available Now:
5.Exit
***************************************************************************
Enter your choice:-> 3
***************************************************************************
Enter bus no: 123
***************************************************************************
Bus no: 123
Driver: Sam Arrival time: 12:05AM Departure time:12:20AM
From: HJK To: LKI
***************************************************************************
1. Empty 2. Empty 3. Empty 4. Empty
5. Empty 6. Empty 7. Empty 8. Empty
9. Empty 10. Empty 11. Empty 12. Empty
13. Empty 14. Empty 15. Empty 16. Empty
17. Empty 18. Empty 19. Empty 20. Empty
21. Empty 22. Empty 23. Empty 24. Empty
25. Empty 26. Empty 27. Empty 28. Empty
29. Empty 30. Empty 31. Empty 32. Empty
There are 32 seats empty in Bus No: 123
***************************************************************************
1.Add new Bus Details:
2.Reserve your seats:
3.Show the available seats in a bus:
4.Buses Available Now:
5.Exit
***************************************************************************
Enter your choice:-> 2
***************************************************************************
Bus no: 123
Seat Number: 36
There are only 32 seats available in this bus.
Seat Number: 32
Enter passanger's name: Mike
***************************************************************************
1.Add new Bus Details:
2.Reserve your seats:
3.Show the available seats in a bus:
4.Buses Available Now:
5.Exit
***************************************************************************
Enter your choice:-> 3
***************************************************************************
Enter bus no: 123
***************************************************************************
Bus no: 123
Driver: Sam Arrival time: 12:05AM Departure time:12:20AM
From: HJK To: LKI
***************************************************************************
1. Empty 2. Empty 3. Empty 4. Empty
5. Empty 6. Empty 7. Empty 8. Empty
9. Empty 10. Empty 11. Empty 12. Empty
13. Empty 14. Empty 15. Empty 16. Empty
17. Empty 18. Empty 19. Empty 20. Empty
21. Empty 22. Empty 23. Empty 24. Empty
25. Empty 26. Empty 27. Empty 28. Empty
29. Empty 30. Empty 31. Empty 32. Mike
There are 31 seats empty in Bus No: 123
The seat no 32 is reserved for Mike.
***************************************************************************
1.Add new Bus Details:
2.Reserve your seats:
3.Show the available seats in a bus:
4.Buses Available Now:
5.Exit
***************************************************************************
Enter your choice:-> 5
***************************************************************************
Successfully Logged out from the Application. Visit Again!
<Thanks You :)>
Created By Sourav Mondal