Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 file, OfficeSupplies.csv.
This is the output in python please
++ Merge & Center $% fz OrderDate lorderDate Region Units Unit Price Item Pencil Pencil 1.29 1.29 1.29 1.29 1.99 1.99 1.99 1.99 1.99 1.99 2.99 4.99 4.99 4.99 4.99 4.99 4.99 4.99 4.99 4.99 4.99 4-Jul-14 East 12-Jul-14 East 21-Jul-14 Central 29-Jul-14 East Richard Nick Morgan Pencil Susan Matthew Binder Richard Pen 4 Pencil 67-Aug-14 Central 715-Aug-14 East 810-Sep-14 Central 918-Sep-14 East 10 27-Sep-14 West 11 5-Oct-14 North 12 14-Oct-14 West 13 22-Oct-14 East 14 31-Oct-14 Central 15 8-Nov-14 East 16 17-Nov-14 Central 17 25-Nov-14 North 18 4-Dec-14 Central 19 12-Dec-14 Central 20 21-Dec-14 South 21 29-Dec-14 East Pencil Richard Pencil James Morgan Pencil Thomas Pencil Richard Rachel Susan Pencil Binder Binder Binder Binder Pen Pen Set Pen Set Pen Set Pencil Pencil Pencil 4 Alex Smith Rachel Susan Richard 6-Jan-15 East 23 15-Jan-15 Central 24 23-Jan-15 Central 25 1-Feb-15 Central 26 9-Feb-15 Central 27 18-Feb-15 East 28 26-Feb-15 Central 29 7-Mar-15 West 30 15-Mar-15 West 31 24-Mar-15 Central Matthew Pencil Smith Binder Binder Binder Binder 8.99 8.99 8.99 8.99 8.99 12.49 Richard 64 James James Pen Set Binder
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started