Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a function, sortedSales(ifile) which takes the OfficeSupplies.csv file and uses a dictionar... Write a function, sortedSales(ifile) which takes the OfficeSupplies.csv file and uses a

Write a function, sortedSales(ifile) which takes the OfficeSupplies.csv file and uses a dictionar... Write a function, sortedSales(ifile) which takes the OfficeSupplies.csv file and uses a dictionary to calculate and store the total sales of each sales person. This function prints the salesperson and their associated sales in order of highest value of sales to lowest value of sales with the salespersons name.

This is the output and in python please

image text in transcribed

This is the ifile

image text in transcribed

>>>sortSalesC'OfficeSupplies.csv) Alex Rachel : $3,191.67 Bill Richard: $1,721.15 James Nick Morgan : $1,156.01 Matthew$985.85 Smith Rich Thomas Susan : $4,206.38 : $2,476.90 : $1,411.56 : $1,157.49 : 730.76 :319.76 307.37 : 262.98 >>>sortSalesC'OfficeSupplies.csv) Alex Rachel : $3,191.67 Bill Richard: $1,721.15 James Nick Morgan : $1,156.01 Matthew$985.85 Smith Rich Thomas Susan : $4,206.38 : $2,476.90 : $1,411.56 : $1,157.49 : 730.76 :319.76 307.37 : 262.98

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students also viewed these Databases questions

Question

Describe techniques for managing fixed assets.

Answered: 1 week ago

Question

Explain the factors influencing wage and salary administration.

Answered: 1 week ago

Question

Examine various types of executive compensation plans.

Answered: 1 week ago

Question

1. What is the meaning and definition of banks ?

Answered: 1 week ago

Question

What is the preferred personality?

Answered: 1 week ago

Question

What is the relationship between humans?

Answered: 1 week ago