1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
quester [9]
3 years ago
15

zyDE 8.14.1: Iterating over a dictionary example: Gradebook statistics. Write a program that uses the keys(), values(), and/or i

tems() dict methods to find statistics about the student_grades dictionary. Find the following: Print the name and grade percentage of the student with the highest total of points. Find the average score of each assignment. Find and apply a curve to each student's total score, such that the best student has 100% of the total points.
Business
1 answer:
galben [10]3 years ago
7 0

Answer:

Explanation:

# keys() will be assignmentects1, assignmentect2 etc

# values() will be the marks in each assignmentect like 56, 79 etc

AndrewMarks = { 'assignment1': 56,

'assignment2': 79,

'assignment3': 90,

'assignment4': 22,

'assignment5': 50 }

ColinMarks = { 'assignment1': 88,

'assignment2': 62,

'assignment3': 68,

'assignment4': 75,

'assignment5': 78 }

AlanMarks = { 'assignment1': 95,

'assignment2': 88,

'assignment3': 92,

'assignment4': 85,

'assignment5': 85 }

MaryMarks = { 'assignment1': 76,

'assignment2': 88,

'assignment3': 85,

'assignment4': 82,

'assignment5': 90 }

TriciaMarks = { 'assignment1': 99,

'assignment2': 92,

'assignment3': 95,

'assignment4': 89,

'assignment5': 99 }

# Calculate total of each student and store them in the new dictionary

AndrewTot = AndrewMarks['assignment1'] + AndrewMarks['assignment2'] + AndrewMarks['assignment3'] + AndrewMarks['assignment4'] + AndrewMarks['assignment5']

ColinTot = ColinMarks['assignment1'] + ColinMarks['assignment2'] + ColinMarks['assignment3'] + ColinMarks['assignment4'] + ColinMarks['assignment5']

AlanTot = AlanMarks['assignment1'] + AlanMarks['assignment2'] + AlanMarks['assignment3'] + AlanMarks['assignment4'] + AlanMarks['assignment5']

MaryTot = MaryMarks['assignment1'] + MaryMarks['assignment2'] + MaryMarks['assignment3'] + MaryMarks['assignment4'] + MaryMarks['assignment5']

TriciaTot = TriciaMarks['assignment1'] + TriciaMarks['assignment2'] + TriciaMarks['assignment3'] + TriciaMarks['assignment4'] + TriciaMarks['assignment5']

TotalMarks = { 'Andrew': AndrewTot,

'Colin' : ColinTot,

'Alan' : AlanTot,

'Mary' : MaryTot,

'Tricia': TriciaTot}

StudentHighestTotal = max(TotalMarks)

HighestTotalMarks = TotalMarks[max(TotalMarks)]

Averages = { 'assignment1Average': (AndrewMarks['assignment1'] + ColinMarks['assignment1'] + AlanMarks['assignment1'] + MaryMarks['assignment1'] + TriciaMarks['assignment1'] ) / 5 ,

'assignment2Average': (AndrewMarks['assignment2'] + ColinMarks['assignment2'] + AlanMarks['assignment2'] + MaryMarks['assignment2'] + TriciaMarks['assignment2'] ) / 5 ,

'assignment3Average': (AndrewMarks['assignment3'] + ColinMarks['assignment3'] + AlanMarks['assignment3'] + MaryMarks['assignment3'] + TriciaMarks['assignment3'] ) / 5 ,

'assignment4Average': (AndrewMarks['assignment4'] + ColinMarks['assignment4'] + AlanMarks['assignment4'] + MaryMarks['assignment4'] + TriciaMarks['assignment4'] ) / 5 ,

'assignment5Average': (AndrewMarks['assignment5'] + ColinMarks['assignment5'] + AlanMarks['assignment5'] + MaryMarks['assignment4'] + TriciaMarks['assignment5'] ) / 5

}

You might be interested in
Part-time workers who want full-time work are counted as: A.) fully employed and therefore the official unemployment rate may ov
Vesnalui [34]

Answer: B

Explanation:

6 0
3 years ago
1. All of the factors below create a change in demand for alcohol except: a. Change in cigarette prices given that cigarettes an
Gnesinka [82]

Answer:

d. Rise in price of alcohol

Explanation:

Change in Quantity demanded occurs due to change in Price. Change in Demand happens due to factors other than price - Income, Substitute & Complementary good's price, Taste.

Change in alcohol demand - due to substitute Cigarette price change , Change [Decrease] in alcohol demand - due to change in taste based on anti drinking sentiments, higher risk of alcohol liver cirrhosis , Change [Increase] in alcohol demand - due to change [rise] in Income : These all are due to factors other than price & hence are 'Change in Demand'

Rise in price of Alcohol leads to 'Change [Expansion] in Quantity Demanded' due to price change [rise] .

5 0
3 years ago
When you catch a fast-moving baseball with your bare hand, a good idea is to catch it so that your hand stops it?
jarptica [38.1K]
You want your hand to "give" a bit when you catch the ball. You don't want want the ball to come to a hard stop because that would risk hurting your hand.
4 0
4 years ago
The direct labor standards for a particular product are 4 hours of direct labor at $12.00 per direct labor-hour = $48.00. During
Firlakuza [10]

Answer:

B) $ 1,614

Explanation:

Given the information

  • Actual:

Production= 3,350 units

Direct labor cost= $159,786

Direct labor hours= 13,450

=> rate per hour = $159,786 / 13,450 = $11.88

  • Standard

4 direct labor-hours for 1 unit

$12.00 per direct labor-hour

Budgeted production : 3,350 + 150 = 3500 units

=> The labor rate variance for the month was:

Direct labor rate variance= (Standard Rate - Actual Rate)*Actual Quantity

= ($12.00 - $11.88 )*13,450

= 1614

We choose B

7 0
3 years ago
Net credit sales = $400,000 Net income = $100,000 Average total assets = $80,000 Average accounts receivable = $20,000 What is t
Romashka [77]

Answer:

73 days

Explanation:

average collection period = number of days in a period / receivables turnover

receivables turnover = revenue / average receivables = $100,000 / $20,000 = 5

average collection period = 365 / 5 = 73 days

I hope my answer helps you

5 0
3 years ago
Other questions:
  • The manager of a carpet store is trying to determine the best installation crew size. he has tried various crew sizes with the r
    13·1 answer
  • In the current year, Tanager Corporation (a calendar year C corporation) had operating income of $480,000 and operating expenses
    10·1 answer
  • Eastline Corporation had 13,500 shares of $5 par value common stock outstanding when the board of directors declared a stock div
    15·1 answer
  • Disputants Martin and Daulton have hired Thurman to mediate their disagreement. Although Martin and Daulton must accept whatever
    14·1 answer
  • What index is used to measure the average prices paid by a typical​ family? An average of the prices of the goods and services p
    10·1 answer
  • __________ departs from the often dimly lit restaurant operated by a Chinese family and offers, instead, an exhibition kitchen.
    11·1 answer
  • Bellingham Inc had the following activity last year:
    15·1 answer
  • Dr. Rick Torres runs a chiropractic clinic. He typically bills his customers for services he performs and gives them about 30 da
    11·1 answer
  • Periods 10% 11% 12% 13% 14% 1 0.909 0.901 0.893 0.885 0.877 2 1.736 1.713 1.690 1.668 1.647 3 2.487 2.444 2.402 2.361 2.322 4 3.
    9·1 answer
  • Think about something very important to you that you would like to accomplish 10 years from now. Write a short-term, medium-term
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!