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
Donald operates an accounting firm and has an annual summer party for the employees and their families. He believes the party be
rusak2 [61]
I believe it’s C.$2,500, because i took $500 and subtract it from $4,000 to get the cost.
4 0
3 years ago
Bond outstanding with a coupon rate of 5.66 percent and semi-annual payments. The bond has a yield to maturity of 6.3 percent, a
vagabundo [1.1K]

Answer

Price of bond = 17.96825

Explanation:

Bond price = ∑(C / (1+YTM)^{n} )+  P /(1+i)^{n}

where

            n = no. of years

            C = Coupon payments

            YTM = interest rate or required yield

             P = Par Value of the bond

put values in above equation

  price = (5.66%/2) × 2000 × (0.31746) + ( 2000 ÷ 4.595×10^{18})

            = 17.96825

3 0
4 years ago
9/10
docker41 [41]

Answer:

d

Explanation:

7 0
3 years ago
Read 2 more answers
Jamar Co. sold its headquarters building at a gain, and simultaneously leased back the building. The lease was reported as a fin
USPshnik [31]

Answer:

a deferred gain

Explanation:

Deferred gain occurs when the recipient of the proceeds or profits from a transaction do not collect it all upfront. Some of the gain is not collected now but deferred to some future time.

It is referred to as unrealised revenue and is represented on the balance sheet as a liability.

In the given scenario Jamar Co. sold its headquarters building at a gain, and simultaneously leased back the building. This means not all the gains from the sale are received now.

So this is a deferred gain.

6 0
3 years ago
The legal contract between the bondholders and the issuer is called the bond ______.
Simora [160]

The legal contract between the bondholders and the issuer is called the bond <u>indenture.</u>

A bond indenture is important as it helps to protect the interest if the stakeholders and also lowers the chance of default.

It should be noted that the indenture list provides the details of a bond. It helps in ensuring transparency. Therefore, the legal contract between the bondholders and the issuer is called the bond indenture.

Read related link on:

brainly.com/question/25562729

4 0
3 years ago
Other questions:
  • Describe ways in which an interpersonal learner prefers to learn.
    15·1 answer
  • f a country exports more than it imports, then one can infer that its currency would be likely to depreciate against other curre
    6·1 answer
  • True or false: during deployment of the disaster workforce, the federal coordinating officer has the sole responsibility for fos
    14·1 answer
  • An employee has gross earnings of $1,200 with withholdings of 6.2% FICA-OASDI, 1.45% FICA-Medicare, $50 for federal income tax a
    13·1 answer
  • Suppose a project will result in an economic benefit of $20 million dollars 25 years from now. If the discount rate is 3%, what
    12·1 answer
  • If the M1 multiplier is 3 and the Fed engages in open-market sales in the amount of $3 billion, then M1 will Group of answer cho
    9·1 answer
  • __ are the people, money, information, equipment, and materials required to produce an organization's goods or services.
    11·1 answer
  • 1. Bisney Studios just put out a new animated movie with animal characters called the "Tiger
    5·1 answer
  • APS Company issued 20,000 shares of $1 par common stock for $40 per share during 2017. The company paid dividends of $48,000 and
    13·1 answer
  • Suppose you have three choices as to what to do for two hours on Sunday afternoon: work around the house, earning $3.50 an hour;
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!