Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

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

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Digital Systems Design Using Verilog

Authors: Charles Roth, Lizy K. John, Byeong Kil Lee

1st edition

1285051076, 978-1285051079

More Books

Students also viewed these Programming questions

Question

What favors the formation of continuous (dense) cleavage?

Answered: 1 week ago