Question
***URGENT*** IN PYTHON You will need to write a program that iterates 4 lists containing a student's grades broken into 4 categories [test, hw, project,
***URGENT***
IN PYTHON You will need to write a program that iterates 4 lists containing a student's grades broken into 4 categories [test, hw, project, lab] and calculates the student's final grade. Tests and projects are each worth 30% of the grade and homework and labs are each worth 20% of the grade. I am giving you the list of items. This program should not take any input from an user.
The formula for calculating the final grade:
finalGrade = weightedTestAverage + weightedHWAverage + weightedProjectAverage + weightedLabAverage
Your lists will have the following grade items:
testGrades = ["tests", 100, 85, 78, 0]
hwGrades = ["homework", 93, 45, 88, 100, 76, 96, 99, 82]
projGrades = ["projects", 100, 90, 77]
labGrades = ["labs", 92, 99, 51, 90, 88, 100, 76, 96, 99]
Your program will need:
at least 2 functions (one function that returns the average of each category item, one function that calculates the weighted average)
at least 1 function that takes a list
You must loop through the list or use list methods to extract values from the list
the final grade rounded to 2 decimal places, using the round function
Your final grade is: 00.00
You will submit 1 Python program (.py) file. No algorithm submission is required.
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