I am making a program that if a fee exceeds a certain amount it, it will default to the max fee. Not sure what I'm doing wrong...what should I do to correct it?
Code:{ if (totalfee > maxfeeTruck && typeofVehicle == 'T') totalfee=maxfeeTruck; else if (totalfee> maxfeeCar&& typeofVehicle == 'C') totalfee=maxfeeCar; else if( totalfee > maxfeeBus && typeofVehicle=='B') totalfee=maxfeeBus; } return; }