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
Gentle Ben's Bar and Restaurant uses 6,700 quart bottles of an imported wine each year. The effervescent wine costs $4 per bottl
Marat540 [252]

Answer:

a. The answer is:762 bottlé.

b. The answer is: 487 bottles.

Explanation:

a. The economic order quantity is calculated as: \sqrt{(2xDxS/H)} = \sqrt{2 x 6968 x 25)/0.6 = 762 units because: D = annual demand = Weekly demand x week opening per year = 134 x 52 = 6968; S = Cost per order = 25; H = Holding cost per unit = 15% x purchase price = 15% x 4 = 0.6

b. Inventory level to place order:

With the inventory system providing a 95 percent service probability, z level is 1.64 (using the NORM.S.INV function in excel).

So Inventory level to place order = 134 * 3 + 1.64 * 30 * 3^0.5= 487 bottles.

7 0
3 years ago
Suppose a family has saved enough for a 10 day vacation (the only one they will be able to take for 10 years) and has a utility
Harlamova29_29 [7]

Answer:

2 Days

Explanation:

First, there is the need to rewrite the utility function for clarity

U=V^{1/2}

1. The Probability of Falling ill by someone in the family is given as 20%

2. If someone should fall ill, the total number of days that would be spoiled is calculated as:

Total number of vacation= 10 days x Probability to fall ill = 20%

= 10 x 0.2 = 2 days

This means if someone should fall ill based on the probability, then 2 out of the total 10 days can be ruined

3. The number of days for vacation days to enjoy is 10-2 = 8 days

This means if the family gives up 2 days of probable illness, they can still enjoy their vacation.

V= 2 days

5 0
3 years ago
An aging of Lily Company’s accounts receivable as of December 31 revealed the following. Amount % Uncollectible Current $20,000
lana66690 [7]

Answer:

What is BAD DEBT EXPENSE for THIS year?

4000

Explanation:

Aging    

Current          20000 2% 400

1-30                  50000 4% 2000

31-60         30000 7% 2100

Over 60         10000 25% 2500

   

                            7000

Allowance bad debts   3000

Expense                    4000

4 0
3 years ago
Customers are central to the principles of convergence. they should not be viewed as ______ viewers of content but ______ users
zvonat [6]

Customers are central to the principles of convergence. They should not be viewed as passive viewers of content but active users that play a central role in your narrative.

In order to create experiences that strengthen the customer's relationship with the brand, three powerful forces—media, technology, and creativity—come together through convergence. A customer-centric mindset must be adopted, and the entire organization must become responsive to the customer journey. Strategies must be supported by evidence from actual customer behavior rather than arbitrary gut instinct. It should be determined by that data where, when, and how to serve customers. Consumers must be involved in brand messaging through social platforms and ecosystems. The organization will always need to be modified for convergence. Testing, learning, constructing, and destroying are ongoing processes.

Learn more about convergence here:

brainly.com/question/15213854

#SPJ4

6 0
2 years ago
Market size and growth of the total U.S. beer market was estimated to be around $106 billion. The total economic impact of the b
RUDIKE [14]

Answer:false

Explanation:

The current gdp of us is estimated to about $21427.1 billion.

So if beer market is estimated to be $106 billion, the percentage is ($106/$21427.1)*100

= 0.004947*100

=0.4947%

0.497% is not up to 2%

6 0
3 years ago
Other questions:
  • One way the U.S. Department of Commerce helps potential exporters is by providing export specialists who act as the export marke
    12·1 answer
  • In the product development process, what takes place between concept testing and market testing? Multiple Choice securing financ
    12·1 answer
  • Match the below mention description with given terms. If there is no match then write "No match"
    13·1 answer
  • Jayda started a corporation that creates software products for clients. Which statement correctly reflects Jayda’s role in the c
    7·1 answer
  • Which of the following best describes the concept of laissez-faire?
    5·1 answer
  • What type of market entry strategy do you recommend for Burger Time?
    7·1 answer
  • GM crops have raised issues among communities in which they are produced. Which of the following are concerns raised by the publ
    7·1 answer
  • When a business is worth more if its assets are sold than if it continues to operate, then the business is liquidated, and the p
    9·1 answer
  • How would non repayment of loan affect the economy of the country?​
    15·1 answer
  • The concept that people should pay taxes based on the benefits they receive from government services is called?.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!