Question: Question: (In Python) Assignment Write a program that prints out a student grade report for all students in the 7th grade. Each student is enrolled

Question: (In Python)

Assignment

Write a program that prints out a student grade report for all students in the 7th grade.

Each student is enrolled in all of the classes listed in classes.txt

Each class (see files attached) has the student's ID # and their grade.

Generate a new file called "gradereport.txt" which prints the following output for each student:

Student ID 11012 ---------------- Art A P.E. P Drama B English C ...etc

Student ID 15486 ----------------- Art A P.E. F Drama B- English C ...etc

There are 8 class .txt files associated with this that contain Student IDs and grades. I was wondering what the program structure would be like.

The classes.txt contains:

Art Math English Drama Music P.E. Social Studies

The names of the other 8 text files are: art, drama, english, math, music, pe, and socialstudies. Also, the information in the file is imn the format of studentid,grade.

Here is an example.

11012,A 15486,A+ 18745,B 25489,C 35976,D 48569,F 11244,B+ 14778,C- 56998,A 99885,A

(This is the art.txt file)

Thanks!

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 Databases Questions!