Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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.py

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

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions

Question

=+e. Storytelling present product in a story.

Answered: 1 week ago