Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started