Question: Write a python code that: 1 . Use a file chooser to locate the file on your computer. Do not ask the user to enter

Write a python code that:
1. Use a file chooser to locate the file on your computer. Do not ask the user to enter the filename.
2. Read the file into a list of lists.
3. Print the average age in a nice format.
4. Print the value of the highest GPA and the person who achieved that GPA in a nice,
readable format.
5. Create a dictionary from the list in part 2. Notice that you will have a nested dictionary
with the primary key being the 901 number.
6. Print the dictionary in a nice, readable format. For example, each line will look
something like the following:
Student ID 90323333 Name: Ferguson GPA: 2.84 Age: 21
7. Allow the user to enter a 901 number and change the gpa for the associated student.
student.
8. Allow the user to enter a new student with the following data: ID =901818181, name =
Ratliff, GPA =3.33, and age =20. Add this student to the dictionary.
9. Use the file chooser to create an output file. Save all the data from the dictionary in the
newly created file. The file should be a space delimited text file in the same format as
Week 12 File.Txt, i.e.901 number name gpa and age

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!