The program is to calculate parking fees. However when I run the program it prints the statement, but still runs the program and states that the parking fee is $0 for zero minutes. I wanted to see if I can end the program if the total minutes is 0.
if(totalMinutes==0)
{
cout<<"You have not entered a valid number"<<endl;
// do some other stuff when totalMinutes is zero.
}
else
{
// do something else
// i.e. here is where you should calculate the parking fee
// based on the total number of minutes entered.
}