-
Notifications
You must be signed in to change notification settings - Fork 0
/
car parking system.cpp
1059 lines (1036 loc) · 34.1 KB
/
car parking system.cpp
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#include<iostream>
#include<conio.h>
#include<windows.h>
#include<string>
using namespace std;
string workername1;
string worker1pass;
string workername2;
string worker2pass;
string workername3;
string worker3pass;
string workername4;
string worker4pass;
string workername5;
string worker5pass;
string mob1;
string age1;
string mob2;
string age2;
string mob3;
string age3;
string mob4;
string age4;
string mob5;
string age5;
int main()
{
//system("color 9B");
int c=0,b=0,r=0,j=0,h=0;
int amount=0,count=0;
int rik=30,bus=100,car=50,bik=20,hvy=200,limits=100;
int v,p,w;
cout<<"\n\n\n\n\t***********************************************************\n";
cout<<"\t* Wellcome *\n";
cout<<"\t*_________________________________________________________*\n";
cout<<"\t* to *\n";
cout<<"\t*_________________________________________________________*\n";
cout<<"\t* parking managment system *\n";
cout<<"\t*_________________________________________________________*\n";
cout<<"\t* | @ developed by : Mr Amir Ghafoor *\n";
cout<<"\t***********************************************************\n\n";
Sleep(1000);
cout<<" LoAdInG PrOgRaM.";
for(int i=0;i<=15;i++)
{
Sleep(800);
cout<<".";
}
system("cls");
//string NewWorkername[5];
//string NewWorkerpass[5];
string y,t;
int i=0;
int g;
int q;
//string ;
string password="admin";
char top;
while(true)
{
system("cls");
system("color 3E");
cout<<"\n\t***************************************************************\n";
cout<<"\t* | | *\n";
cout<<"\t* | Main Manu | *\n";
cout<<"\t* | | *\n";
cout<<"\t***************************************************************\n";
cout<<"\t* *\n";
cout<<"\t* Press 1 to login Admin Account *\n";
cout<<"\t*_____________________________________________________________*\n";
cout<<"\t* *\n";
cout<<"\t* Press 2 to login Worker Account *\n";
cout<<"\t*_____________________________________________________________*\n";
cout<<"\t* *\n";
cout<<"\t* press any button to exit the program *\n";
cout<<"\t*_____________________________________________________________*\n";
cout<<"\t* |@ Mr Amir Ghafoor *\n";
cout<<"\t***************************************************************\n\n";
cout<<"\t Enter Your Choice :: ";
cin>>i;
if(i==1)
{
//Admin Block::
string a,s;
system("cls");
cout<<"\n\t________________________________";
cout<<"\n\t| |";
cout<<"\n\t| Wellcome to Admin Block & |";
cout<<"\n\t|______________________________|";
cout<<"\n\n\tUsername Hint :: Your name";
cout<<"\n\n\tEnter Username ::";
cin>>a;
cout<<"\n\n\tPassword Hint:: .admin.";
cout<<"\n\tEnter User password::";
cin>>s;
if(a==a && s==password)
{
Sleep(300);
system("cls");
cout<<"\n\n\t Loading Admin Account.";
for(int i=0;i<=7;i++)
{
Sleep(300);
cout<<".";
}
system("cls");
do
{
system("cls");
system("color 1E");
cout<<"\n\t*********************************************************************\n";
cout<<"\t* | Admin Block | *\n";
cout<<"\t*********************************************************************\n";
cout<<"\t* Press 1 to create Worker Account *\n";
cout<<"\t*___________________________________________________________________*\n";
cout<<"\t* Press 2 to check how many vahicles park in parking *\n";
cout<<"\t*___________________________________________________________________*\n";
cout<<"\t* Press 3 to show the charges of parking system *\n";
cout<<"\t*___________________________________________________________________*\n";
cout<<"\t* Press 4 to Show the collected Rupees of parking system *\n";
cout<<"\t*___________________________________________________________________*\n";
cout<<"\t* Press 5 to show the record of worker *\n";
cout<<"\t*___________________________________________________________________*\n";
cout<<"\t* Press 6 to edit charges *\n";
cout<<"\t*___________________________________________________________________*\n";
cout<<"\t* Press 7 to check the limits of parking system *\n";
cout<<"\t*___________________________________________________________________*\n";
cout<<"\t* Press 8 to edit the parking limits *\n";
cout<<"\t*___________________________________________________________________*\n";
cout<<"\t* Press 9 to logOut Admin Block *\n";
cout<<"\t*********************************************************************\n\n";
cout<<"\t Enter Your Choice :: ";
cin>>q;
system("cls");
switch(q)
{
case 1:
{
//worker account ::
cout<<"\n\t***********************************\n";
cout<<"\t* You enter only five worker ::*\n";
cout<<"\t* Press 1 to enter first worker ::*\n";
cout<<"\t* Press 2 to enter second worker::*\n";
cout<<"\t* Press 3 to enter third worker ::*\n";
cout<<"\t* Press 4 to enter fourth worker::*\n";
cout<<"\t* Press 5 to enter fith worker ::*\n";
cout<<"\t***********************************\n";
cout<<"\t* Enter your choice ::";
cin>>g;
system("cls");
cout<<"\n\n";
if(g==1)
{
cout<<"\tEnter Worker Name:: ";
cin>>workername1;
cout<<"\tEnter Worker Mobile Number:: ";
cin>>mob1;
cout<<"\tEnter worker age:: ";
cin>>age1;
cout<<"\tEnter Worker account password:: ";
cin>>worker1pass;
system("cls");
cout<<"\n\n\tWorker Account Created Successfully\n\n";
cout<<"\t Press any key to go back \n";
}
else if(g==2)
{
cout<<"\tEnter Worker Name:: ";
cin>>workername2;
cout<<"\tEnter Worker Mobile Number:: ";
cin>>mob2;
cout<<"\tEnter worker age:: ";
cin>>age2;
cout<<"\tEnter Worker account password:: ";
cin>>worker2pass;
system("cls");
cout<<"\n\n\tWorker Account Created Successfully\n\n";
cout<<"\t Press any key to go back \n";
}
else if(g==3)
{
cout<<"\tEnter Worker Name:: ";
cin>>workername3;
cout<<"\tEnter Worker Mobile Number:: ";
cin>>mob3;
cout<<"\tEnter worker age:: ";
cin>>age3;
cout<<"\tEnter Worker account password:: ";
cin>>worker3pass;
system("cls");
cout<<"\n\n\tWorker Account Created Successfully\n\n";
cout<<"\t Press any key to go back \n";
}
else if(g==4)
{
cout<<"\tEnter Worker Name:: ";
cin>>workername4;
cout<<"\tEnter Worker Mobile Number:: ";
cin>>mob4;
cout<<"\tEnter worker age:: ";
cin>>age4;
cout<<"\tEnter Worker account password:: ";
cin>>worker4pass;
system("cls");
cout<<"\n\n\tWorker Account Created Successfully\n\n";
cout<<"\t Press any key to go back \n";
}
else if(g==5)
{
cout<<"\tEnter Worker Name:: ";
cin>>workername5;
cout<<"\tEnter Worker Mobile Number:: ";
cin>>mob5;
cout<<"\tEnter worker age:: ";
cin>>age5;
cout<<"\tEnter Worker account password:: ";
cin>>worker5pass;
system("cls");
cout<<"\n\tWorker Account Created Successfully ::\n\n";
cout<<"\t Press any key to go back \n";
}
else
{
cout<<"\n\n\tSorry you can enter only five Worker in parking system\n";
}
//getch();
break;
}
case 2:
{
system("cls");
cout<<"\n\t***************************************************************\n";
cout<<"\t* The total car stand in parking_____________________= "<<c<<endl;
cout<<"\t* The total Bus stand in parking_____________________= "<<b<<endl;
cout<<"\t* The total Rikhshas stand in parking________________= "<<r<<endl;
cout<<"\t* The total Bikes stand in parking___________________= "<<j<<endl;
cout<<"\t* The total number of other vehicles stand in parking= "<<h<<endl;
cout<<"\t* The total number of vehicles stand in parking______= "<<count<<endl;
cout<<"\t***************************************************************\n";
Sleep(500);
cout<<"\n\t*****************************************************\n";
cout<<"\t* Press any Key to run program again *\n";
cout<<"\t*****************************************************\n";
//getch();
break;
}
case 3:
{
system("cls");
cout<<"\n\t**********************************************\n";
cout<<"\t* The Charges for One Rikshas :: "<<rik;
cout<<"\n\t* The Charges for One Bus :: "<<bus;
cout<<"\n\t* The Charges for One Car :: "<<car;
cout<<"\n\t* The Charges for One Bike :: "<<bik;
cout<<"\n\t* The Charges for One havy Vahicle:: "<<hvy;
cout<<"\n\t**********************************************\n";
cout<<"\t**********************************************\n";
cout<<"\t* Press any Key to run program again *\n";
cout<<"\t**********************************************\n";
//getch();
break;
}
case 4:
{
//parking limits::
cout<<"\n\t*************************************************************\n";
cout<<"\t* The amount that is collected__________________= "<<amount<<"\n";
cout<<"\t*************************************************************\n\n";
Sleep(500);
cout<<"\t*************************************************************\n";
cout<<"\t* Press any Key to run program again *\n";
cout<<"\t*************************************************************\n";
//getch();
break;
}
case 5:
{
system("cls");
cout<<"\t*****************************************\n";
cout<<"\t* Worker Name ::"<<workername1<<endl;
cout<<"\t* Worker Password ::"<<worker1pass<<endl;
cout<<"\t* Worker Mobile number ::"<<mob1<<endl;
cout<<"\t* Worker age ::"<<age1<<endl;
cout<<"\t*****************************************\n";
cout<<"\t* Worker Name ::"<<workername2<<endl;
cout<<"\t* Worker Password ::"<<worker2pass<<endl;
cout<<"\t* Worker Mobile number ::"<<mob2<<endl;
cout<<"\t* Worker age ::"<<age2<<endl;
cout<<"\t*****************************************\n";
cout<<"\t* Worker Name ::"<<workername3<<endl;
cout<<"\t* Worker Password ::"<<worker3pass<<endl;
cout<<"\t* Worker Mobile number ::"<<mob3<<endl;
cout<<"\t* Worker age ::"<<age3<<endl;
cout<<"\t*****************************************\n";
cout<<"\t* Worker Mobile number ::"<<workername4<<endl;
cout<<"\t* Worker Password ::"<<worker4pass<<endl;
cout<<"\t* Worker Mobile number ::"<<mob4<<endl;
cout<<"\t* Worker age ::"<<age4<<endl;
cout<<"\t*****************************************\n";
cout<<"\t* Worker Mobile number ::"<<workername5<<endl;
cout<<"\t* Worker Password ::"<<worker5pass<<endl;
cout<<"\t* Worker Mobile number ::"<<mob5<<endl;
cout<<"\t* Worker age ::"<<age5<<endl;
cout<<"\t*****************************************\n";
Sleep(500);
cout<<"\n\t* Press any Key to run program again *\n";
break;
}
case 6:
{
system("cls");
rik=0;
bus=0;
car=0;
bik=0;
hvy=0;
cout<<"\n\t****************************************************************\n";
cout<<"\t* Please Enter parking Limits and charge *\n";
cout<<"\t*****************************************************************\n";
cout<<"\tPlease enter the Rikhshas parking fee = ";
cin>>rik;
cout<<"\t*****************************************************************\n";
cout<<"\t*Please enter the buses parking fee = ";
cin>>bus;
cout<<"\t*****************************************************************\n";
cout<<"\t*Please enter the cars parking fee = ";
cin>>car;
cout<<"\t*****************************************************************\n";
cout<<"\t*Please enter the bikes parking fee = ";
cin>>bik;
cout<<"\t*****************************************************************\n";
cout<<"\t*Please enter the othes vehicles parking fee = ";
cin>>hvy;
cout<<"\t*****************************************************************\n";
cout<<"\tCharges Added successfully ";
Sleep(500);
cout<<"\n\t*****************************************************\n";
cout<<"\t* Press any Key to run program again *\n";
cout<<"\t*****************************************************\n";
//getch();
break;
}
case 7:
{
system("cls");
cout<<"\n\t*************************************************\n";
cout<<"\t*The limits of parking system is :: "<<limits;
cout<<"\n\t*************************************************\n";
Sleep(500);
cout<<"\t*************************************************\n";
cout<<"\t* Press any Key to run program again *\n";
cout<<"\t*************************************************\n";
//getch();
break;
}
case 8:
{
system("cls");
limits=0;
cout<<"\n\n\t*************************************************\n";
cout<<"\tPlease enter the limits in parking system = ";
cin>>limits;
Sleep(500);
cout<<"\t*************************************************\n";
cout<<"\t* Press any Key to run program again *\n";
cout<<"\t*************************************************\n";
//getch();
break;
}
case 9:
{
system("cls");
cout<<"\n\n\n\tLoging Out";
for(int f=0;f<10;f++)
{
Sleep(200);
cout<<".";
}
break;
}
default:
{
cout<<"invalid number";
break;
}
}
if(q==9)
{
break;
}
top=getch();
}
while(top);
}
else
{
system("cls");
system("color 4F");
Sleep(100);
system("color 4F");
for(int i=0;i<3;i++)
{
system("cls");
Sleep(650);
cout<<"\n\t*******************************************\n";
cout<<"\t* Wrong Username / Password *\n";
cout<<"\t*******************************************\n";
Sleep(650);
system("cls");
}
Sleep(500);
cout<<"\n\t*******************************************\n";
cout<<"\t* Press any Key to run program again *\n";
cout<<"\t*******************************************\n";
getch();
}
}
else if(i==2)
{
//Worker Block::
system("cls");
cout<<"\n\n Note ::";
cout<<"\n => If Admin cannot create worker account then worker account cant be login.";
cout<<"\n => If you have not worker account then request to admin to creat your account. ";
cout<<"\n => If you have worker account then please login.";
cout<<"\n\t________________________________";
cout<<"\n\t| |";
cout<<"\n\t| Wellcome to Worker Block & |";
cout<<"\n\t|______________________________|";
cout<<"\n\n\tEnter Username:: ";
cin>>t;
cout<<"\tEnter User Password:: ";
cin>>y;
if(t==workername1 && y==worker1pass ||t==workername2 && y==worker2pass||t==workername3 && y==worker3pass||t==workername4 && y==worker4pass||t==workername5 && y==worker5pass)
{
Sleep(300);
system("cls");
cout<<"\n\t Loading Worker Account.";
for(int i=0;i<=7;i++)
{
Sleep(300);
cout<<".";
}
system("cls");
do
{
system("cls");
char wish;
system("cls");
system("color 5B");
cout<<"\n\t******************************************************\n";
cout<<"\t* | Worker Block | *\n";
cout<<"\t*_______________|____________________|_______________*\n";
cout<<"\t* *\n";
cout<<"\t* Press 1 to entering Vahicles *\n";
cout<<"\t* Press 2 to Out the Vahicles *\n";
cout<<"\t* Press 3 to show the charges of Vahicles *\n";
cout<<"\t* Press 4 to show the limits of parking system *\n";
cout<<"\t* Press 5 to all show previous record *\n";
cout<<"\t* Press 6 to Delete the all previous record *\n";
cout<<"\t* Press 7 to LogOut worker account *\n";
cout<<"\t*____________________________________________________*\n";
cout<<"\t* |@ Mr Amir Ghafoor *\n";
cout<<"\t******************************************************\n\n";
cout<<"\n\t Enter your choice :: ";
cin>>v;
system("cls");
switch(v)
{
case 1:
{
do
{
system("cls");
system("color 5B");
cout<<"\n\t******************************************************\n";
cout<<"\t* | Entering Manu | *\n";
cout<<"\t*_______________|____________________|_______________*\n";
cout<<"\t* *\n";
cout<<"\t* Press 1 to enter Car *\n";
cout<<"\t* Press 2 to enter Bus *\n";
cout<<"\t* Press 3 to enter Riksha *\n";
cout<<"\t* Press 4 to enter Bike *\n";
cout<<"\t* Press 5 to enter other Vahicles *\n";
cout<<"\t*____________________________________________________*\n";
cout<<"\t* Press 6 to Go back Worker Account *\n";
cout<<"\t******************************************************\n";
cout<<"\t Enter Your Choice ::";
cin>>p;
switch(p)
{
case 1:
{
if(count<limits)
{
amount=amount+car;
count=count+1;
c++;
cout<<"\n\t Added Successfully ::\n\n";
cout<<"\tPress any key to back Worker Block\n";
}
else
{
Sleep(100);
system("color 4F");
for(int i=0;i<3;i++)
{
system("cls");
Sleep(700);
cout<<"\n\t*******************************************\n";
cout<<"\t* Sorry parking is Full *\n";
cout<<"\t*******************************************\n";
Sleep(700);
system("cls");
}
Sleep(500);
cout<<"\n\t*******************************************\n";
cout<<"\t* Press any Key to run program again *\n";
cout<<"\t*******************************************\n";
// getch();
}
break;
}
case 2:
{
if(count<limits)
{
amount=amount+bus;
count=count+1;
b++;
cout<<"\n\n\t Added Successfully ::\n\n";
cout<<"\tPress any key to back Worker Block\n";
}
else
{
Sleep(100);
system("color 4F");
for(int i=0;i<=3;i++)
{
system("cls");
Sleep(700);
cout<<"\n\n\t*******************************************\n";
cout<<"\t* Sorry parking is Full *\n";
cout<<"\t*******************************************\n";
Sleep(700);
system("cls");
}
Sleep(500);
cout<<"\t*******************************************\n";
cout<<"\t* Press any Key to run program again *\n";
cout<<"\t*******************************************\n";
//getch();
}
break;
}
case 3:
{
if(count<limits)
{
amount=amount+rik;
count=count+1;
r++;
cout<<"\n\n\t Added Successfully ::\n\n";
cout<<"\tPress any key to back Worker Block\n";
}
else
{
Sleep(100);
system("color 4F");
for(int i=0;i<3;i++)
{
system("cls");
Sleep(700);
cout<<"\n\n\t*******************************************\n";
cout<<"\t* Sorry parking is Full *\n";
cout<<"\t*******************************************\n";
Sleep(700);
system("cls");
}
Sleep(500);
cout<<"\t*******************************************\n";
cout<<"\t* Press any Key to run program again *\n";
cout<<"\t*******************************************\n";
//getch();
}
break;
}
case 4:
{
if(count<limits)
{
amount=amount+bik;
count=count+1;
j++;
cout<<"\n\n\t Added Successfully ::\n\n";
cout<<"\tPress any key to back Worker Block\n";
}
else
{
Sleep(100);
system("color 4F");
for(int i=0;i<3;i++)
{
system("cls");
Sleep(700);
cout<<"\n\n\t*******************************************\n";
cout<<"\t* Sorry parking is Full *\n";
cout<<"\t*******************************************\n";
Sleep(700);
system("cls");
}
Sleep(500);
cout<<"\t*******************************************\n";
cout<<"\t* Press any Key to run program again *\n";
cout<<"\t*******************************************\n";
//getch();
}
break;
}
case 5:
{
if(count<limits)
{
amount=amount+hvy;
count=count+1;
h++;
cout<<"\n\n\t Added Successfully ::\n\n";
cout<<"\tPress any key to back Worker Block\n";
}
else
{
Sleep(100);
system("color 4F");
for(int i=0;i<3;i++)
{
system("cls");
Sleep(700);
cout<<"\n\n\t*******************************************\n";
cout<<"\t* Sorry parking is Full *\n";
cout<<"\t*******************************************\n";
Sleep(700);
system("cls");
}
Sleep(500);
cout<<"\t*******************************************\n";
cout<<"\t* Press any Key to run program again *\n";
cout<<"\t*******************************************\n";
//getch();
}
break;
}
case 6:
system("cls");
{
system("cls");
cout<<"\n\n";
cout<<"\n\tPress any key to go back Worker Block\n";
cout<<"\n\tGoing Back...";
Sleep(400);
break;
}
default:
{
cout<<"Invalid Number";
break;
}
}
if(p==6)
{
break;
}
wish=getch();
}
while(wish);
break;
}
case 2:
{
do
{
system("cls");
system("color 5B");
cout<<"\n\t******************************************************\n";
cout<<"\t* | Outing Manu | *\n";
cout<<"\t*_______________|____________________|_______________*\n";
cout<<"\t* *\n";
cout<<"\t* Press 1 to out Car *\n";
cout<<"\t* Press 2 to out Bus *\n";
cout<<"\t* Press 3 to out Riksha *\n";
cout<<"\t* Press 4 to out Bike *\n";
cout<<"\t* Press 5 to out other Vahicles *\n";
cout<<"\t*____________________________________________________*\n";
cout<<"\t* Press 6 to Go back Worker Account *\n";
cout<<"\t******************************************************\n";
cout<<"\t Enter Your Choice ::";
cin>>w;
switch(w)
{
case 1:
{
if(c>0)
{
system("cls");
count=count-1;
c=c-1;
cout<<"\n\n\tOne Car Out successfully ";
cout<<"\n\tPress any key to back outing manu";
}
else
{
Sleep(100);
system("color 4F");
for(int i=0;i<3;i++)
{
system("cls");
Sleep(700);
cout<<"\n\t*******************************************\n";
cout<<"\t* Alert Car entry already empty *\n";
cout<<"\t*******************************************\n";
Sleep(700);
system("cls");
}
Sleep(500);
cout<<"\n\t*******************************************\n";
cout<<"\t* Press any Key to run program again *\n";
cout<<"\t*******************************************\n";
//getch();
}
break;
}
case 2:
{
if(b>0)
{
system("cls");
count=count-1;
b=b-1;
cout<<"\n\n\tOne Riksha Out successfully ";
cout<<"\n\tPress any key to back outing manu";
}
else
{
Sleep(100);
system("color 4F");
for(int i=0;i<3;i++)
{
system("cls");
Sleep(700);
cout<<"\n\n\t*******************************************\n";
cout<<"\t* Alert Buses entry already empty *\n";
cout<<"\t*******************************************\n";
Sleep(700);
system("cls");
}
Sleep(500);
cout<<"\n\t*******************************************\n";
cout<<"\t* Press any Key to run program again *\n";
cout<<"\t*******************************************\n";
//getch();;
}
break;
}
case 3:
{
if(r>0)
{
system("cls");
count=count-1;
r=r-1;
cout<<"\n\n\tOne Bus Out successfully ";
cout<<"\n\tPress any key to back outing manu";
}
else
{
Sleep(100);
system("color 4F");
for(int i=0;i<3;i++)
{
system("cls");
Sleep(700);
cout<<"\n\n\t*******************************************\n";
cout<<"\t* Alert Rikshas entry already empty *\n";
cout<<"\t*******************************************\n";
Sleep(700);
system("cls");
}
Sleep(500);
cout<<"\n\t*******************************************\n";
cout<<"\t* Press any Key to run program again *\n";
cout<<"\t*******************************************\n";
//getch();
}
break;
}
case 4:
{
if(j>0)
{
system("cls");
count=count-1;
j=j-1;
cout<<"\n\tOne Bike Out successfully ";
cout<<"\n\tPress any key to back outing manu";
}
else
{
Sleep(100);
system("color 4F");
for(int i=0;i<3;i++)
{
system("cls");
Sleep(700);
cout<<"\n\n\t*******************************************\n";
cout<<"\t* Alert Bike entry already empty *\n";
cout<<"\t*******************************************\n";
Sleep(700);
system("cls");
}
Sleep(500);
cout<<"\n\t*******************************************\n";
cout<<"\t* Press any Key to run program again *\n";
cout<<"\t*******************************************\n";
//getch();
}
break;
}
case 5:
{
system("cls");
if(h>0)
{
system("cls");
count=count-1;
h=h-1;
cout<<"\n\n\tOne Heavy Vahicle Out successfully ";
cout<<"\n\tPress any key to back outing manu";
}
else
{
Sleep(100);
system("color 4F");
for(int i=0;i<3;i++)
{
system("cls");
Sleep(700);
cout<<"\n\n\t*******************************************\n";
cout<<"\t*Alert Heavy Vahecles entry already empty *\n";
cout<<"\t*******************************************\n";
Sleep(700);
system("cls");
}
Sleep(500);
cout<<"\n\t*******************************************\n";
cout<<"\t* Press any Key to run program again *\n";
cout<<"\t*******************************************\n";
//getch();
}
break;
}
case 6:
system("cls");
{
system("cls");
cout<<"\n\n";
cout<<"\n\tPress any key to go back Worker Block\n";
cout<<"\n\tGoing Back...";
Sleep(400);
break;
}
default:
{
system("cls");
cout<<"\n\tInvalid Choice";
break;
}
}
if(w==6)
{
break;
}
wish=getch();
}
while(wish);
break;
}
case 3:
{
system("cls");
cout<<"\n\t************************************************\n";
cout<<"\t* The Charges for One Rikshas :: "<<rik;
cout<<"\n\t* The Charges for One Bus :: "<<bus;
cout<<"\n\t* The Charges for One Car :: "<<car;
cout<<"\n\t* The Charges for One Bike :: "<<bik;
cout<<"\n\t* The Charges for One havy Vahicle:: "<<hvy;
cout<<"\n\t*************************************************\n";
Sleep(500);
cout<<"\t*************************************************\n";
cout<<"\t* Press any Key to run program again *\n";
cout<<"\t*************************************************\n";
//getch();
break;
}
case 4:
{
cout<<"\n\n\t*****************************************************\n";
cout<<"\t*The limits of parking system is :: "<<limits;
cout<<"\n\t*****************************************************\n";
Sleep(500);
cout<<"\t*****************************************************\n";
cout<<"\t* Press any Key to run program again *\n";
cout<<"\t*****************************************************\n";
//getch();
break;
}
case 5:
{
Sleep(200);
cout<<"\n\n\tLoading AlL PrViOuS Record.";
for(int i=0;i<=10;i++)
{
Sleep(350);
cout<<".";
}
Sleep(300);
system("cls");
cout<<"\n**********************************************************************\n";
cout<<"* Your all privious record is given belowe \n";
cout<<"*---------------------------------------------------------------------\n";
cout<<"* The amount that is collected_______________________= "<<amount<<"\n";
cout<<"* The total car stand in parking_____________________= "<<c<<endl;
cout<<"* The total Bus stand in parking_____________________= "<<b<<endl;
cout<<"* The total Rikhshas stand in parking________________= "<<r<<endl;
cout<<"* The total Bikes stand in parking___________________= "<<j<<endl;
cout<<"* The total number of other vehicles stand in parking= "<<h<<endl;
cout<<"* The total number of vehicles stand in parking______= "<<count<<endl;
cout<<"***********************************************************************\n";
Sleep(500);
cout<<"\n***********************************************************************\n";
cout<<"* Press any Key to run program again *\n";
cout<<"***********************************************************************\n";
break;
//getch();
}
case 6:
{
amount=0;
count=0;
c=0;
r=0;
b=0;
j=0;
h=0;
Sleep(200);
cout<<"\n\n\t Deleting AlL PrViOuS Record.";
for(int i=0;i<=10;i++)
{
Sleep(350);
cout<<".";
}
Sleep(300);
system("cls");
cout<<"\n*********************************************************************\n";
cout<<"* All previous record is deleted \n";
cout<<"*********************************************************************\n";
cout<<"* The amount that is collected_______________________= "<<amount<<endl;
cout<<"* The total car stand in parking_____________________= "<<c<<endl;
cout<<"* The total Bus stand in parking_____________________= "<<b<<endl;
cout<<"* The total Rikhshas stand in parking________________= "<<r<<endl;
cout<<"* The total Bikes stand in parking ground____________= "<<j<<endl;
cout<<"* The total number of other vehicles stand in parking= "<<h<<endl;
cout<<"* The total number of vehicles stand in parking______= "<<count<<"\n";
cout<<"*********************************************************************\n";
Sleep(500);
cout<<"\n*********************************************************************\n";
cout<<"* Press any Key to run program again *\n";
cout<<"*********************************************************************\n";
//getch();
break;
}
case 7: