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
Allows the user to select an output file using filedialog.asksaveasfile.
Prompts the user for a student name and two student exam score
Writes the name and two scores score to the file chosen in step
Repeat steps and until the user has finished entering data.
Close the file you just created
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.
Open the file with student name and two student test grades. USE the FILE DIALOG box.
Provide logic in a Python program that
a Reads the file until there are no more records. You may find slide helpful in Lecture
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
