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

1 answer below »
needing help on coding assignment



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. Rubric 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.
Answered Same DayOct 24, 2021

Answer To: CSE 1284 Intro to Computer Programming Fall 2020 Activity 8 Instructions In this activity, we are...

Arun Shankar answered on Oct 24 2021
141 Votes
__MACOSX/._ASCII art solution
ASCII art solution/ascii_art_driver.py
import ascii_art_module
def
main():
ascii_art_module.ascii_rectangle(2, 4, "$")
ascii_art_module.ascii_rectangle(8, 9, "#")
ascii_art_module.ascii_rectangle(10, 10, "*")
ascii_art_module.ascii_triangle(2, "&")
ascii_art_module.ascii_triangle(4, "^")
ascii_art_module.ascii_triangle(8, "@")
ascii_art_module.ascii_triangle(5, "/")
ascii_art_module.ascii_scary_face("$", "^")
print()
ascii_art_module.ascii_scary_face("%", "@")
print()
ascii_art_module.ascii_scary_face(",", "%")
print()
ascii_art_module.drink(0) # change argument to 0 or 1, 2
ascii_art_module.bird(0) # change to 0, 1, 2, 3, 4, 5...
main()
__MACOSX/ASCII art solution/._ascii_art_driver.py
ASCII art...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here