Write a program that reads data from a data file called final.dat. The data file
ID: 3715926 • Letter: W
Question
Write a program that reads data from a data file called final.dat. The data file contains the following information
Name salary age
The program should store the information into a list. You are free to use any type of container (parallel arrays, array or struct, linked list, STL list) - 40 points.
After storing the information into the list, the program should do the following:
Print the list out with an appropriate message before printing the list. -20 pts
Print the average age of everyone in the list. - 20 pts
Print the name of the oldest person in the list. - 20 pts
Sort the list in increasing order by age. - 10 pts
Print the list after it has been sorted. - 10 pts
Proper identications - 30 pts
Explanation / Answer
Hi, happy to help you! Please ask if any clarifications before rating straightaway.
Here's some simple python code that does what you require.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.