Consider an ecommerce site, there are unlimited items and 3 categories (bread, biscuits, chips), the details...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Consider an ecommerce site, there are unlimited items and 3 categories (bread, biscuits, chips), the details of the items are saved as (item id, item_name, category, color, price, discount, month of purchase). Create a dictionary for the 10 items. Take values such that below questions can give output. a) Define a function that takes the category name from the user, and display the items of that category having red color in sorted order of the discount.(6 M) b) Define a function which creates a random basket of 3 items, one from cach category, selection is made on maximum discount. (6 M) c) Plot the bar chart showing the total purchase of each category month_wisc. (8 M) Consider an ecommerce site, there are unlimited items and 3 categories (bread, biscuits, chips), the details of the items are saved as (item id, item_name, category, color, price, discount, month of purchase). Create a dictionary for the 10 items. Take values such that below questions can give output. a) Define a function that takes the category name from the user, and display the items of that category having red color in sorted order of the discount.(6 M) b) Define a function which creates a random basket of 3 items, one from cach category, selection is made on maximum discount. (6 M) c) Plot the bar chart showing the total purchase of each category month_wisc. (8 M)
Expert Answer:
Answer rating: 100% (QA)
lets break down each part of your request a Define a function that takes the category name from the user and displays the items of that category with ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
A bond with face value $1,000 has a current yield of 6.5% and a coupon rate of 8.5%. a. If interest is paid annually, what is the bond's price?
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
On 1 June 1998, Alice bought a house in Derby for 45,000. - She occupied the house as her PPR until 1 May 2000 when she left to work in Exeter, living in rented accommodation. - She returned to the...
-
On November 19, 2014, Rex is granted a nonqualified stock option to purchase 100 shares of Tan Company. On that date, the stock is selling for $8 per share, and the option price is $9 per share. Rex...
-
Fill out the following chart to show the impact on the accounting equation from each transaction. iablities Stockholders' equity Increase Decrease Increase Decrease Increase Decrease Assets Date...
-
Advantage Advertising, Inc., engaged in the following business transactions during November of 2010: Advantage Advertising, Inc., uses the following accounts: Cash, Accounts Receivable, Supplies,...
-
Walmart Inc. is the worlds largest retailer. A large portion of the premises that the company occupies are leased. Its financial statements and disclosure notes revealed the following information:...
-
Let f'(x)= 2. f(x) = cos(3x+2)
-
John Fuji (birthdate June 6, 1981) moved from California to Washington in December 2018. His earnings and income tax withholding for 2019 for his job as a manager at a Washington apple-processing...
-
Hershey Office Supply, Inc. produces office supplies that are sold primarily to corporate users. Elizabeth Rigby, vice president of logistics, would like to move ahead on a project that was started...
-
Cullumber Company, a machinery dealer, leased a machine to Ivanhoe Corporation on January 1, 2025. The lease is for an 8-year period and requires equal annual payments of $30,840 at the beginning of...
-
There are four stations in a process: Station-1, Station-2, Station-3, and Station-4. They process a single product. The flow of the accepted and rejected products are shown in the process flow...
-
Groot Promotional Services uses a job order system for costing and billing promotional services for dance and ballet performances. Groot has four public relations specialists plus an office staff. At...
-
5. Maria is designing a series of stationary trays for holding papers and envelopes. Each tray starts as a rectangular sheet of metal from which identical squares are cut from the four corners. The...
-
Discuss how geometry, surface condition and material quality can have; a) A significant influence on the fatigue life of a cyclically stressed component. (5 marks) b) Explain the differences between...
-
A uniform circular disc of mass 1 kg and radius 1 meter is rotating with angular speed 2 rad/sec about axis through its center and perpendicular to its plane. Angular momentum of disc about a...
-
Diamond Walker sells homemade knit scarves for $25 each at local craft shows. Her contribution margin ratio is 60%. Currently, the craft show entrance fees cost Diamond $1,500 per year. The craft...
-
What base amount is used for horizontal analysis of both income statements and balance sheets? Give an example.
-
In the last chapter you created some queries for the Snick's Board Shop. Now Caitlin would like you to help her create some forms to view information from the database. Make the following changes for...
-
What information is provided in the investing activities portion of the cash budget?
-
Three brothers, Daniel, David and Derrick have been discussing their respective taxation affairs and how much they dislike paying tax. None of them are Scottish taxpayers. Daniel's income for tax...
-
Roseanne is a Scottish taxpayer. She starts trading on 1 July 2023 and prepares accounts for the 16 months to 31 October 2024. The adjusted trading profit for this period is 38,560. Her only other...
-
You are a trainee chartered certified accountant and your manager has asked you for your help with regard to a taxpayer who has made trading losses. Sean has been in self-employment since 2011, but...
Study smarter with the SolutionInn App