Implement a command-line tool that reads a large text file containing numerical values and computes a…
Implement a command-line tool that reads a large text file containing numerical values and computes a…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Goal: Create an executable script /app/summarize that processes a file of floating-point numbers (one per line)…
The task
**Goal:** Create an executable script `/app/summarize` that processes a file of floating-point numbers (one per line) and outputs: 1. The top K largest unique values in descending order, where K is provided as the first argument. 2. The 25th, 50th (median), and 75th percentiles of ALL values (including duplicates),…
Part of ai-and/termgrade-environments.