The ASCII Art Image Editor

 

 

ASCII Art is a drawing technique comprised only of characters. You have been given two ASCII art files (spock.txt and at-at.txt) but there are millions more examples available on the internet.
You are also given a complete program that can execute ASCII art “transformations”. Currently, only one transformation is included in the program (known as the “grow” transformation).
You are to implement, and incorporate, two additional transformations: “shrink” and “flip”.
Shrink should operate by incorporating every 4th “pixel” in the resulting image. An example is shown below.

Flip should operate by flipping the image along its horizontal axis. An example is shown below:

In the provided program, there is a very specific architecture currently in place. It involves polymorphism using pure-virtual functions. In your solution, you should adhere to the provided architecture.

Sample Solution

The ASCII Art Image Editor (Program 6) ASCII Art is a drawing method that solely uses characters. You’ve been given two ASCII art files (spock.txt and at-at.txt), but there are thousands more on the internet. You’ll also receive a whole application that can perform ASCII art “transformations.” Currently, the program only includes one transformation (known as the “grow” transformation). Two more transformations must be built and incorporated: “shrink” and “flip.” Every fourth “pixel” in the generated image should be incorporated by shrink. Below is an illustration. 0 P E F A I J K I K M N The image should be flipped along its horizontal axis when using Flip.

 

inker is a cognitive psychologist. Therefore, it is only fair to say he believes in cognitive science and that cognitive science is proving to be very successful in all fields. Pinker view is that cognitive science can thoroughly understand acesss-conciousness. Basically, he thinks of it as a system; one that can successfully process information while limiting the access of information given for each specific task. Each task will perform its own job and carry out its duties, while serving as a helping hand to other tasks. This means a little bit of information will be shared with others in order to run efficiently. But, the information that is being shared must be relevant to the task at hand. Nonetheless, when intelligence comes to the table, all parts and tasks of the brain need to be grouped as a whole. This whole will serve as one huge taskforce in order to create a game plan and establish the action that will be taken. These tasks that consist of tiny breadcrumbs of information, which is relevant and that will serve as this force make up what is called our individual conscious life. Pinker establishes four functions that make up this operating system which are restriction of sensory information, the spotlight of attention, emotions, and the will. All the information is processed through these senses. For example, we hear words, but not phonemes when people are talking. Additionally, the system is capable of directing attention from one thing to the next in regards to our senses. Furthermore, emotions serve as a huge role in when creating a game plan or strategy. Our emotions stir the direction in which our attention flows. For example, you are in an car crash and you hear your baby sister cry for help. The cry for help from a loved one is the focus of one’s attention. And lastly, our will is what displays our manpower to go through with the action. It is what unleashes the handcuffs before we act.

This question has been answered.

Get Answer
WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
👋 Hi, Welcome to Compliant Papers.