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
Lean Principles The chief executive officer (CEO) of Platnum Inc. has just returned from a management seminar describing the ben
Vladimir79 [104]

Answer:  Option E

Explanation:

A. Poor quality inventory will not be sold leading to excess of it thus it is a reason.

B. Large set up times will lead to loosing of customers, thus, reason for excess inventory.

C. Unreliable equipment urges for overproduction while the equipment is working efficiently thus it is a reason for excess inventory.

D. Poor employee relationships effects organisation process which might lead to delay in sales thus, a reason for excess inventory.

E. Workers union establishes efficiency in the work performance of labor, thus, it is not a reason in excess inventory.

7 0
3 years ago
Sales are $1.44 million, cost of goods sold is $570,000, depreciation expense is $144,000, other operating expenses is $294,000,
anygoal [31]

Answer:

Times Interest earned ratio is 4.41 times

Explanation:

Times interest earned ratio measure the business capability to pay the interest over its liabilities from its current earning.

As interest expense value is not given it is calculated by the net of Earning before interest and tax and Income before tax

Net Income = Addition to Retained Earning + Dividend Paid = $133,100 + ( 84,000 x $1 ) = $133,100 + $84,000 = $217,100

Income before tax = $217,100 x 100% / ( 100% - 35%) = $334,000

Earning before interest and tax = Sales - Cost of goods sold - depreciation expense - other operating expenses = 1,440,000 - 570,000 - 144,000 - 294,000 = $432,000

Interest Expense = Earning before interest and tax - Income before tax = $432,000 - 334,000 = $98,000

Times Interest earned ratio = Earning before Interest and tax /  Interest expense = $432,000 / $98000 = 4.41 time

4 0
2 years ago
A cheque of Rs 4500 received from yogesh and deposited into bank. Required: Journal Entry​
olga nikolaevna [1]

Answer:

See below

Explanation:

This transaction will affect the bank balance by increasing it with the check amount. The bank is cash (asset ) held in the bank. An increase in assets account is a debit. The bank A/c will be debited.

The check is received from Yogesh. Yogesh must have bought goods on credit and hence is an account receivable (asset). Since Yogesh has paid, his account decrease by the check amount. A decrease in assets is credited.

The journal entry will be

Bank A/c DR. Rs 4500

Yogesh A/c                 Cr. Rs 4500

3 0
2 years ago
I am bad as worst and worst as excellent​
ArbitrLikvidat [17]

Answer:

try using Googlde like Googdle will help u ndo neefsd to do it hedre

7 0
2 years ago
If the beginning Cash account balance of Moonbeam, Inc. was $40,000, the ending balance was $67,200, and the total cash paid out
lara [203]

Answer:

Cash Received during the period = $155200

Explanation:

The amount of receipts or cash received during the period can be calculated using the following formula.

Cash Received = Closing Balance + Cash Disbursements - Opening Balance

Cash Received = 67200 + 128000 - 40000

Cash Received = $155200

So, the cash receipts during the period are $155200.

7 0
3 years ago
Other questions:
  • The large business shown in the Snapshot above has 127 employees, 19 of whom are managers or supervisors; its reduced productivi
    10·1 answer
  • Which of the following is a benefit of doing business with an online bank? A. 24 hours/7 days a week business hours
    11·2 answers
  • The purchasing power of the dollar would fall by 20% if the price index rises by:A. 44 percentB. 12.5 percentC. 25 percentD. 10
    12·1 answer
  • How much does it cost to run a 20 gallon fish tank?
    6·1 answer
  • The practice of giving employees a high degree of control over their work, from planning and organization, through implementing
    14·1 answer
  • Barkoff Enterprises, which uses the high-low method to analyze cost behavior, has determined that machine-hours best explain the
    13·1 answer
  • Under emtala, a hospital is responsible for all areas ____ around the main building and around areas where inpatient services ar
    13·1 answer
  • Mr. Capadona would like to purchase a Medicare Advantage (MA) plan and a Medigap plan to pick up costs not covered by that plan.
    8·1 answer
  • On August 15, Calvin offers to sell Clarissa his laptop for $500 cash. He tells Clarissa she can only accept the offer by mailin
    6·1 answer
  • How much interest will Henry save if he finances the vehicle over 36 months instead
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!