Write a Python program to manage the inventory of an electronics store with 8 different gadgets. The program should: i) Prompt the user to input the current quantity of each gadget i stock. Apply a 2D list to store the quantities. ii) Identify which gadget has the highest stock quantity. Apply a non-return value function, include a parameter list if necessary. iii) Identify which gadget has the lowest stock quantity. Apply a non-return value function, include a parameter list if necessary. iv) Calculate the average stock quantity for all gadgets and display it. Apply a return value function, include a parameter list if necessary. v) Determine whether each gadget is trending or needs marketing boost by comparing its quantity to the average stock quantity. If a gadget's quantity is greater han or equal to the average, then it's trending; otherwise, it needs a marketing boost. Requirements: Apply a 2D list. Use functions for better modularization. Display the results clearly for each gadget. Sample Output: Enter quantities for - Gadget 1: 120 Gadget 2: 90 Gadget 3: 150 Gadget 4: 80 Gadget 5: 110 Gadget 6: 100 Gadget 7: 130 Gadget 8: 95 Highest Stock: Gadget 3 [150 units] Lowest Stock: Gadget 4 [80 units] Average Stock: 108.75 units Gadget 1: Needs marketing boost Gadget 2: Needs marketing boost Gadget 3: Trending Gadget 4: Needs marketing boost Gadget 5: Needs marketing boost Gadget 6: Needs marketing boost Gadget 7: Trending Gadget 8: Needs marketing boost.
Write a Python program to manage the inventory of an electronics store with 8 different gadgets. The program should: i) Prompt the user to input the current quantity of each gadget i stock. Apply a 2D list to store the quantities. ii) Identify which gadget has the highest stock quantity. Apply a non-return value function, include a parameter list if necessary. iii) Identify which gadget has the lowest stock quantity. Apply a non-return value function, include a parameter list if necessary. iv) Calculate the average stock quantity for all gadgets and display it. Apply a return value function, include a parameter list if necessary. v) Determine whether each gadget is trending or needs marketing boost by comparing its quantity to the average stock quantity. If a gadget's quantity is greater han or equal to the average, then it's trending; otherwise, it needs a marketing boost. Requirements: Apply a 2D list. Use functions for better modularization. Display the results clearly for each gadget. Sample Output: Enter quantities for - Gadget 1: 120 Gadget 2: 90 Gadget 3: 150 Gadget 4: 80 Gadget 5: 110 Gadget 6: 100 Gadget 7: 130 Gadget 8: 95 Highest Stock: Gadget 3 [150 units] Lowest Stock: Gadget 4 [80 units] Average Stock: 108.75 units Gadget 1: Needs marketing boost Gadget 2: Needs marketing boost Gadget 3: Trending Gadget 4: Needs marketing boost Gadget 5: Needs marketing boost Gadget 6: Needs marketing boost Gadget 7: Trending Gadget 8: Needs marketing boost.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 3 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY