Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

***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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Oracle8I Building Efficient Databases

Authors: Jonathan Lewis

1st Edition

0201715848, 978-0201715842

More Books

Students also viewed these Databases questions

Question

How does lifestyle relate to problem recognition?

Answered: 1 week ago

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago