Library Fine Calculator
EasyExam Style
Selection
Arithmetic
A library charges $0.50 per day for a book that is up to 7 days late, and $1.00 per day for every day after that (e.g. 8 days late = 7 * 0.50 + 1 * 1.00 = 4.50). Write a program that inputs the total number of days late and outputs the total fine.
Example Input
8
Example Output
4.5
0% (0 passed / 0 attempted)