Subscribe For Free Updates!

We'll not spam mate! We promise.

Sunday, 26 August 2012

C++ code to display vehicle parking charges


//Displyaing vehicle parking charges
//Programmer name: Sohail ahmed
//Date: 10-03-2010

#include<iostream.h>
#include<conio.h>

int main()
{
clrscr();
char vehicle;

cout<<"Displaying the parking charges of vehicles\n\n";
cout<<"\n---Press 'c' for car, 'b' for bus & 't' for truck---\n\n\n";
cout<<"Enter type of vehicle: ";
cin>>vehicle;

if(vehicle=='c')
cout<<"\nCar: "<<"\tRs.5 "<<"\tPer hour";
else if(vehicle=='b')
cout<<"\nBus: "<<"\tRs.10 "<<"\tPer hour";
else if(vehicle=='t')
cout<<"\nTruck: "<<"\tRs.15 "<<"\tPer hour";
else
cout<<"\nInvlaid option";
getch();
return 0;
}

Socializer Widget By CodingLovers
SOCIALIZE IT →
FOLLOW US →
SHARE IT →

4 comments:

  1. Does your blog have a contact page? I’m having problems locating it but, I’d like to shoot you an email. I’ve got some recommendations for your blog you might be interested in hearing.
    AWS Training in Chennai |Best Amazon Web Services Training in Chennai
    Best AWS Amazon Web Services Training in Chennai | AWS Training in Chennai cost
    No.1 AWS Training in Chennai | Amazon Web Services Training Institute in Chennai

    ReplyDelete
  2. Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end. 
    microsoft azure training in bangalore
    rpa training in bangalore
    best rpa training in bangalore

    ReplyDelete