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
What is the primary responsibility of oversight bodies (such as an irb or iacuc)?
mojhsa [17]

The primary responsibility of oversight bodies (such as an IRB or IACUC) is to assess legal-regulatory compliance, and if applicable, to protect research subjects.

Responsibility can also be used to describe Group responsibility. societal accountability for businesses. Duty. obligation to pay.

Being responsible entails carrying out your obligations and accepting the consequences of your decisions. A duty is something you are required to do. Being responsible means carrying out your obligations. Taking ownership of your actions means accepting both the credit and the blame for what you have done.

Three Categories of Responsibilities Every Business Owner Must Fulfil

  • environmental obligations.
  • obligations to comply.
  • Customer obligations.

Responsibility is crucial because it gives people a feeling of purpose and helps society develop resilience in the face of hardship. Like an addiction, avoiding responsibilities may feel wonderful in the short run, but it results in misery and suffering that is tenfold worse in the long run.

To learn more about Responsibility visit here:

brainly.com/question/28903029  

#SPJ4

3 0
1 year ago
Of all the types of managers, managers of global social media campaigns are the ones who need not be aware of the cultures of th
Eduardwww [97]

Answer:

False

Explanation:

Of all the managers, managers of global social media campaigns are the ones who need to be most aware of the cultures in the countries in which they operate.

6 0
3 years ago
A company that manufactures laser printers for computers has monthly fixed costs of $177,000 and variable costs of $650 per unit
nydimaria [60]

Answer:

295 units

Explanation:

The cost -volume-profits CVP concepts calculate the breakeven point by dividing fixed costs by the contribution margin per unit.

i.e., Breakeven point = Fixed cost/ contribution margin per unit.

For this company,

Fixed costs are $177,000

Contribution margin per unit

= selling price - variable costs.

=$1250 -$650

=$600

Breakeven point = $177,000 / $600

=295 units

6 0
3 years ago
Write merits of one dimensional diagrams ?​
Usimov [2.4K]

Answer:

(i) They are readily understood even by those unaccustomed to reading charts or those who are not chart-minded.

(ii) They posses the outstanding advantage that they are the simplest and the easiest to make.

(iii) When a large number of items are to be compared they are the only form that can be used effectively.

7 0
2 years ago
Read 2 more answers
MARKETING PLEASE HELP
andre [41]

Answer:

The entire demand curve will shift upwards

Explanation:

SEE IMAGE ATTACHED

The price P of a product is determined by a balance between production at each price (supply S) and the desires of those with purchasing power at each price (demand D). The diagram shows a positive shift in demand from D1 to D2, resulting in an increase in price (P) and quantity sold (Q) of the product.

3 0
3 years ago
Other questions:
  • The British Parliament attempted to regulate trade with the colonies through the:
    7·1 answer
  • Linda and Richard are married and file a joint return for 2019. During the year, Linda, who works as an accountant for a nationa
    12·1 answer
  • Which of the following is NOT a proactive hiring procedure? a. ​conducting background investigations on prospective employees b.
    12·1 answer
  • Suppose the price index was 105 in 2017, 126 in 2018, and the inflation rate was lower between 2018 and 2019 than it was between
    8·1 answer
  • Many traditional costing systems:
    5·2 answers
  • Scenario: You are the American Red Cross liaison in the Emergency Operation Center and you print up a list of the location of ma
    6·1 answer
  • Popular Company utilizes a calendar year as its fiscal year and depreciates plant assets using the straight-line method. On Janu
    12·1 answer
  • Two references are made to a check early on in the play, one by walter and one by travis. how does ruth react to each of these r
    10·1 answer
  • According to this credit report, how many accounts has Lillie had sent to collections?
    7·1 answer
  • which situation indicates a weak internal control structure? a. the mail room clerk authorizes credit memos b. the warehouse cle
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!