Write a program named program61py that enables the user to


- Write all lines of your pseudocode as comments immediately after your name and SPC ID# comment.

- Add more comments as needed in each program to explain what your code is doing.

- Choose descriptive variable names in all programs.

1. Write a program named program61.py that enables the user to enter any number of course names and percent grades and write them to a file named grades.txt. Pressing Enter when prompted for a course name should end user input and print "File was created and closed" See sample run below in which 4 course names were entered, but note that more or fewer courses could have been entered.

SAMPLE RUN
Enter course or Enter to quit math
Enter percent achieved 88
Enter course or Enter to quit comm
Enter percent achieved 93
Enter course or Enter to quit chem
Enter percent achieved 80
Enter course or Enter to quit ethics
Enter percent achieved 96
Enter course or Enter to quit
File was created and closed

2. Write another program named program62.py that reads grades.txt. The program should output all of the course names and scores on file, one course per line as shown below. The overall average score should be calculated and displayed accurate to two decimal places.

SAMPLE RUN
Here are your grades
math score is 88
comm score is 93
chem score is 80
ethics score is 96
Average grade score is 89.25

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a program named program61py that enables the user to
Reference No:- TGS01693705

Now Priced at $30 (50% Discount)

Recommended (93%)

Rated (4.5/5)