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
Partners Dennis and Lilly have decided to liquidate their business. The following information is available:
fgiga [73]

Answer:

Partners Dennis and Lilly have decided to liquidate their business. The following information is available:

Cash $100,000 Accounts Payable $100,000

Inventory $200,000 Dennis, Capital $120,000

Lilly, Capital $80,000

$300,000 $300,000

Dennis and Lilly share profits and losses in a 3:2 ratio. During the first month of liquidation, half the inventory is sold for $60,000, and $60,000 of the accounts payable is paid. During the second month, the rest of the inventory is sold for $45,000, and the remaining accounts payable are paid. Cash is distributed at the end of each month, and the liquidation is completed at the end of the second month.

1. Using a safe payments schedule, how much cash will be distributed to Dennis at the end of the first month?

a. $36,000

b. $64,000

c. $60,000

d. $24,000

2. Using a safe payments schedule, how much cash will be distributed to Lilly at the end of the first month?

a. $40,000

b. $24,000

c. $64,000

d. $16,000

4 0
2 years ago
Suppose there is a simultaneous increase in the demand for rice and increase in the supply of rice. Which of the following will
patriot [66]

Answer:

C) The market learing price may rise, fall, or stay the same, but the equilibrium quantity will rise. 

Explanation:

An increase in demand would lead to an increase in demand and price.

An increase in supply would lead to an increase in supply and a fall in price.

The combined effect would lead to an increase in equilibrium quantity but the effect on equilibrium price would be indeterminate.

I hope my answer helps you

6 0
3 years ago
If you wanted to compare the quantity of output of a country across time periods, which of the following would you use?
SOVA2 [1]

Answer:

the best way to compare the output in quantities over a period of times will be  (D) real GDP.

this is becasue real GDP is calculated by  adjusting for the changes in prices, therefore it does not contain any changes in the prices and only reflects the increase or decrease of the output quantities.

Explanation:

4 0
2 years ago
Consider an offer to supply 5 paintings per year to an art gallery in Rome for the next five years. The contract is exclusive, m
IceJOKER [234]

Answer:

I will accept the offer if the price per painting is $56,312.41 or higher.

Explanation:

We will calculate the present value of the other option which is, selling our painting as a freelancer.

C \times \frac{1-(1+r)^{-time} }{rate} = PV\\

C 315,000.00

time 5

rate 0.2

315000 \times \frac{1-(1+0.2)^{-5} }{0.2} = PV\\

PV $942,042.8241

Now, we subtract the signing bonus of 100,000

942,042.83 - 100,000 = 842,042.83

And solve for the annual proceeds from the painting we need to equalize the opportunity cost:

PV \div \frac{1-(1+r)^{-time} }{rate} = C\\

PV 842,042.83

time 5

rate 0.2

842042.83 \div \frac{1-(1+0.2)^{-5} }{0.2} = C\\

C  $ 281,562.03

Now, we divide by the 5 painting per year:

$281,562.03 per year / 5 painting per year = $56,312.41

3 0
3 years ago
Nidal Company reported inventory in the 2020 year-end balance sheet, using the FIFO method, as $185,000. In 2021, the company de
Ksenya-84 [330]

Answer:

Dr Retained earnings $14,000

Cr Inventory $14,000

Explanation:

There is a need to make adjustment to the inventory . Therefore,

Adjusted inventory

= New method of $171,000 - Old method of $185,000

= $14,000 decrease

It is to be noted that a lower inventory will have high costs associated with goods sold hence reduces profit/net income for the previous year by $14,000.

Also, the net income reports to retained earnings account hence decreases retained earnings.

Having made the above adjustment, we can assume that the average cost method was used for 2020 books.

3 0
3 years ago
Read 2 more answers
Other questions:
  • A project has an initial cost of $6,500. the cash inflows are $900, $2,200, $3,600, and $4,100 over the next four years, respect
    11·1 answer
  • William uses his bank credit card frequently; however, he always pays off the total balance on the card each month. what feature
    6·1 answer
  • MacKenzie Company sold $180 of merchandise to a customer who used a Regional Bank credit card. Regional Bank deducts a 4% servic
    15·1 answer
  • Residential Investment Payments of Factor Income to the rest of the world National Income Inventory Adjustment 0.00 Personal Con
    14·1 answer
  • The Scrum Team should choose at least one high priority process improvement, identified during the Sprint Retrospective, and pla
    8·1 answer
  • Why does supplier competition make it harder for an entrepreneur to be successful
    8·1 answer
  • XYZ Corporation has declared a rights offering to stockholders of record on Wednesday, November 15th. Under the offer, sharehold
    7·1 answer
  • Reynolds Manufacturers Inc. has estimated total factory overhead costs of $95,000 and expected
    8·1 answer
  • U.S. exports create a:____.
    11·1 answer
  • How can a country experience economic growth?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!