A bike share program in Indianapolis allows customers to borrow a bike and charge them based on the length of their ride.
The program offers two memberships: Daily or Annual.
For Daily members, rides cost 1.50 to start +.20/minute.
For Annual members, rides cost 1.00 to start +.15/minute.
Write a function named calculate_fee that takes a string and an integer as arguments and prints the calculated fee with no dollar signs or rounding based on the user's membership level.
Call the calculate_fee function and pass both the string and integer values. The function should calculate the fee based on the membership level and print it to the screen with no dollar signs or rounding (Do not forget the 1.50/1.00 "start ride" fee!)
+2
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “A bike share program in Indianapolis allows customers to borrow a bike and charge them based on the length of their ride. The program ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » A bike share program in Indianapolis allows customers to borrow a bike and charge them based on the length of their ride. The program offers two memberships: Daily or Annual. For Daily members, rides cost 1.50 to start +.20/minute.