Student becomes the teacher
What this project is about...
This project is a bit challenging, it wants you to take the job of the teacher to teach the class. First of all, they asked you to create a gradebook for all the students, which requires to include the name, homework, quizzes and also test marks in it.
Then it gives you the marks of the students have to plug it into the code, don't forget the decimal points so the grades are stored as float. This is what the whole code looks like:
Then put all the students in a list with the code:
list_name = [1, 2, 3]
After you have the list, you need a hard copy of the grades so that you can go through it faster. So we print out the name, homework, quizzes and test marks of the student using the following code:
After you have the list, you need a hard copy of the grades so that you can go through it faster. So we print out the name, homework, quizzes and test marks of the student using the following code:
Compute a student's average:
On line 31, it calculates the mark with the percentage you want it to take up by multiplying the percentages.
After that, we define the letter grade of the students, using the following code:
Then it's the class average:
Finally, create the function to check the grade of the class overall:
After that, we define the letter grade of the students, using the following code:
Then it's the class average:
No comments:
Post a Comment