Question: 3. Write a Python program to calculate a dog's age in dog's years. Note: For the first two years, a dog year is equal to

 3. Write a Python program to calculate a dog's age in

3. Write a Python program to calculate a dog's age in dog's years. Note: For the first two years, a dog year is equal to 10.5 human years. After that, each dog year equals 4 human years. How old is my dog in human years? Size of dog Age of dog 1 2 3 4 5 6 7 8 9 10 11 12 Small Medium Large (9 kilos or less ) (from 9 - 25 kilos) (more than 25 kilos) Age in human years 15 15 15 24 24 24 28 28 28 32 32 32 36 36 36 40 42 45 44 47 50 48 51 55 52 50 61 56 60 66 60 65 72 64 69 77 Exercises: a) Write an algorithm and a program to compute the dogs age in dogs years. b) Write all possible test cases

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!