7. Write a program to accept the name of the member , the name of the book and number of days and calculate the late fine for the member. The fine is calculated depending on the number of days a book is returned late. Number of days. Fine per day For first 10 days. Rs. 1 Next 10 days. Rs 5 More than 20 days. Rs.8 Display the name of the member, the name of the book and total fine
Answers
Answered by
2
The following codes have been written using Python.
Variables with appropriate data types have been used to retrieve the required data from the user(s). The number of days is checked and concluded using conditional statements [if - elif] which are usually used to check for required conditions. The required output is printed later.
Similar questions