Question: write a python code In Prac 3 you wrote a program to calculate a dog's age in dog years. Rewrite this program using a function

write a python code
write a python code In Prac 3 you wrote a program to

In Prac 3 you wrote a program to calculate a dog's age in dog years. Rewrite this program using a function for the conversion. Write a main function that repeatedly asks the user for an age in human years, then displays it in dog years until the user enters a negative number. Don't do any error checking on this age. Here's the calculation part already: if human_years 2: dog_years - human_years - 10.5 else: dog_years = 21 + 4 (human_years - 2)

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!