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
The Jacksonville Jaguars sell season tickets to NFL football games. There are 10 home games during the season, which runs from A
PIT_PIT [208]

Answer: Deferred income which must be a liability accounts.

Explanation:

Revenue earned on a service is recognised when the service has been performed, it's probable that economic benefits of the services will be enjoyed by the client, the price of the services can be measured reasonably, cost Incurred on the performance of the services can be measured reasonably.

On the above scenario the services has not been perform, the cost of performance cannot be measured, these and more shows that Jaguar cannot recognize the sum as an income but rather as a deferred income(liabilities) which will later be transferred to income accounts as the necessary conditions for recognition as income are met.

8 0
3 years ago
Amy earns an annual salary of $40,000 working for the law office of smith and jones. calculate her gross pay per paycheck if she
Aloiza [94]
1,666 divide it by 12 then divide it by 2
3 0
3 years ago
A customer wishes to place a buy order for a security that has not been registered with the SEC. The security may be purchased i
cupoosta [38]

Complete Question:

A customer wishes to place a buy order for a security that has not been registered with the SEC. The purchase order can be filled if the security:

A. is exempt from SEC registration

B. is traded by at least 2 market makers

C. has been trading in the market for at least 1 year

D. is sold to professional investors

Answer:

Is exempt from SEC registration

Explanation:

The Securities and Exchange Commission (SEC) is a regulatory agency that is saddled with the responsibility of regulating the capital market and ensuring investors are well protected by making sure standard rules are followed.

If a customer wishes to place a buy order for a security that has not been registered with the Securities and Exchange Commission (SEC). The security may be purchased if the security is exempt from SEC registration.

By standard, the SEC states and implore investors to purchase only securities that are registered with the securities and exchange commission (SEC) or only when an exemption is made available. If securities have been trading for about a year or is being traded by a minimum of two companies, no exemption would be given by the SEC.  

Also, there isn't any exemption for securities that is sold only to professional investors.

However, investors can purchase municipal and government securities even without it being registered with the securities and exchange commission.

<em>In a nutshell, the customer can only purchase a security that has not been registered only if it is exempted from SEC registration. </em>

3 0
3 years ago
Arthur sells $100 worth of cotton to Bob. Bob turns the cotton into cloth, which he sells to Camille for $300. Camille uses the
kow [346]

Answer:

$1200

Explanation:

Gross Domestic Product (GDP) is the total market value of all of the final goods and services produced in a country over a particular period of time.

The contribution to GDP can be determined by adding the value created by each of the economic agents involved in the creation of the final goods and services

Arthur = 100 = 100

Bob = 300 - 100 = 200

Camille = 700 -300 = 400

Donita = 1200 - 700 = 500

Total Value 100 +200 +400 +500 = $1200.

You will observe that it is the same as the value of the final good i.e dress. In the production process, other goods involved are referred as intermediate goods

8 0
4 years ago
You were asked to estimate the cost of capital for XYZ Inc. The firm is expected to have a target capital structure of 30% debt,
kap26 [50]

Answer:

8.30%

Explanation:

The weighted average cost of capital of the company is  computed using the WACC formula below:

WACC=(We*Ke)+(Wp*Kp)+(Wd*kd)

We=weight of common equity=50%

Ke=cost of retained earnings which is a proxy for the cost of equity=11.50%

Wp=weight of preferred stock=20%

Kp=cost of preferred stock=6.00%

Wd=weight of debt=30%

Kd=after-tax cost of debt=4.50%

WACC=(50%*11.50%)+(20%*6.00%)+(30%*4.50%)

WACC=8.30%

3 0
3 years ago
Other questions:
  • Anemployer may choose to match money employees invest in a
    5·1 answer
  • A stock has an expected return of 14.3 percent, the risk-free rate is 3.9 percent, and the market risk premium is 7.8 percent. w
    12·2 answers
  • The title of the job you are seeking should be placed _____.
    10·1 answer
  • How does the brand of popcorn affect the amount of popcorn popped?
    7·1 answer
  • The following selected transactions relate to liabilities of Interstate Farm Implements for December of 2018. Interstate’s fisca
    10·1 answer
  • Which of the following statements is true of conversion​ costs? A. The conversion cost needed for a completed unit and the conve
    13·1 answer
  • g Sparky Corporation uses the weighted-average method of process costing. The following information is available for February in
    5·1 answer
  • An organization based within the eu wants to avoid many of the strict guidelines regarding the protection of data subjects. As t
    12·1 answer
  • when microwave ovens were in the introduction stage of their product life cycle, some consumers were willing to pay exorbitant p
    11·1 answer
  • the three ways that government policy can solve an adverse selection problem do not include providing information directly to bu
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!