Question: Write a Python Program that does the following: Turn in a Python file that solves the following problem 1 . Allows the user to select

Write a Python Program that does the following: Turn in a Python file that solves the
following problem
1. Allows the user to select an output file using filedialog.asksaveasfile.
2. Prompts the user for a student name and two student exam score
3. Writes the name and two scores score to the file chosen in step 1
4. Repeat steps 2 and 3 until the user has finished entering data.
5. Close the file you just created
6. You may find this code helpful. It creates a file with a space delimited data name followed by
a single grade. You can adapt it for two grades.
Write another Python program that allows the user to do the following.
1. Open the file with student name and two student test grades. USE the FILE DIALOG box.
2. Provide logic in a Python program that
a) Reads the file until there are no more records. You may find slide 23 helpful in Lecture 1.
In that code, the delimiter is a comma. If you follow the code above, the delimiter will
be a blank,
b) Finds and prints the number of records in the file
c) Computes the students average on the two tests.
d) Finds and prints the highest student average
e) Finds and prints the name of the student who obtained the highest average
f) Finds and prints the class average score. This means you will have to compute the
average of the averages

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!