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]
4 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]4 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
Sweat equity, and other methods of reducing the initial cost of getting a company off the ground without resorting to amassing o
vovangra [49]

Answer:hes wrong i just failed a mf test cause of it the right answer is bootstrapping on oddy

Explanation:

3 0
3 years ago
The Phillips curve exhibits A. the situation where cyclical unemployment becomes zero. B. the relationship between the unemploym
Sav [38]

Answer:

B) The relationship between the unemployment and the inflation rates

Explanation:

6 0
3 years ago
Read 2 more answers
Which adult below should AVOID hiring a financial adviser at this moment?
Dvinal [7]

Answer:

B. Mateo

Explanation:

He just graduated college therefore he has loans to pay back which could take a  long time and an advisor may not fit in to his budget right now.

3 0
3 years ago
Read 2 more answers
On September 1, 2021, Southwest Airlines borrows $39.3 million, of which $6.6 million is due next year. Show how Southwest Airli
Pavlova-9 [17]

Answer:

Balance sheet

Current liability:

Current portion of long term debt = $6,600,000

Long term liability:

Notes payable = ($39,300,000 - $6,600,000)

                        = $32,700,000

Therefore,

Total liabilities = Current liabilities + Long term liabilities

                        = $6,600,000 + $32,700,000

                        = $39,300,000

4 0
3 years ago
Marcy owns the company Caps for Kids and sells her hand-knitted caps for $20 each. The variable cost per cap created is $10, and
iragen [17]
At breakeven point, the cost is equal to the revenue. This also means that the net profit is equal to zero. If we let x be the number of units sold or produced, the total costs and revenue are calculated as follows:

Total Cost = 10x + 10,000
Total Revenue = 20x

Equation both,
                10x + 10,000 = 20x
The value of x from the equation is 1000.

Answer: 1000
3 0
3 years ago
Other questions:
  • The General Fund reported a beginning balance of inventory of materials and supplies of $122,000. The ending balance was $150,00
    7·1 answer
  • In 2017, a marketing manager for new balance's minimus golf shoe needs to forecast sales through 2019. she begins with the known
    13·1 answer
  • The P/E ratio for a certain stock was high. This means _____.
    10·1 answer
  • As old central business districts and industrial zones in more developed countries lost businesses and employment in the mid- to
    7·1 answer
  • If cost of goods manufactured is $306,790, beginning work in progress inventory, $25,000, and cost to manufacture, $300,000, the
    14·1 answer
  • When TOMS first introduced their shoes, they created a shoe that was extremely simple and cheap to produce. But the firm made a
    11·2 answers
  • Which of the following best describes the management function of organizing?
    10·1 answer
  • Suppose there is a rash of pickpocketing. As a result, people want to keep less cash on hand, decreasing the demand for money. A
    11·2 answers
  • The investment most affected by local conditions is:
    13·1 answer
  • 32. How many significant accounting policies are listed under its Summary of Significant Accounting Policies
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!