Question: Write the code for the function cabcost. It should calculate and return the cost a cab ride. If the distance traveled is less than or
Write the code for the function cabcost. It should calculate and return the cost a cab ride. If the distance traveled is less than or equal to 12 miles the cost is $2. oo a mile, and If the distance traveled is more than 12 miles the cost is $1.50 a mie
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
