Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use python and the code that is included to make the new project, please let it be compatible with the code that was given.

Please use python and the code that is included to make the new project, please let it be compatible with the code that was given.
To extend the inventory management system by adding data persistence, allowing CRUD operations to be
preserved in a text file.
Instructions
Create a Data Operations class that handles reading from and writing to a text file. This class should include
methods corresponding to the CRUD operations.
ReadAlltems This method returns a list of objects taken from the text file.
Deleteltem (integer). Given an id number, this method removes an item from the inventory and saves the
updated inventory to the text file. No return values are necessary.
Update (item). Given an object, this method updates the properties of an item. The updated inventory is
saved to the text file. The id number of the provided number is used to identify which inventory item is
updated. No return values are necessary.
Search (string). Given a string, this method searches the inventory for items whose name contains a partial
match to the search term. The method returns list of items.
Add (item). Given a new instance of an object, this method adds the item to the inventory list and saves the
updates inventory to the text file. The method should perform a calculation to automatically create a unique
id number for the object. No return value is necessary.
Integrate the Data Operations class with the menu system.
The user interface (text and menu choices) does not change from the previous milestone.
The program should use text file to store all items in the inventory. The data is stored in the file using a
character delimiter such as a comma or pipe character to separate values.
The initial state of the application inventory loads from a text file.
One instance of the object should be stored on each line of the text file. See the Snowman manager
application for an example of a file format.
Changes made through the menu actions are saved to the file
Ensure data consistency is maintained between the application state and the text file.
.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions

Question

Knowledge of Microsoft Office essential.

Answered: 1 week ago

Question

Discuss the techniques of sales forecasting.

Answered: 1 week ago

Question

Write short notes on Marketing mix.

Answered: 1 week ago

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago