What we will be doing, is creating a grading system that determines the grade of the marks of each student, and then the GPA of the student. We will use a dictionary to store the marks of each student. We will also try as much as possible to break everything down into functions to make our code cleaner and more efficient. You can go back to revise on functions, lists, for loop and dictionaries as we will use them extensively with minimal explanation.
In this class, we have just ten students. Jake, Gerald, Nat, Pius, Wendy, Bill, Vanessa, Freda, Joan, Sandy.
We study five subjects. Math, Biology, Chemistry, Physics, Music. These subjects are studied for three trimesters, which ends in a year.
|Letter Grade||Percent Grade||4.0 Scale|
What we will do.
We will build a couple of functions, put them together to create a system that generates a report card for each trimester for a student when the name is entered.
We will also be able to generate a transcript for the entire year for a student when we enter the student’s name.
The system should tell us when we enter a name that is not in our class of students.
If this doesn’t excite you then it’s either you’ve gone beyond our level (you are a pro) or you are not interested in programming. Either way, we will continue without you. Haha!
If you’re excited, then let’s begin our adventure. Know by the time we finish this tiny system of ours, you’d have gained so much confidence as a programmer and you’ll be ready to do more.
In our next lesson, we will start by creating our list of students and list of subjects. We will also create a few functions to aid us in our journey to “the grading system”. Cheers!