Implement a command-line tool that reads a large unsorted file of floating-point numbers (one per line) and…
Implement a command-line tool that reads a large unsorted file of floating-point numbers (one per line) and…: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Input contract: - First argument: path to a text file…
The task
**Input contract:** - First argument: path to a text file containing one decimal number per line - Second argument: integer K (K ≥ 1) for the number of top elements to return - The input file may contain: empty lines, lines with only whitespace, trailing newlines or no trailing newline, numbers with leading/trailing…