Write a function called parkingcharge that given the type


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

car $2 per hour
bus $3 per hour
truck $4 per hour

using a switch statement.

 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write a function called parkingcharge that given the type
Reference No:- TGS0645612

Expected delivery within 24 Hours