Write a program to create a class called Library where the books are borrowed. Accept
mobile number, String name, cost of the book and number of days the book is borrowed.
Calculate the amount to be paid based on the condition:
Number of days Rate per day
For first 7 days Rs. 2
For the next 7 days Rs. 3
greater than 14 days Rs. 5
Answers
Answered by
0
Answer:
Days Fine
First seven days 25 paise per day
Eight to fifteen days 40 paise per day
Sixteen to thirty days 60 paise per day
More than thirty days 80 paise per dayDays Fine
First seven days 25 paise per day
Eight to fifteen days 40 paise per day
Sixteen to thirty days 60 paise per day
More than thirty days 80 paise per day
Similar questions