CSE 1284 Intro to Computer Programming Fall 2020
Activity 8
Instructions
In this activity, we are going to play around with the ASCII Art module that is provided on Canvas. In that file, we have already 3 functions:
· ascii_art_rectangle
· ascii_art_triangle
· ascii_art_scary_face
Write 2 new function definitions that produce some kind of ascii art of your choosing. These functions should take in at least 1 parameter each that is used to alter the output of the ASCII art in some way (for example, the symbol_eyes parameter in ascii_scary_face is used to change the look of the scary face’s eyes). Be creative. Some examples of ascii art include:
· ASCII Fish - Outputs a fish using various symbols. Use parameters to specify the outline of the fish as well as the eyes.
· ASCII DogFace – Outputs a dog face using various symbols. Use parameters to change the look of the ears on each call.
· ASCII Star – Outputs a star using various symbols. Use parameters to change the outline of the star.
Note: Use only one of these ideas. Come up with at least one on your own.
After you are finished with your new functions, go to the driver file and write 3 calls to each function (6 total) to demonstrate how the functions execute. Make sure to pass different argument values to each function call to demonstrate how the input arguments affect the output and execution of the function.
Ru
ic
Question
Criteria
Point Total: 50
Function 1
The function creates some kind of ASCII art with some kind of variability to the output (i.e. uses parameters to change how the ascii art looks)
25
Function 2
The function creates some kind of ASCII art with some kind of variability to the output (i.e. uses parameters to change how the ascii art looks)
25
Penalty
At least one function must be your own idea for ASCII art.
-15 pts if not
Submission Materials
1. netID_activity8_module.py - A .py file containing the modified module file containing your new functions.
2. netID_activity8_driver.py - A .py file containing the modified driver file containing the function calls.