Question: make a program to track availability of wares for a business. Businesses should be represented by a class, containing information about name of the

make a program to track availability of wares for a business.
Businesses should be represented by a class, containing information about
• name of the business;
• which wares the business sells;
• how many items left of each ware;
• sell price of each ware;
• current deals the business has available (maybe certain wares are 50 % off);
• money available.
The class should have methods to
• restock wares (decreasing money available, but increasing amount of a
ware);
• check price of wares (taking into account any current deals);
• check availability of wares;
• sell wares (decreasing the amount of a ware, but increasing money earned);
• add and remove current deals.
The wares to sell should also be a class containing information about
• name of ware;
• buy price;
Set up an interface (not graphical) for a business to use to change their stock,
sell wares, and check their balance. The interface should also let a user create
a new business or register a new type of item. Information about businesses
available, their stock, and their balance should be saved between sessions.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a Python program that implements the described functionality for tracking availability of wares for a business import json class Ware def initself name buyprice selfname name selfbuyprice buypri... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!