Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

More Books

Students also viewed these Databases questions