Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions