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
An investment that costs $5,800 will produce annual cash flows of $2,480 for a period of 4 years. Given a desired rate of return
aleksandrvk [35]

Based on the present value of the annual cash flows and the investment cost, the present value index is 1.39

<h3>How is the present value index calculated?</h3>

To find the present value index, use the formula:

= Present value of cash flow/Investment cost

The present value of cash flow is:

= Annual cash flows x Present value interest factor of annuity, 9%, 4 years

= 2,480 x 3.239719877

= $8,034.51

The present value index is:

= 8,034.51 / 5,800

= 1.39

Find out more on present value index at brainly.com/question/23259683

#SPJ1

8 0
1 year ago
Sandhill Warehouse distributes hardback books to retail stores and extends credit terms of 2/10, n/30 to all of its customers. D
Artyom0805 [142]

Answer:

Sandhill Warehouse

Journal Entries:

June 1:

Debit Inventory Account $2,575

Credit Accounts Payable (Catlin Publishers)

To record purchase on account, terms 2/10, n/30.

June 3:

Debit Accounts Receivable (Garfunkel Bookstore) $1,300

Credit Sales $1,300

To record sales of books on account.

Debit Cost of Goods Sold $900

Credit Inventory Account $900

To record cost of books sold.

June 6:

Debit Accounts Payable (Catlin Publishers) $75

Credit Inventory Account $75

To record credit for books returned.

June 9:

Debit Accounts Payable (Catlin Publishers) $2,500

Credit Cash Discount $50

Credit Cash Account $2,450

To record payment on account.

June 15:

Debit Cash Account $1,300

Credit Accounts Receivable (Garfunkel Bookstore) $1,300

To record cash receipt on account.

June 17:

Debit Accounts Receivable (Bell Tower) $1,150

Credit Sales Account $1,150

To record books sold on account.

Debit Cost of Goods Sold $750

Credit Inventory Account $750

To record cost of books sold.

June 20:

Debit Inventory Account $900

Credit Accounts Payable (Priceless Book Publishers) $900

To record purchase on account, terms 3/15, n/30.

June 24:

Debit Cash Account $1,127

Debit Cash Discount $23

Credit Accounts Receivable (Bell Tower) $ 1,150

To record cash receipt on account.

June 26:

Debit Accounts Payable (Priceless Book Publishers) $900

Credit Cash Discount $27

Credit Cash Account $873

To record payment on account.

June 28:

Debit Accounts Receivable (General Bookstore) $1,900

Credit Sales $1,900

To record sale of books on account.

Debit Cost of Goods Sold $970

Credit Inventory Account $970

To record cost of books sold.

June 30:

Debit Sales (Returns) $130

Credit Accounts Receivable (General Bookstore) $130

To record Sales credit

Debit Inventory Account $90

Credit Cost of Goods Sold $90

To record cost of returned books.

Explanation:

1. Purchase of books on account increases inventory and Accounts Payable.

2. Sale of books on account increases Sales and Accounts Receivable.  It also reduces the Inventory Account and increases the Cost of Sales.

3. Return on Purchases reverses the entries made when goods were purchased.

4. Since Garfunkel Bookstore paid after 10 days, it could not enjoy the 2% cash discount on offer.

5. Bell Tower paid within 10 days and enjoyed the 2% cash discount.

6. Priceless Book Publishers was paid within 15 days, so the 3% cash discount applies.

7. Return on Sales reverses the entries during sales.  |t reduces Sales by a contra account called Sales Returns and the Accounts Receivable.  The inventory account is increased and the Cost of Sales is reduced.

8.  Journal entries record the daily transactions of a business as they occur.  From the general journal, postings are made to the Ledger.

5 0
3 years ago
Day 2: Whoever says the craziest comment you can have (brainlyest) and you get free points :) good luck
MissTica

Answer:

If the movie 'Finding Nemo' were scientifically accurate, Nemo's dad would have become female after Nemo's mom died. Then he would have mated with his son.

Explanation:

6 0
3 years ago
Read 2 more answers
Jason Liang has gotten three job offers. He is now looking at the benefits packages of all three to see what he likes and doesn'
Dovator [93]

Answer:

Which step in the career planning process is Jason completing?

E) Evaluate financial and other factors of positions offered.

Explanation:

Career planning is an aspect of career management that involves self evaluation and formulation goals to have a strong career path. It involves constant evaluation in improving skills and setting goals to ensure that one achieves career objectives that they set out. Career planning is a step-wise procedure that is to move an individual to a direction that will make him/her achieve professional excellence in the career that is chosen. The following steps are involved in career planning;

1. Self assessment

Self assessment involves the evaluation of one's own skills and interests and also capabilities to understand what he/she already has and where he/she wants to be in the career path.

2. Research on careers

Once the skills and interests has been assessed, one can research on the careers they would love to pursue to find out if they align with their skills, capabilities and interests

3. Set career objectives

The individual should then set clean career objectives, both short-term and long-term objectives.

4. Learn and improve skills

In order to align with set career objectives, the individual should keep improving and acquiring new skills.

5. Search for a Job

This involves the preparation of Curriculum vitae and supporting documents and search for jobs that offer opportunities that will help in advancing your career.

6. Once you receive job offers, evaluate various factors including the financial ones offered by the positions.

7 0
4 years ago
Because there isn't one single measure of inflation, the government and researchers use a variety of methods to get the most bal
evablogger [386]

Answer:

,,,,,,,,,,,,,,,,,,,,,

6 0
2 years ago
Other questions:
  • Nordstrom, an upscale department store, has a well-known reputation for going the extra mile to serve its customers. This reputa
    14·1 answer
  • LRQ Inc. issued bonds on April 18, 2006. The bonds had a coupon rate of 5.5%, with interest paid semiannually. The face value of
    9·1 answer
  • When a firm initiates or increases a cash discount, the net effect on the accounts receivable investment is difficult to determi
    5·1 answer
  • The fastener division of Southern Fasteners manufactures zippers and then sells them to customers for $8 per unit. Its variable
    14·1 answer
  • each of the following inventors developed machinery that would lead to the increased productivity of farmers between 1790 and 18
    10·1 answer
  • Calculating Residual Income East Mullett Manufacturing earned operating income last year as shown in the following income statem
    13·1 answer
  • The following selected accounts from the Pina Colada Corp.’s general ledger are presented below for the year ended December 31
    8·1 answer
  • Earnings of workers are typically decreased by
    12·1 answer
  • 9. When Margot applies for a loan, she needs to demonstrate to the bank that she has capital. What could she show them to best d
    5·1 answer
  • The practices that organizations and their managers use for identifying, creating, acquiring, developing, dispersing, and exploi
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!