You need to sign in to test your code and save your progress on this question.
Problem Description
Library Fine Calculator
Easy
Exam 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
Success Rate:
0% (0 passed / 0 attempted)
Code
Unsaved
Test Results
Click "Run Code" to evaluate your code against the tests.