Write a function called parkingcharge that given the type


Write a function called parkingCharge that, given the type of vehicle (c for car, b for bus, t for truck) and the hours a vehicle spent in the parking lot, returns the parking charge based on the rates shown below.

car        $2 per hour

bus        $3 per hour

truck      $4 per hour

Also for this problem display the message "The code for the type of vehicle is incorrect" if the code that is being entered from the keyboard is not equal to 'c' or 'b' or 't'.

**NOTE: write the complete program (including the appropriate functions). 

please make sure your answer is right and run in visualstudio program.

Request for Solution File

Ask an Expert for Answer!!
Other Subject: Write a function called parkingcharge that given the type
Reference No:- TGS0598572

Expected delivery within 24 Hours