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
In most societies, resources are allocated by
Maksim231197 [3]
In most societies, resources are allocated by the combined action of millions of households and firms.
Resources are very important to setup and build societies. Resources are scare and this is the reason why societies and households faces many decisions. How societies manage scare resources, we study this in economics.
7 0
3 years ago
Which of the following statement is not true about the Project stakeholders?
xxMikexx [17]

I think d is the answer

Explanation:

all stakeholders must not be independent all must work together

4 0
3 years ago
Which of the following statements is not accurate descriptions of the business market? Mrs. Phillip, a retail buyer for Blooming
Natali [406]

Answer:

Mrs. Phillip, a retail buyer for Bloomingdale's, does all the shopping for her family at the same store.

Explanation:

The business market is the market where you can sell your product and services to the other businesses so it can be used as a raw material for the other business in order to manufacture the products. And, the other reason is to purchased the products and resell them.

So based on the given statements, the first option is considered as in the remaining statements there are business transactions but in this only one person i.e. retail buyer is considered

8 0
3 years ago
Using the information below, calculate gross profit for the period:    Beginning Raw Materials Inventory$25,000 Ending Raw Mater
nevsk [136]

Answer:

Gross Profit                  714,000

Explanation:

Gross Proft: is the diference between the sales revenue and the cost of the goods sold.

Sales revenue          1,254,000

Cost of Goods Sold    (540,000)

Gross Profit                  714,000

note: All the other account and values are irrelevant to determinate the gross profit.

<u>Other way to calculate gross profit:</u>

(sale price per unit - cost per unit) x unit sold

5 0
3 years ago
More free points here u go
Dovator [93]

Answer:

khsusbxndkskxcndkzkzkeond

7 0
3 years ago
Read 2 more answers
Other questions:
  • When you need to satisfy two or more criteria to initiate an event in a program, you must make sure that the second decision is
    9·2 answers
  • Jaybird Company operates in a highly competitive market where the market price for its product is $62 per unit. Jaybird desires
    15·1 answer
  • If you have an offer that’s targeted towards your leads in your database and wouldn’t provide as much value to your customers, w
    15·1 answer
  • Match each of the following characteristics that describe financial accounting, managerial accounting, both financial and manage
    5·1 answer
  • Under the previous​ CEO, Konica/Minolta's management determined it was time to invest in​ __________ by offering new products to
    15·1 answer
  • Which of the following would be considered an appraisal cost of quality?
    10·1 answer
  • The best type of resume to submit when changing careers is a__________ resume.
    5·1 answer
  • Differentiate between manmade and natural attraction​
    15·1 answer
  • Describe how McDonald's goods and services were in high demand by incorporating the ideas of needs and wants .
    14·2 answers
  • On June 25, Snap Repair Service extended an offer of $170,000 for land that had been priced for sale at $194,000. On July 9, Sna
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!