Create a command-line tool /app/vote tally that reads a UTF-8 CSV file of election votes and outputs a JSON…
Create a command-line tool /app/vote tally that reads a UTF-8 CSV file of election votes and outputs a JSON…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input CSV format: - File path given as the sole positional argument. - The CSV has exactly these columns in…
The task
**Input CSV format:** - File path given as the sole positional argument. - The CSV has exactly these columns in order: `voter_id`, `timestamp`, `candidate`, `preference` (integer 1-3, 1=highest). - The file MAY contain a header row as the first line, or it MAY omit the header entirely. Detect which case based on…
Part of ai-and/termgrade-environments.