Simple Book Loan System

How to code a simple Book Loan System Using :
  • The book must be returned within a maximum loan period of 10 days.
  • Fines are imposed on overdue items at the rate of 0.50 per book per day.
  • Define constants for loan period and fine rate.
  • Read the number of books and the number of days.
  • Calculate and display number of days overdue and total fine.

Code :