Question: This file will be the main module that holds the main program. The purpose of this file is to test the implementation of the class.
This file will be the main module that holds the main program. The purpose of this file is to test the implementation of the class.
In the main module, write lines of code that creates three InventoryItem objects with the following information:
Item Name Item Count Unit Cost Category
Python for All Book
Barbie DVD
Uno Game
HINTS:
o The program will be using assignment statements.
o Each assignment statement will reference the class.
o The values from the table should be passed in when each object is created so the three objects represent the data from the table.
Print the objects that were created by printing the objects directly. That means to not explicitly call str but to just print the object.
After printing the objects from the table, create one additional InventoryItem object with no fixed data.
For this additional InventoryItem object, use the method you created to ask the user for the item's information.
After creating this object from the user input, print that object directly.
Sample output:
Python for All
Count: Cost:
Book
Barbie
Count: Cost:
DVD
Uno
Count: Cost:
Game
Enter the item name: Advanced Python
Enter the item count:
Enter the unit cost:
Enter the category: Book
Advanced Python
Count: Cost:
Book
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
