Recurring payments (Expense Tracker)
Add recurring <day 1-28 <amount <category <note… (recurring <amount <category on day <d; other days: error: day must be 1-28) and close <YYYY-MM, which adds every recurring payment to that month on its day (closed <month: <n recurring added, budgets checked as usual), only once per month (<month already closed).
Input: As before.
Output: As before.
Difficulty: Medium. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.
Hint
- Remember which months were closed.