Objects in the product and stores the data

Assignment Help Basic Computer Science
Reference no: EM132184213

1: Product Class

Need to make a class called product that contains data on an item in retail store. The class should store the following information in attributes of data: product identification, item description, inventory units and price. To require all four attributes for write the init method. And need a str for debugging output as well.

After make the class, need another a main() function that creates three objects in the product and stores the following data. Required use __str__method and have to make sure that data is properly stored.

ID Description Quantity Price

1 Jacket 12 59.95

2 Designer Jeans 40 34.95

3 Shirt 20 24.95

2: Inventory Module

Need an Inventory module by moving the Product Class definition to another file that called inventory.py. Add three __doc__ strings: one that describe the inventory module that include (my name and the date here), one that's describing the Product class.

After that rename the file with the main() function to test inventory.py

*Add an import at the top of the file to read the Product class definition.

And add calls to test the three __doc__ strings.

Finally, need to test the program that make sure it still works.

Reference no: EM132184213

An important difference between the i/o requirements

1. An important difference between the I/O requirements of keyboards and disk drives is that a. keyboard input is fast while disk drives are slow. b. keyboards require constan

Define collaboration and social media

While planning for a new project, a young developer mentions that she used Facebook as a collaborative group space for developing her senior project. She tells you that it w

Floating point representation

Assuming that you are required to make an 8 bit floating point representation, with a 3 bit exponent using excess-3 notation and a 4 bit mantissa using normalized notation.

What is its times-interest-earned

Thomson Trucking has $13 billion in assets, and its tax ratio is 40%. Its basic earning power (BEP) ratio is 10%, and its return on assets (ROA) is 3%. What is its times-int

Detection software automatically analyzes network traffic

What detection software automatically analyzes all network traffic. Assesses system vulnerabilities, recognizess any unauthorized access (intrusions).

These function prototypes lack parameters

These function prototypes lack parameters; add whatever parameters you feel are necessary so that the program works without global variables. The program's output should ref

Independent research on encryption

What are some of the latest advances in encryption technologies? Conduct some independent research on encryption using scholarly resources, then write a two- to three-page A

Write a recursive program spaces

Write a recursive program spaces(s) that takes as input a string s and returns the number of blank spaces (that is, ' ') the string s contains. You may not use string function

Reviews

Write a Review

 
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd