Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python Lists, create, append, remove items from lists. Weighted grades Lab Week 9 - Lists Skills needed to complete this Lab Understand create, append, remove

Python Lists, create, append, remove items from lists. Weighted grades
image text in transcribed
image text in transcribed
image text in transcribed
Lab Week 9 - Lists Skills needed to complete this Lab Understand create, append, remove items from lists. Weighted Grades We're going to work on something that is important to all students, grade weighting. Our program will allow the user to enter 2 types of grades; Tests and Programs. Each of our scores is assumed to be out of 100, so we only need the users score. The tests are 60% of a students grade, while the assignments are 40%. In order to calculate the final score, we multiply the mean score of the tests by 0.6 and add it to the mean of assignments multiplied by 0.4. When we display scores we will als show them the low, high, mean, and standard deviation of their tests and assignments. sum all the values and divide by The mean is the average. To calculate the mean you would the number of values. If the values we want a mean for are 5, 8, 4, 9 then the mean is mean (5 +8+4+9)/4 In this case our mean is 6.5 The standard deviation is calculated by taking each value and subtracting the mean, and squaring the value. Divide the sum of those values by the numbers of values, and take the square root of that result. Using the example above (5- 6.5)2+(8-6.5)2+(4-6.5)2+(9-6.5)2 std Std is 2.06155281.. Work on one thing at a time, and build it up slowly as you get each portion working. Some Additional items to think about. When entering scores it must be a valid number (a float) and cannot be less than zero. (we'll allow scores greater than 100 however ) could not be removed instead display n/a for those values. If you try to remove a score and it is not in the list of scores, then warn the user that it If there are no scores for one of the categories, then you can't calculate the avg std, etc

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

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions

Question

Prepare an ID card of the continent Antarctica?

Answered: 1 week ago

Question

What do you understand by Mendeleev's periodic table

Answered: 1 week ago