(Solved):Assume that there is a file named scores in the following format: Each row of the file has first name, last name followed by the score. Assume that both first name and last names are single words,… View Answer…

 

Question

Assume that there is a file named scores in the following format: Each row of the file has first name, last name followed by the score. Assume that both first name and last names are single words, and score is an integer.

For example, the contents file look like

Don Knuth 99, Alan Turing 100, Edsger Dijkstra 98,

Write a complete program that reads the contents of the file and outputs the average

Scroll to top