The loan entitlement for students in the library is up to 3 books and they must be returned within a maximum loan period of 14 days. Fines are imposed on overdue items at the rate of RM0.20 per book per day. Use C++ to create a program to calculate the fine. You program should:
Define constants for the maximum loan period and fine rate.
Read the number of books and the number of days they are borrowed (you may assume that the input is always less than 3 books and greater than 14 days).
Calculate and displaynumber of days overdueandtotal fine imposed.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here