AS C/W task , need HELP!!! Graham Harrison - 1st post - 27 Feb 2004 13:02
I am creating a library db in the UK and I need sum help in implementing’ a way of charging fines and return due dates. A book is always due to be returned 1 calendar month after the date the book was borrowed. If the due date falls on a Saturday or a Sunday then the due date becomes the next Monday.
The fines are charged to members who return books after they r due bk. The fines charged are shown below.
If a book is 7 days late then a £0.30 charge is applied to them, If a book is 14 days late then £0.30 fine is added onto of the fine, if a book is 21 days late then £0.40 is added on top of the current fine, if a book is 28 days late then £0.50 is added on top of the fine. If thye book is 56 days late then a further £1.50 is added on top.
For e.g. person X was 32 days late returning her book and was fined £1.50 (£0.30 for 7 days, £0.30 for 14 days, £0.40 for 21 days + £0.50 for 28 days)
I have currently set up a books, members and loans table. And was wondering how to implement these problems into my db.
I am creating a library db in the UK and I need sum help in implementing’ a way of charging fines and return due dates. A book is always due to be returned 1 calendar month after the date the book was borrowed. If the due date falls on a Saturday or a Sunday then the due date becomes the next Monday.
The fines are charged to members who return books after they r due bk. The fines charged are shown below.
If a book is 7 days late then a £0.30 charge is applied to them, If a book is 14 days late then £0.30 fine is added onto of the fine, if a book is 21 days late then £0.40 is added on top of the current fine, if a book is 28 days late then £0.50 is added on top of the fine. If thye book is 56 days late then a further £1.50 is added on top.
For e.g. person X was 32 days late returning her book and was fined £1.50 (£0.30 for 7 days, £0.30 for 14 days, £0.40 for 21 days + £0.50 for 28 days)
I have currently set up a books, members and loans table. And was wondering how to implement these problems into my db.