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
Jenna Parker owns and manages her single member LLC which provides a wide variety of financial services to her clients. She is m
Julli [10]

Answer:

Option ( b ) $57,000

Explanation:

Data provided in the question:

Net income = $300,000

W-2 wages = $120,000

Assets with unadjusted basis = $75,000

Taxable income before the QBI deduction = $285,000

Now,

The QBI deduction for 2019 will be given as 20% of the qualified income i.e the taxable income before the QBI deduction

Therefore,

The QBI deduction for 2019 = 20% of $285,000

= 0.20 × $285,000

= $57,000

Hence,

Option ( b ) $57,000

5 0
3 years ago
Last year a country’s real GDP grew by 4%, it’s inflation rate was 2.5%, and it’s government budget deficit was about $250 billi
Arturiano [62]

Answer:

d. 3.85 trillion

Explanation:

Step 1: Given data

GDP = GDP grew by = 4% = 0.04

R = inflation rate was = 2.5% = 0.025

D = government budget deficit was = $250 billion

Step 2: Formula

X = debt at the start of last year

X = D / (GDP + R)

Step 3: Computation

X = 250 billion / (0.04 + 0.025)

X = 250,000,000,000 / 0.065

X = 3,846,153,846,153.85

Step 4: Convert to trillion

X = 3,846,153,846,153.85 / 1,000,000,000,000

X = 3.85 trillion

The correct option is d. 3.85 trillion

Hope this helps!

5 0
3 years ago
A business landowner has a duty to reasonably maintain his or her property for safety. when the business invites guests or custo
Sunny_sXe [5.5K]

if a business invites guests or customers onto its premises, then that business has the duty to c. warn invitees of and reasonably protect them from a foreseeable risk of harm or danger from something on the premises.

<h3>What is the duty of a business to its guests?</h3><h3 />

When a business gets guests on its premises , it has two duties as regards their safety. The first is to warn them about potential harm or danger that they might face.

The second duty is to offer some reasonable protection to the guests in case of any foreseeable risk of harm.

Options for this question include:

  • a. warn invitees and trespassers of, and reasonably protect them from, a foreseeable risk of harm or danger from something on the premises.
  • b. reasonably protect invitees from every possible risk of harm or danger that could exist on the premises.
  • c. warn invitees of and reasonably protect them from a foreseeable risk of harm or danger from something on the premises.
  • d. warn invitees of all risks, even of an obvious risk.

Find out more on the duties of a business to customers at brainly.com/question/24553900

#SPJ1

5 0
2 years ago
National Chemical Company manufactures a chemical compound that is sold for $55 per gallon. A new variant of the chemical has be
shepuryov [24]

Answer:

National Chemical Company

New Variant of a Chemical Compound:

The effect on total profit if National produces the new compound variant is that total profit increases by $33,200

Explanation:

a) Data:

Selling price of old chemical = $55

Selling price of fined chemical = $78

Initial demand for the new compound = 8,300 gallons

Refining costs for the new compound = $157,700

b) Calculations:

Profit from new fined chemical = $23 ($78 - 55)

Differential Sales revenue =  $190,900 ($23 x 8,300)

Differential processing costs $157,700

Effect on total profit =              $33,200

c) Refining a chemical always add some value to the chemical.  The additional value added is the differential sales revenue that National generates minus the additional processing costs involved to get the chemical refined.

8 0
2 years ago
Managers should be held responsible for only those cost, revenues, or assets over which they have substantial control.
lapo4ka [179]

Answer:

Managers should be held responsible for only those cost, revenues, or assets over which they have substantial control should be considered as a

FALSE Statement.

Explanation:

In order to understand this statement comprehensively, we need to know the following two views.

The Omnipotent View

The Symbolic View

The Omnipotent view

This view defines and makes managers wholly responsible for all the success and losses of an organisation. This view referred managers as completely liable for all the operations, causes and their resulting effects within an organisation. No matter what, they are held liable for the consequences. For example, when a football team performs, coaches and managers are held liable and they come under radar in case of bad performances.

The symbolic View

This view says that managers make decisions in the best interest of the firm on the base of available resources, assets, costs and revenues but there are certain things which are beyond their control, they have very less or little control over certain things like economy, political environment – rules and regulations, competitors actions, market conditions, having control over technology etc.

Consequently, mangers cannot be held completely responsible; they have limited impact and effect over the organisational performance.

7 0
3 years ago
Other questions:
  • A department had 65 units which were 20% complete in beginning Goods in Process Inventory. During the current period, 77 units w
    6·1 answer
  • Tony and Suzie are ready to expand Great Adventures even further in 2022. Tony believes that many groups in the community (for e
    12·1 answer
  • A firm has an outstanding issue of 1,000 shares of preferred stock with a $100 par value and an 8 percent annual dividend. The f
    12·1 answer
  • Isle Co. owned a copy machine that cost $5,000 and had accumulated depreciation of $2,000. Isle exchanged the copy machine for a
    12·1 answer
  • 5. Calculate the return on investment in dollars and as a percentage for an investment that you purchase for $500 and sell for $
    7·2 answers
  • 1. Bankruptcy law is primarily state law. a. True b. False 2. The government is given the power to establish bankruptcy laws in
    14·1 answer
  • Melody has worked as a secretary at Consolidated Freight Handling for 10 years. Although she earns a good salary and has made fr
    5·1 answer
  • A plan for a career starting in two years:
    12·1 answer
  • Porter Co. is analyzing two potential investments. Project XProject Y Cost of machine$68,000 $60,000 Net cash flow: Year 1 24,00
    6·1 answer
  • Suppose the equilibrium price of a physical examination ("physical") by a doctor is $200, and the government imposes a price flo
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!