Design an algorithm to compute and print the average earnings, lowest earnings, and highest earnings of a group of employees. Each input record will contain the name and earnings of one employee. No headings or page numbers are required. Used Automatic end-of-file logic to signal the end of the input.