-
Notifications
You must be signed in to change notification settings - Fork 0
/
output.txt
168 lines (134 loc) · 6.17 KB
/
output.txt
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
ubuntu:~/Desktop/ParkingLotAssignment$ node index.js
--------------------
Vehicle with REG-NUMBER01 of Type CAR Added to Row 0 in Level 0
Remaining Slots in Level 0 in Row 0 are 37
--------------------
--------------------
Vehicle with REG-NUMBER02 of Type BUS Added to Row 0 in Level 0
Remaining Slots in Level 0 in Row 0 are 12
--------------------
--------------------
Vehicle with REG-NUMBER03 of Type CAR Added to Row 0 in Level 0
Remaining Slots in Level 0 in Row 0 are 9
--------------------
--------------------
Vehicle with REG-NUMBER04 of Type CAR Added to Row 0 in Level 0
Remaining Slots in Level 0 in Row 0 are 6
--------------------
--------------------
Vehicle with REG-NUMBER05 of Type MOTORCYCLE Added to Row 0 in Level 0
Remaining Slots in Level 0 in Row 0 are 5
--------------------
--------------------
Vehicle with REG-NUMBER06 of Type CAR Added to Row 0 in Level 0
Remaining Slots in Level 0 in Row 0 are 2
--------------------
--------------------
Vehicle with REG-NUMBER07 of Type BUS Added to Row 1 in Level 0
Remaining Slots in Level 0 in Row 1 are 15
--------------------
--------------------
Vehicle with REG-NUMBER08 of Type BUS Added to Row 2 in Level 0
Remaining Slots in Level 0 in Row 2 are 15
--------------------
--------------------
Vehicle with REG-NUMBER09 of Type CAR Added to Row 1 in Level 0
Remaining Slots in Level 0 in Row 1 are 12
--------------------
--------------------
Vehicle with REG-NUMBER10 of Type MOTORCYCLE Added to Row 0 in Level 0
Remaining Slots in Level 0 in Row 0 are 1
--------------------
--------------------
Vehicle with REG-NUMBER11 of Type CAR Added to Row 1 in Level 0
Remaining Slots in Level 0 in Row 1 are 9
--------------------
--------------------
Vehicle with REG-NUMBER12 of Type CAR Added to Row 1 in Level 0
Remaining Slots in Level 0 in Row 1 are 6
--------------------
Vehicle of Type MOTORCYCLE is located at Level 0, Row 0
Vehicle with Registered Number RANDOM-REG-NUMBER is not present in the parking lot.
---------Empty Slot's ---------
Level 0, Row 0, Remaining Empty Spot's are 1
Level 0, Row 1, Remaining Empty Spot's are 6
Level 0, Row 2, Remaining Empty Spot's are 15
Total Remaining Empty Spot's are: 22
Vehicle with registered number REG-NUMBER06 is already present!
No Available Spot for Vehicle with Registered Number REG-NUMBER06
---------Vehicles in Parking Lot are ---------
Vehicle in Level 0 in Row 0 Type is CAR with Registered Number REG-NUMBER01
Vehicle in Level 0 in Row 0 Type is BUS with Registered Number REG-NUMBER02
Vehicle in Level 0 in Row 0 Type is CAR with Registered Number REG-NUMBER03
Vehicle in Level 0 in Row 0 Type is CAR with Registered Number REG-NUMBER04
Vehicle in Level 0 in Row 0 Type is MOTORCYCLE with Registered Number REG-NUMBER05
Vehicle in Level 0 in Row 0 Type is CAR with Registered Number REG-NUMBER06
Vehicle in Level 0 in Row 0 Type is MOTORCYCLE with Registered Number REG-NUMBER10
Vehicle in Level 0 in Row 1 Type is BUS with Registered Number REG-NUMBER07
Vehicle in Level 0 in Row 1 Type is CAR with Registered Number REG-NUMBER09
Vehicle in Level 0 in Row 1 Type is CAR with Registered Number REG-NUMBER11
Vehicle in Level 0 in Row 1 Type is CAR with Registered Number REG-NUMBER12
Vehicle in Level 0 in Row 2 Type is BUS with Registered Number REG-NUMBER08
--------------------
Vehicle CAR with Reg Num REG-NUMBER01 and can Leave from Level 0 in Row 0. Thank You.
Remaining Slots in Level 0 in Row 0 are 4
--------------------
--------------------
Vehicle BUS with Reg Num REG-NUMBER02 and can Leave from Level 0 in Row 0. Thank You.
Remaining Slots in Level 0 in Row 0 are 29
--------------------
--------------------
Vehicle CAR with Reg Num REG-NUMBER03 and can Leave from Level 0 in Row 0. Thank You.
Remaining Slots in Level 0 in Row 0 are 32
--------------------
--------------------
Vehicle CAR with Reg Num REG-NUMBER04 and can Leave from Level 0 in Row 0. Thank You.
Remaining Slots in Level 0 in Row 0 are 35
--------------------
--------------------
Vehicle MOTORCYCLE with Reg Num REG-NUMBER05 and can Leave from Level 0 in Row 0. Thank You.
Remaining Slots in Level 0 in Row 0 are 36
--------------------
---------Vehicles in Parking Lot are ---------
Vehicle in Level 0 in Row 0 Type is CAR with Registered Number REG-NUMBER06
Vehicle in Level 0 in Row 0 Type is MOTORCYCLE with Registered Number REG-NUMBER10
Vehicle in Level 0 in Row 1 Type is BUS with Registered Number REG-NUMBER07
Vehicle in Level 0 in Row 1 Type is CAR with Registered Number REG-NUMBER09
Vehicle in Level 0 in Row 1 Type is CAR with Registered Number REG-NUMBER11
Vehicle in Level 0 in Row 1 Type is CAR with Registered Number REG-NUMBER12
Vehicle in Level 0 in Row 2 Type is BUS with Registered Number REG-NUMBER08
--------------------
Vehicle CAR with Reg Num REG-NUMBER06 and can Leave from Level 0 in Row 0. Thank You.
Remaining Slots in Level 0 in Row 0 are 39
--------------------
--------------------
Vehicle BUS with Reg Num REG-NUMBER07 and can Leave from Level 0 in Row 1. Thank You.
Remaining Slots in Level 0 in Row 1 are 31
--------------------
--------------------
Vehicle BUS with Reg Num REG-NUMBER08 and can Leave from Level 0 in Row 2. Thank You.
Remaining Slots in Level 0 in Row 2 are 40
--------------------
--------------------
Vehicle CAR with Reg Num REG-NUMBER09 and can Leave from Level 0 in Row 1. Thank You.
Remaining Slots in Level 0 in Row 1 are 34
--------------------
--------------------
Vehicle MOTORCYCLE with Reg Num REG-NUMBER10 and can Leave from Level 0 in Row 0. Thank You.
Remaining Slots in Level 0 in Row 0 are 40
--------------------
--------------------
Vehicle CAR with Reg Num REG-NUMBER11 and can Leave from Level 0 in Row 1. Thank You.
Remaining Slots in Level 0 in Row 1 are 37
--------------------
--------------------
Vehicle CAR with Reg Num REG-NUMBER12 and can Leave from Level 0 in Row 1. Thank You.
Remaining Slots in Level 0 in Row 1 are 40
--------------------
---------Vehicles in Parking Lot are ---------
---------No Vehicles in Parking Slot!---------
---------Empty Slot's ---------
Level 0, Row 0, Remaining Empty Spot's are 40
Level 0, Row 1, Remaining Empty Spot's are 40
Level 0, Row 2, Remaining Empty Spot's are 40
Total Remaining Empty Spot's are: 120