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
Especially for projects with long lives, estimation of revenues (or benefits), costs, and cash flows is a difficult task princip
Ghella [55]

Uncertainty about future events
Estimating revenues (or benefits), costs, and cash flows is a challenging endeavor, especially for projects with lengthy lifespans, in large part due to uncertainty about the future.

The variability level of cash flow is referred to as the uncertainty of cash flow. On the one hand, it stands for the consistency and predictability of cash flow, but on the other, it also symbolizes the potential for future growth and improved performance of the company.
Due to changes in the macro aspect, the integrated force of the macroscopic environment and microcosmic environment, which affects cash flow, is primarily represented in economic uncertainty factors.
For more information about cash flow please refer to -brainly.com/question/14341220
#SPJ4

5 0
2 years ago
Weisman, Inc. uses activity-based costing as the basis for information to set prices for its six lines of seasonal coats.
Airida [17]

Answer:

Results are below.

Explanation:

<u>To calculate the activities rate, we need to use the following formula:</u>

Predetermined manufacturing overhead rate= total estimated overhead costs for the period/ total amount of allocation base

Designing= 444,000/13,000= $34.15 per designer hour

Sizing and cutting= 4,210,000 / 169,000= $24.91 per machine hour

Stitching and trimming= 1,490,000 / 75,500= $19.73 per labor hour

Wrapping and packing= 332,000 / 32,000= $10.38 per finished unit

6 0
3 years ago
In capitalism what is pure competition?
inysia [295]

Answer:

Pure or perfect competition is a theoretical market structure in which the following criteria are met: All firms sell an identical product (the product is a "commodity" or "homogeneous"). All firms are price takers (they cannot influence the market price of their product). Market share has no influence on prices.

5 0
3 years ago
Even though the remainder of this assignment will focus on motivation, there are two additional determinants of job performance.
Marat540 [252]

Answer:

The answer is Job perfomance= Motivation x Ability x Situational x Constraints

Explanation:

Because in this formula, job performance is how well someone performs the requirements of the job, motivation is the degree to which someone works hard to do the job well, ability is the degree to which workers possess the knowledge, skills, and talent to do the job well, and situational constraints are factors beyond the individual control of the empolyees. Such as policies, resources. Since job perfomance is a multiple function of motivation times ability times situational constraints, the job performance wil decline if one of those elements is considered insuficient.

6 0
3 years ago
If a market is semistrong-form efficient, this implies that above-average returns cannot be achieved by analyzing publicly avail
Shkiper50 [21]

Answer:True

Explanation:

6 0
3 years ago
Other questions:
  • Power users often work with ______ because of its flexibility and capabilities.
    15·1 answer
  • Perle, a dentist, billed Wood $600 for dental services. Wood paid Perle $200 cash and built a bookcase for Perle's office in ful
    9·1 answer
  • Suppose your favorite sports team is losing by an insurmountable score. What does the shutdown condition suggest the team should
    10·1 answer
  • Do you have an option to pay taxes?
    12·2 answers
  • Use the following information to determine this company's cash flows from financing activities.
    11·1 answer
  • Calculate the Kuznets Ratio for Bangladesh based on size distribution: The lowest 40% receives 17.3% of national income and the
    9·1 answer
  • Bravo Company began operations at the beginning of 20X6 with a $10,000 cash investment by stockholders. During 20X6, Bravo Compa
    12·1 answer
  • Cullumber Corporation purchased a machine on January 2, 2020, for $4100000. The machine has an estimated 5-year life with no sal
    14·2 answers
  • The private equity firm Clarence Partners is looking at a leveraged buyout
    6·1 answer
  • Cincy Machinery stock currently sells for $77 per share. The market requires a return of 14 percent while the company maintains
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!