1.0 KiB
1.0 KiB
id, source_exercise_id, title, section, source_path, source_repo, source_commit, student_visible_solution, has_private_solution, skip
| id | source_exercise_id | title | section | source_path | source_repo | source_commit | student_visible_solution | has_private_solution | skip |
|---|---|---|---|---|---|---|---|---|---|
| practical-python-1.9 | 1.9 | Making an Extra Payment Calculator | 1.3 Numbers | 01_Introduction/03_Numbers.md | https://github.com/dabeaz-course/practical-python | 93dca856b41c61a0a0f85ae334116e4c125629ea | false | false | false |
Exercise 1.9: Making an Extra Payment Calculator
Source: Practical Python Programming,
01_Introduction/03_Numbers.md.
Exercise 1.9: Making an Extra Payment Calculator
Modify the program so that extra payment information can be more generally handled. Make it so that the user can set these variables:
extra_payment_start_month = 61
extra_payment_end_month = 108
extra_payment = 1000
Make the program look at these variables and calculate the total paid appropriately.
How much will Dave pay if he pays an extra $1000/month for 4 years starting after the first five years have already been paid?