You don't nedd to declare arrays since you only need single characters.
Code:
char Veh_Type[5];
char Veh_Type[3];
//What for?
You must first ask the user for the number of minutes used without any if statement
You want the number of minutes irrespective of being a car or truck
Code:
cout << "Enter Number Of Minutes Parked : ";
cin >> Num_Min;
// and then ask the user whether its a car or truck
// then calculate the number of hours
//then the parking fee
Probably this block will never get executed
Code:
if( TOT_MIN % MIN_NUM )
Num_Hrs = Num_Min / MIN_NUM;
Num_Hrs ++;
//const int MIN_NUM = 60;
// const int TOT_MIN = 1440;
/ Now your if ( 1440 % 60 ) which is equal to 0 or false
//Probably you were attempting to find out the nnumber of hours
//Num_Hrs = (int)Num_Min / 60
//Now if you have parked for 119 minutes or 100 minutes
//the above statement will give you Num_Hrs=1
//You have a choice of passing the benefit to your customer
Now
Code:
if(Veh_Type == 'T')
{
(Num_Hrs - FREE_TRUCK) * TRUCK_RATE = Park_Fee;
//should be
// Park_Fee= (Num_Hrs - FREE_TRUCK) * TRUCK_RATE ;
}
else //should be else if( Veh_Type == 'C')
{
(NUM_HRS - FREE_CAR) * CAR_RATE = Park_Fee;
//should be Park_Fee= (NUM_HRS - FREE_CAR) * CAR_RATE
}
//Now what if you enter a letter other than C or T
//You still display the parking fee
//One thing you can do after the above 'else-if statement is'
//add another else statement
else
{
cout << "Invalid Input" ;
return 0;
}