Assignment 2 – Enhanced ASCII Art

Maximum Points = 50

 The purpose of this lab is to continue your study of computer programming and algorithms through the Python programming language. In this lab you will use several new features including – variables, reading input, and using the while loop to repeat operations.

 

Write a program that displays a picture using ASCII Art [“ASCII art is a graphic design technique that uses computers for presentation and consists of pictures pieced together from the 95 printable (from a total of 128) characters defined by the ASCII Standard”[1]].

 

You can find some examples at http://www.google.com/search?q=ascii+art&hl=en&client=firefox-a&hs=KH9&rls=org.mozilla:en-US:official&prmd=ivns&tbm=isch&tbo=u&source=univ&sa=X&ei=_VhHTuSLN8i_tgetjtXZBQ&ved=0CDwQsAQ&biw=1680&bih=919

 

You should start with the Hello World program as your template. Be creative and design and code a program that displays a picture of your choice. Your program will use the print function to print each line of the artwork. Your picture must include your name (as a signature) and a title.

 

Your program must have these additional features:

  1. Ask the user for his/her name and embed the name in the ASCII Art
  2. Include multiple lines in the picture that are repeated multiple times using a while loop
  3. Ask the user if he/she wishes to redisplay the picture. Use a while loop to allow the user to continue to display the picture until the user tells the program to stop.

 

Make sure that your program uses proper indentation and complete documentation. See http://csc.columbusstate.edu/summers/NOTES/1301/style.htm for guidelines.

The program heading should occur at the top of the program and should include:

               #============================
               # PROGRAM SPECIFICATIONS
               # NARRATIVE DESCRIPTION:
                #
                #  @author (your name) 
               #  @version(date)
               #==============================

 

 

 (Due before 8 am on Wednesday, February 1, 2012) Submit your .py file containing your program and your timesheet documenting your time to the dropbox in WebCT..

 Grades are determined using the following scale:

Grading Rubric  (Word document)



[1] http://en.wikipedia.org/wiki/ASCII_art