Write a program that, given a file name typed by the user, reads the content of the file and determines the highest salary, lowest salary and average salary. The file contains employee records, and each record consists of the hours worked and the hourly rate. The salary is calculated as the product of the hours worked and the hourly rate. An example of file containing three records is as follows:
10.5 25.0
40.0 30.0
30.9 26.5

Solved
Show answers

Ask an AI advisor a question