Monthly Totals From a Ledger
Write /home/student/bin/monthly.sh FILE. FILE is a CSV with the header date,amount,note. Dates are YYYY-MM-DD; amounts have up to two decimals and can be negative (refunds). Notes may contain spaces but no commas.
Print one line per month that appears in the file, sorted by month, as YYYY-MM TOTAL, where TOTAL has exactly two decimals (for example 2026-09 1250.40, 2026-10 -15.00). Ignore the header and empty lines.
About this machine
Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.
Teaching or writing about this? Embed this lab on your page
Your machine is ready to start
A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.
No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.