Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 2 : Programming The retail company Grocery 4 ALL demands a new booking system that keeps track of their inventory, revenue, and costs regarding

Exercise 2: Programming
The retail company Grocery4ALL demands a new booking system that keeps track of their inventory,
revenue, and costs regarding their business operations.
Now its your task to provide a system that is capable of handling the following tasks:
Create an inventory of products entailing ID, name, quantity, purchasing price, and selling price
(10 different products should be a good starting point).
Show Inventory: Display the inventory containing all products.
New products: Add new products to the inventory.
Selling products: Sell products from the current inventory.
Restock products: Increase the stock of current products.
Show the last transactions.
Calculate the total revenue, total value of the inventory, total costs, and total profit.
Interaction:
Your program should ask the user what to do next. So whether a new product should be added,
a given product should be restocked, or sold, or calculations should be provided.
Regarding calculations you should be able to choose between the total revenue, the total value
of the inventory, the total profit, or the total costs.
Also the inventory value should be able to be displayed for specific product IDs.
Adding products, restocking products, and selling products are considered transactions.
Costs do occur whenever a transaction (add product, reorder product) is processed.
Revenue is generated whenever a product is sold.
Revenue & costs start with a value of 0 and are updated with every transaction.
The program shuts down gracefully without any error messages. Error handling is expected.
For this task you can use the following languages: PythonPlease attach all relevant code and files as a zip directory to your MMT application.
Please annotate each line of code with a comment explaining its purpose. Each method should have
documentation on what it does, how it works, and what parameters are expected. The program
should be standalone and executable from a standard computer with a minimal amount of
dependencies (Preferably it can be run from one single data file or .exe file). The interaction can be
via a graphical user interface or a terminal. The selection of the interaction method does not
influence our evaluation of your code

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

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

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions