Question: Pet Store 2 COMP 1 6 3 January 1 7 , 2 0 2 4 Create a program that allows for the setup of the
Pet Store
COMP
January
Create a program that allows for the setup of the price of pets by caatigory.
The Challenge
Create a list named "pets"
The elements of pets
Canine
Feline
Reptile
Create an empty dictionary named "inventory"
Display a header "Welcome to the Aggie Pet Store"
Welcome to the Aggie Pet Store
Prompt for number of pet types per category. Enter pet type and cost.
#inboxQgrcJHsBpWmTCLVQgSCxQzGPBKHtrnbhKZLprojector&messagePartld
How many Canine would you like to enter:
What is the type of Canine: Pit
What is the price per Pit:
What is the type of Canine: Terrior
What is the price per Terrior:
How many Feline would you like to enter:
What is the type of Feline: Tabby
What is the price per Tabby:
What is the type of Feline: Mane coon
What is the price per Mane Coon:
What is the type of Feline: Sphynx
What is the price per Sphynx:
How many Reptile would you like to enter:
What is the type of Reptile: Corn
What is the price per Corn:
What is the type of Reptile: Rat
What is the price per Rat:
What is the type of Reptile: Boa
What is the price per Boa:
Populate inventory with the entered data
Output
Display We offer the following pets"
Display each category as a header
Display tabbed each type of pet and price, for each category
Page
We offer the following pets
Canine :
Pit at a cost of $
Terrior at a cost of $
Feline :
Tabby at a cost of $
Mane coon at a cost of $
Sphynx at a cost of $
Reptile :
Corn at a cost of $
Rat at a cost of $
Boa at a cost of $
Hint
A lists and dictionaries can contain lists and dictionaries
dictionary in a dictionary
Canine: Bob: 'Sally': 'Fred': 'Feline': NCCU: 'NCAT':
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
