Answered step by step
Verified Expert Solution
Question
1 Approved Answer
python. question Write, test and document a Python program to solve each of the following problems. Note: While coding solutions for the problems given below,
python. question
Write, test and document a Python program to solve each of the following problems. Note: While coding solutions for the problems given below, keep in mind that you will also be marked on the following: efficient solution of the problem including sufficient descriptive comments in your program labelling for input and output program style - consistent formatting and indentation of program statements, meaningful variable names (identifiers) and the use of constants (constant identifiers), where appropriate Question 1 Given a person's name, their age, the name of their dog and their dog's age (in human years), display a picture, similar to the following, with the names displayed and the ages of both the person and the dog in "dog years printed at the bottom of the picture. Sample input (shown in blue) and output from the program is as follows: Please enter your name: Radha Please enter your age in human years: 38 Please enter your dog's name: Curly Please enter your dog's age in human years: 3 \/ 0_ / Radha 266 dog yrs Curly 21 dog yrs The picture/drawing portion is displayed using only the following characters: 0 Note: For this program, you may assume the old-fashioned, simple conversion of 1 human year is equivalent to 7 dog years, although the actual equivalency is much more complicated than this. Call the file containing your program petPicture.pyStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started