This is a Python program that calculates library charges based on the number of days a book is borrowed. It applies the following criteria:
- Up to 5 days: Rs. 2 per day
- 6 to 10 days: Rs. 3 per day
- 11 to 15 days: Rs. 4 per day
- After 15 days: Rs. 5 per day
- Run the program.
- Enter the number of days for which the book is borrowed.
- The program will calculate and display the library charges.
Enter the number of days: 8 The total charge is: Rs. 24
- The program accepts the number of days as input.
- It calculates the charge based on the provided criteria.
- If the number of days is not within the specified ranges, it displays an "Invalid number of days" message.
You can test the program online using Trinket by following this link. https://trinket.io/
If you encounter any issues or have questions, please don't hesitate to reach out for support.