Tuesday 4 December 2012

C++ CAR PARKING MANAGEMENT SYSTEM / VEHICLE MANAGEMENT SYSTEM


CAR PARKING PROGRAM / VEHICLE MANAGEMENT SYSTEM


OUT PUT OF CAR PARKING PROGRAM

Remember this is basic C++ program limited project for complete solution of C++ project means advance coded project you must visit this posted latest program

C++ Car Parking Management System Complete Project


  1.  //cf program to calculate the ticket of the car parking
  2. //programmer name umar javed
  3. //umarjaved01@gmail.com
  4. //14-05-2011

  5. #include<iostream.h>
  6. #include<cstring.h>
  7. int main()
  8. {
  9. //programminisbest.blogspot.com
  10. int nic_num;
  11. int n;
  12. int price;
  13. char name[15];
  14. char fname[15];

  15. cout<<"Welcome to the car parking system program"<<endl;
  16. cout<<"Please Enter the Required Informations for car parking"<<endl;
  17. cout<<"_______________________________________"<<endl;
  18. cout<<"enter the name = ";
  19. cin>>name;
  20. cout<<"enter the father name = ";
  21. cin>>fname;
  22. //programminisbest.blogspot.com
  23. cout<<endl<<"plz enter the ur nic number"<<endl;
  24. cin>>nic_num;

  25. cout<<"choose which pakage u want to park the car"<<endl<<"1 for 2hrs"<<endl<<"2 for 4 hrz"<<endl<<"3 for 6 hrz"<<endl<<"4 for 8 hrz"<<endl;
  26. cin>>n;

  27. switch(n)
  28. {
  29. case 1:
  30. {
  31. cout<<"you have choose the pakage no 1"<<endl;
  32. cout<<"car is parked for 2 hours";
  33. price=12*2;
  34. cout<<endl<<"price of ticket"<<"="<<price<<"RS"<<endl;
  35. break;
  36. }

  37. //programminisbest.blogspot.com
  38. case 2:
  39. {cout<<"you have choose the pakage no 2"<<endl;
  40. cout<<"car is parked for 4 hours";
  41. price=12*4;
  42. cout<<endl<<"price of ticket"<<"="<<price<<"RS"<<endl;
  43. break;
  44. }

  45. case 3:
  46. {
  47. cout<<"you have choose the pakage no 3"<<endl;
  48. cout<<"car is parked for 6 hours";
  49. price=12*6;
  50. cout<<endl<<"price of ticket"<<"="<<price<<"RS"<<endl;
  51. break;
  52. }

  53. case 4:
  54. {
  55. cout<<"you have choose the pakage no 4"<<endl;
  56. cout<<"car is parked for 8 hours";
  57. price=12*8;
  58. cout<<endl<<"price of ticket"<<"="<<price<<"RS"<<endl;
  59. break;
  60. }



  61. default:
  62. {
  63. cout<<"no package is here the choice u entered"<<endl<<"try agian"<<endl;
  64. }

  65. }
  66. cout<<"thank you for using our services"<<endl;
  67. cout<<"................................";
  68. //programminisbest.blogspot.com
  69. cout<<endl<endl;
  70. cout<<endl<<endl<<".....R.E.C.I.P.T....."<<endl;
  71. cout<<endl<<"Your name is ="<<name;
  72. cout<<endl<<"Your father name is ="<<fname<<endl;
  73. cout<<"Your Nic number is = "<<nic_num<<endl;
  74. cout<<"Package You choosed is number = "<<n<<endl;
  75. cout<<"-----------------------------------------"<<endl;
  76. cout<<"thank you for using our parking service"<<endl;
  77. cout<<"-----------------------------------------"<<endl;
  78. //programminisbest.blogspot.com

  79. return 0; }
  80. //programminisbest.blogspot.com