ASCII Art Program

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 from 1963 and ASCII compliant character sets with proprietary extended characters. - https://en.wikipedia.org/wiki/ASCII_art

This assignment is intended to see if youve learned the basic concepts talked about thus far in the lectures.

This assignment is the starting foundation for an ASCII art drawing program.

Program

Your program allows a user to draw an ASCII art image

Your program must provide 2 basic drawing features:

  • Clear/Fill
  • Set point

Your program must provide a function to draw/show the art.

When the program is executed:

1. Create an array to represent a 16 width by 9 height character image, initialize it whatever character(s) you wish

2. Set a default brush character

3. Provide a menu of functions for the user to select from:

  • D: Draw Image
    • This will render the image to the console
  • B: Set Brush
    • This will ask the user what character will be used when drawing
  • F: Fill image
    • This will fill the image with the brush character
    • Set all chars in the image to the brush
  • P: Set Point
    • This will set a specific location in the image to the brush character
    • Set the char at the entered co-ordinates to the brush
    • Must ensure the point is in the array
      can escape back to menu or ask in loop for correct input
  • S: Save Image
    • Output the image to the file image.txt
    • File I/O was covered in lecture L05.
      Hint: you can use similar code as needed for draw image.
  • Q: Quit
    • Exits the program
      Hint: set a boolean that makes the menu loop stop.

4. The program will loop asking the user to select a menu choice and perform actions until they choose to quit.

5. The user selects an action by entering the letter specified in the list above (D.B,F,P,S,Q) lowercase letters should be useable as well as uppercase.

You can use the function toupper() or tolower()
http://www.cplusplus.com/reference/cctype/toupper/
or check explicitly for both cases

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.