Question: Program Specifications Pictures made from keyboard characters are known as ASCII art and can be quite intricate. ASCII Art Archive provides examples. Write a program
Program Specifications Pictures made from keyboard characters are known as ASCII art and can be quite intricate. ASCII Art Archive provides examples. Write a program that reads a cat name and outputs the drawing using several print statements.
Note: a backslash in a string acts as an escape character, such as with a newline
So to print a single backslash, include two backslashes next to each other. Ex: The following prints a single backslash: print
Note: This program is designed for incremental development. Complete each step and submit for grading before starting the next step. Only a portion of tests pass after each step to confirm progress.
Ex: If the input is:
Mittens
the output is:
o o
~~
My cat Mittens
Step pts Write two output statements for the first two lines of the figure. Hint: The first line starts with blank spaces before the first slash symbol. Submit for grading to confirm test passes.
Step pts Write two more output statements for the next two lines. Hint: The third line starts a slash symbol. Submit for grading to confirm tests pass.
Step pts Write three more output statements to complete the figure without the text label. Submit for grading to confirm tests pass.
Step pts Read from input the cat name. Output the cat name in the format shown. Submit for grading to confirm all tests pass.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
