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

Questions Cloud

Design a comprehensive unit plan : Design a comprehensive unit plan based on the goals identified for Maria. Describe the important classroom factors and student factors.
Is it now efficient to buy the lock : Suppose that the probability of theft without a lock is .25, and the probability with a lock is .05. If the value of the bike is $200, and the cost of the lock
Web portal features and elements : Discuss how the web portal features and elements will help you to advance your e-business.
Objects in the product and stores the data : After make the class, need another a main() function that creates three objects in the product and stores the following data.
Difference between tort law and crime : CED 6110: Law and Economics - In your opinion, what is the economic rationale, if any, for enhanced penalties for hate crimes
Enter the last usable host on the network : 1. Enter the last usable host on the network of which the host 74.10.198.244/26 is a part.
7 boot process and windows 10 boot process : Is there a difference between windows 7 boot process and windows 10 boot process or they are the same
Provide an example of proper normalization : Provide an example of proper normalization and one for poor normalization. Include SQL operations that would be more/less efficient for your examples.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Calculate the closing cost

Let's calculate the Closing Cost (in column M) for ALL properties. It is determined based on the Style of the property and is summarized in the look-up table in R24:T26

  Consider a bluetooth scatternet

Consider a Bluetooth scatternet consisting of 2 piconets. What is the probability of a collision between packets of two piconets?

  Describing flaws in computer screens

Please help me with this stats homework. Big Bob's Computer Company has collected the data below describing flaws in computer screens

  Bubble sorting algorithm

The solution must work for any arbitrarily large file ( i.e. the number of city-temperature records must not be hard coded in the algorithm).

  Firm profit maximization problem

Consider a numerical example for the firm's profit maximization problem. Suppose that the firm's production function is y=ln(K) +ln(N) . The firm's initial capital is K= 1.5. The current period wage rate is w= 0.1, the future period wage rate is w..

  At what t-value is this function discontinuous

If the person who turned on the power supply left and came back hours later, what would he or she measure the current in the circuit to be?

  How many of these movies were pg-rated comedies

An editorial about the movies noted, "More than three-quarters of the movies made today can be seen only by patrons 13 years old or older." Does this table support that assertion? Explain.

  Price elasticity of demand

Sweetums Candy Co is a monopolist in suburban Pawnee. Given that the price elasticity of demand is currently -1.25 and the markup

  What is a class

What is a class? What is an object? what are the steps to create an object?

  Local college has tasked you to develop a database

Suppose a local college has tasked you to develop a database that will keep track of students and the courses that they have taken. In addition to tracking the students and courses, the client wants the database to keep track of the instructors..

  Vulnerability testing of key and strategic government

You are a new IT security professional for a small police department. At first you did not see your agency as being a large target for attacks. However, the city recently appointed a new and very controversial police chief.

  What are the earnings before interest and taxes

The tax rate is 20 percent. Sales are $2,400 and depreciation is $140. What are the earnings before interest and taxes?

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