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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started