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 2
COMP163
January 17,2024
Create a program that allows for the setup of the price of pets by caatigory.
1 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.
1
#inbox/QgrcJHsBpWmTCLVQgSCxQzGPBKHtrnbhKZL?projector=1&messagePartld=0.3
How many Canine would you like to enter: 2
What is the type of Canine: Pit
What is the price per Pit: 125
What is the type of Canine: Terrior
What is the price per Terrior: 90.4
How many Feline would you like to enter: 3
What is the type of Feline: Tabby
What is the price per Tabby: 40
What is the type of Feline: Mane coon
What is the price per Mane Coon: 2000
What is the type of Feline: Sphynx
What is the price per Sphynx: 3594.25
How many Reptile would you like to enter: 3
What is the type of Reptile: Corn
What is the price per Corn: 85
What is the type of Reptile: Rat
What is the price per Rat: 55.3
What is the type of Reptile: Boa
What is the price per Boa: 125.80
Populate inventory with the entered data
2 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
2
3
2
We offer the following pets
Canine :
Pit at a cost of $125.00.
Terrior at a cost of $90.40.
Feline :
Tabby at a cost of $40.00.
Mane coon at a cost of $2,000.00.
Sphynx at a cost of $3,594.25.
Reptile :
Corn at a cost of $85.00.
Rat at a cost of $55.30.
Boa at a cost of $125.80.
3 Hint
A lists and dictionaries can contain lists and dictionaries
dictionary in a dictionary
{'Canine': {'Bob': 18.0, 'Sally': 18.0, 'Fred': 19.0}, 'Feline': {'NCCU': 7000.0, 'NCAT': 15000.0
 Pet Store 2 COMP163 January 17,2024 Create a program that allows

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 Databases Questions!