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...




  1. 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 display
      number of days overdue
      and
      total fine imposed.





BOOK LOAN SYSTEM<br>: 3<br>Enter the days of the loan : 17<br>Enter the number of books<br>: 3<br>: RM 1.80<br>Days overdue<br>Fine<br>

Extracted text: BOOK LOAN SYSTEM : 3 Enter the days of the loan : 17 Enter the number of books : 3 : RM 1.80 Days overdue Fine

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here