about | help | code help+videos | done | prefs |
Given the number of days a library book is late, return the fine for that book. The library charges 50 cents for the first day a book is late, plus 10 cents for each additional day. If the number of days late is less than 1, the fine is 0 cents. libraryFine(1) → 50 libraryFine(2) → 60 libraryFine(5) → 90 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100 Post-solution available
Copyright Nick Parlante 2017 - privacy