Question: Python3 (2) Output the human years for the animal. Human years for a cat is their age multiplied by 4 plus 15. If the cat

Python3

(2) Output the human years for the animal. Human years for a cat is their age multiplied by 4 plus 15. If the cat is a year old then their human equivalent is 19 years. If they are 5 years old then they are 35 in human years. (3 pts) Ex:

How old is your pet? 5 What type of animal is your pet? Cat Your Cat is 5 year(s) old. That is 35 in human years. 

(3) If the type of animal is a Dog, then have ask the user for the size of the dog. (2 pts)

How old is your pet? 5 What type of animal is your pet? Dog What size of dog do you have? Small Your Small Dog is 5 year(s) old. 

(4) Calculate the human age for the different dog sizes (6 pts) The human age for a Small dog is 4 times the age plus 20 The human age for a Medium dog is 6 times the age plus 15 The human age for a Large dog is 9 times the age plus 4 Ex:

How old is your pet? 5 What type of animal is your pet? Dog What size of dog do you have? Small Your Small Dog is 5 year(s) old. That is 40 in human years. 

Ex2:

How old is your pet? 5 What type of animal is your pet? Dog What size of dog do you have? Large Your Large Dog is 5 year(s) old. That is 49 in human years. 

(5) If they don't enter cat or dog warn the user (1 pt)

How old is your pet? 5 What type of animal is your pet? Turtle I'm sorry I don't know what a Turtle is. 

(6) If they don't enter a valid size for a dog. Warn the user (1 pt)

How old is your pet? 5 What type of animal is your pet? Dog What size of dog do you have? Petite I'm sorry I don't know what a Petite Dog is. 

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!