Lessons 26–30 · About 60 min per lesson

Project: attendance report

Combine ingestion, validation, aggregation and output into a repeatable tool.

Lesson breakdown

  1. Lesson 26

    Specify input fields, valid ranges and both output files.

  2. Lesson 27

    Implement ingestion and separate valid data from invalid rows.

  3. Lesson 28

    Aggregate visits and minutes per person and specify ordering.

  4. Lesson 29

    Generate reports and verify that rerunning does not accumulate old results.

  5. Lesson 30

    Deliver usage instructions, sample files and the test command.

Worked example

After the header, read Mia 10, Bo x and Mia 5. Produce both a summary and an error report.

How to solve it

The summary has Mia with 2 visits and 15 minutes. The error report flags line 3 for invalid minutes.

Assignment

Finish the project, run the same input twice, and include a fixture with a Chinese name and zero minutes.

Check your result

Both runs produce the same content, zero minutes are valid, totals reconcile, and every error points back to its row.