Question: Create a file named Lab 1 2 P 1 b . py . This file will be the main module that holds the main program.

Create a file named Lab12P1b.py. This file will be the main module that holds the main program.
Create three objects by asking the user for the item's information. You will need to ask whether the user wants to create a book, game, or DVD item.
Use the Sample Output as a guide for how you should be asking the user what they want to add to the inventory. You must use 1,2,3 as your input for this part of you will lose points.
The user may ask for these objects in any order and may not always ask for one of each.
Do not ask the user if they want to add more items. Consider using a list to hold the objects and using a for loop for asking for EXACTLY 3 times.
After creating these 3 objects, print the objects directly.
Sample output for Lab12P1b.py:
What item type (1-Book, 2-Game, 3-DVD)?1
Enter the item name: Of Mice and Men
Enter the item count: 12
Enter the unit cost: 3.40
What is the ISBN? 998877665544
ISBN must be a 13 digit number.
What is the ISBN? 9988776655443
What item type (1-Book, 2-Game, 3-DVD)?2
Enter the item name: Monopoly
Enter the item count: 17
Enter the unit cost: 10.00
What is the UPC? 1234567890123
UPC must be a 12 digit number.
What is the UPC? 123456789012
What item type (1-Book, 2-Game, 3-DVD)?3
Enter the item name: Bambi
Enter the item count: 8
Enter the unit cost: 5.95
What is the UPC? 098765432112
What is the genre of the DVD? Animation
Of Mice and Men
Count: 12, Cost: 3.40
Category: Book
ISBN: 9988776655443
Monopoly
Count: 17, Cost: 10.00
Category: Game
UPC: 123456789012
Bambi
Count: 8, Cost: 5.95
Category: Game
UPC: 098765432112
Genre: Animation

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!