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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!