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
Rottino Company purchased a new machine on October 1, 2020, at a cost of $150,000. The company estimated that the machine will h
Amanda [17]

Answer:

Instructions are listed below.

Explanation:

Giving the following information:

Purchasing cost= $150,000.

The company estimated that the machine will have a salvage value of $12,000. The machine is expected to be used for 10,000 working hours during its 5-year life.

1) Straight-line:

Annual depreciation= (original cost - salvage value)/estimated life (years)

Annual depreciation= (150,000 - 12,000)/5= 27,600

<u>2020:</u>

Annual depreciation= (27,600/365)*92 days= $6,956.71

2) Units of activity:

Annual depreciation= [(original cost - salvage value)/useful life of production in units]*units produced

Annual depreciation= [(150,000 - 12,000)/10,000]*1.700= $23,460

3) Double-declining balance:

Annual depreciation= 2*[(book value)/estimated life (years)]

Annual depreciation= 2*27,600= 55,200

<u>2020:</u>

Annual depreciation= 55,200/365*92= 13,913.42

<u>2021:</u>

Annual depreciation= [138,000 - 13,913.42)/5]*2= 49,634.63

5 0
3 years ago
During the months of January and February, Solitare Corporation sold goods to two customers. The sequence of events was as follo
Daniel [21]

Answer:

The total revenue Solitare would report over the two months is $99 with a gross loss of $11.74

Explanation:

Particulars                                                  Amount ($)

Sales (January & February)

- Wizard Inc                                                     $50

- Spyder Corp                                                 $50

Less: Discount allowed to Wizard Inc           <u>$1       </u>    ($50 * 2%)

Net Sales                                                         $99

Less: Cost of goods sold (60.6+50.14)          <u>$110.74</u>

Gross Loss                                                       <u>$11.74</u>

8 0
2 years ago
A company has net income of $ 225,000 and declares and pays dividends in the amount of $ 75,000 . What is the net impact on reta
egoroff_w [7]

A company has net income of $ 225,000 and declares and pays dividends in the amount of $ 75,000 .

c. An increase of $ 150,000 is the net impact on retained earnings is the correct option.

Income is the consumption and savings opportunity that a business captures within a specific time frame, usually expressed in money. Income is difficult to define conceptually and definitions vary by region.

For most people, income means gross income in the form of wages and salaries, return on investment, pension payments, and other income.

The definition of income is the amount of money received by an individual, group or business during a specified period. An example of income is an annual salary of $70,000.

Learn more about income here:brainly.com/question/25745683
#SPJ4

7 0
1 year ago
Munster Company reports the following net cash in its statement of cash flows: net inflow from operating activities: $200; net o
Murrr4er [49]

Answer:

$170

Explanation:

Given the following information about Munster company:

Net inflow from operating ACTIVITIES = $200

Net outflow from investing ACTIVITIES =  $300

Net outflow from financing ACTIVITIES = $50

Ending balance in cash = $20

BEGINNING BALANCE :

Outflows + ending balance - inflow

(Outflow from investing ACTIVITIES + outflow from financing ACTIVITIES + ending balance in cash) - inflow from operating activities

($300 + $50 + $20) - $200

$370 - $200

= $170

3 0
3 years ago
Which type of light is primarily used as a light source in stores?
gregori [183]

Answer:

artificial light

Explanation:

Most stores, no matter the type of the merchandise they sell, use artificial light. Although natural light (sun) is always present, it is not enough to cater to the lighting needs of a business.

They need to showcase their goods in the best manner possible. Due to common building constraints, natural light is never enough, as some corners of the shop will remain shaded.

Businesses use LED or other sorts of artificial lighting in order to make the shopping experience pleasant.

3 0
2 years ago
Read 2 more answers
Other questions:
  • is the present value of these cash flows? (Enter rounded answers as directed, but do not use rounded numbers in intermediate cal
    6·1 answer
  • The balance in Accounts Receivable at the beginning of the year amounted to $3,360. During the year, $10,640 of credit sales wer
    15·1 answer
  • Suppose, you sold an apartment house by accepting $1,000,000 down and monthly payments of $15,000 per month for 10 years. You pl
    9·1 answer
  • ​"Baxton Courier Services recently gave all its employees electronic tablets to accurately track the whereabouts of its ​shipmen
    12·1 answer
  • PLEASE HELP!!!
    14·1 answer
  • At December 31, DePaul Corporation had the following cumulative temporary differences associated with its operations:_____.
    7·1 answer
  • ________ refers to focusing part of one's supply chain on a timely response to fluctuating customers orders and/or product varie
    15·1 answer
  • Why might a business conduct a life cycle assessment?
    6·1 answer
  • What is the title of the Access form shown above? frmBasic tblRetailer 0001 Spice World
    9·1 answer
  • 1. Which of the following is true about finding the present value of cash flows?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!