Write a command-line program /app/topk that reads a UTF-8 encoded CSV file from disk and prints the top-k…
Write a command-line program /app/topk that reads a UTF-8 encoded CSV file from disk and prints the top-k…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - The program receives exactly three arguments in this order: file path , column name , k . -…
The task
**Input contract:** - The program receives exactly three arguments in this order: `file_path`, `column_name`, `k`. - `file_path` points to a CSV file. The first line is always a header row. Delimiter is comma. Fields may be double-quoted (standard CSV quoting, including embedded commas and newlines inside quotes). No…
Part of ai-and/termgrade-environments.