Given different scored marks of students. We need to find grades. The test score is an average of the respective marks scored in assignments, tests and lab-works. The final test score is assigned using below formula.
10 % of marks scored from submission of Assignments 70 % of marks scored from Test 20 % of marks scored in Lab-Works
Grade will be calculated according to :
1. score >= 90 : "A" 2. score >= 80 : "B" 3. score >= 70 : "C" 4. score >= 60 : "D"
Also, calculate the total class average and letter grade of class.
Below is the implementation :
Jack Frost =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Average marks of Jack Frost is : 72.79 Letter Grade of Jack Frost is : C James Potter =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Average marks of James Potter is : 75.962 Letter Grade of James Potter is : C Dylan Rhodes =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Average marks of Dylan Rhodes is : 75.775 Letter Grade of Dylan Rhodes is : C Jessica Stone =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Average marks of Jessica Stone is : 48.356 Letter Grade of Jessica Stone is : E Tom Hanks =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Average marks of Tom Hanks is : 57.26 Letter Grade of Tom Hanks is : E Class Average is 72.79 Letter Grade of the class is C
- Basic calculator program using Python
- Program for EMI Calculator
- C/C++ program to make a simple calculator
- Menu Driven C++ Program for a Simple Calculator
- Smart calculator in Python
- Python program to create a list of tuples from given list having number and its cube in each tuple
- Python program to create Bankaccount class with deposit, withdraw function
- Python program to create a dictionary from a string
- Python program to create a list centered on zero
- Python Program to create an OTP by squaring and concatenating the odd digits of a number
- Python Program to Create a Lap Timer
- Python | Ways to create a dictionary of Lists
- Python | Create a dictionary using list with none values
- Python | Ways to create triplets from given list
- Python | Create list of numbers with given range
- Python | Create an empty text file with current date as its name
- Create a tuple from string and list - Python
- How to create a Dictionary in Python
- How to create an empty class in Python?
- Use get() method to create a dictionary in Python from a list of elements
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.