Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please comment on tge work so i can understand,also,please get it rifgt this time around. llow these steps: - Code a Python program that will

Please comment on tge work so i can understand,also,please get it rifgt this time around. image text in transcribed
image text in transcribed
image text in transcribed
llow these steps: - Code a Python program that will read from the text file inventory.txt and perform the following on the data, to prepare for presentation to your managers: - Create a file named inventory.py, where a Shoe class should be defined. - In the Shoe class, create a function (read_data()) that will implement a try-except block for reading the following information from the file: - country, - code, - product, - cost, and - quantity. - Create at least 5 shoe objects and store these in a list. Add functionality to search products in the objects list by code. - Write code to determine the product with the lowest quantity, and restock it. - Write code to determine the product with the highest quantity and mark it up as being for sale. You will have noticed that in the original data, there are only five columns. Write a function, value_per_item(), to calculate the value (or total worth) of each item entered. (Please keep the formula for value in mind; value = cost quantity.) This function should then create a sixth column for each product, named value. - Represent the data from the objects list in a table format using Python's tabulate module, with the new value column added

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

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

Recommended Textbook for

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions

Question

What are the various methods of interviewing? Define each.

Answered: 1 week ago

Question

=+ how might this lead to faster growth in productivity?

Answered: 1 week ago