Question: Write a program to get how many days a user used the library, and calculate the charge of use according to the following table. Handle

Write a program to get how many days a user used the library, and calculate the charge of use according to the following table. Handle in valid inputs by displaying a msg.
\table[[number of days,charge],[till 5 days,$2 per day],[6 to 10 days,$3 per day],[11 to 15 days,$4 per day],[after 15 days,$5 per day]]
Input:
c) python C:\Users
eda\DataPrograming ??? M2\
assign2-6.py nine
Output:
a) Total amount to pay is $21
b) Total amount to pay is $48
c) Please enter a numeric input.
 Write a program to get how many days a user used

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!