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
In calculating the daily balance, cash advances are A. always added in. B. sometimes added in. C. sometimes subtracted out. D. a
SSSSS [86.1K]
B. Sometimes added in

3 0
4 years ago
Explain the technique of making bamboo based handicrafts with an example.​
Gala2k [10]

Answer:

Bamboo can be processed into thin strips or sheet materials for bamboo plaiting , commonly known as bamboo strips. The processing procedures of bamboo strips include selecting materials , sawing bamboo, pruning, scraping, dividing, splitting, setting the width, thinning and chamfering.

Explanation:

Example: •Bamboo furniture

•Bamboo toys

•Bamboo wind chimes

•Bamboo lamps and lanterns

•Bamboo placements and coasters

6 0
3 years ago
ABC Limited, Inc., sells its product in a perfectly competitive market for a price of $15 per unit and hires workers at a daily
Svetach [21]

Answer:

The company's profit will remain unchanged.

Explanation:

The new worker will increase costs by $75 per day while the total sales will increase by $75 per day (= 5 units x $15). The only way the company increases its profit is that they sell at least 6 more units per day.

3 0
3 years ago
It is not a consumers responsibility to report fraudental activity
creativ13 [48]

If this is a true/false question, the answer is FALSE.

It is consumers' responsibility to report fraud when it occurs.

4 0
3 years ago
Lee operates injection molding machines on a regular basis. He is responsible for observing meters to verify press-cycle times,
kenny6666 [7]

Answer:

A

Explanation:

Line Function

4 0
4 years ago
Other questions:
  • In response to the financial​ crisis, the Fed and the U.S. Treasury took all of the following policy actions except​ _______.
    13·1 answer
  • Describe the target market for your company's product or service
    10·1 answer
  • For each of the following characteristics, say whether it describes a monopoly firm, a monopolistically competitive firm, both,
    8·1 answer
  • An expansionary fiscal policyLOADING... involves an increase in government purchases or an increase in​ taxes:
    12·1 answer
  • Young children are permitted to work in the manufacturing of soccer balls in Pakistan, but this would not be legal in the United
    12·1 answer
  • Potential gdp refers to 1) the difference between the highest level of real gdp per quarter and the lowest level of real gdp per
    10·1 answer
  • Caroline is retired and receives income from a number of sources. the payments are from bonds that Caroline purchased over past
    10·1 answer
  • Assume annual payments of $5,309 for 7 years and an interest rate of 7.4% per year. What initial principal (present value) will
    13·1 answer
  • I love bts, but what are some other artists to listen to..?
    7·2 answers
  • Why must a monopoly supply a good or service that has no close substitute
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!