Question: home / study / engineering / computer science / computer science questions and answers / create a smiley face in c#: create one array/list that

home / study / engineering / computer science / computer science questions and answers / create a smiley face in c#: create one array/list that is a series of numbers...0, 1, 2, 3, ...

Question: Create a smiley face in C#: Create one array/list that is a series of numbers...0, 1, 2, 3, etc. ...

Create a smiley face in C#:

Create one array/list that is a series of numbers...0, 1, 2, 3, etc.

There must be at least 3...one for the background, one for the face, and one for the eyes/mouth

This will be used for your ASCII Character Selection

Pseudo Example: if (array[i] == 2) { console.write = $; }

This array/list will be used to select the ASCII characters in the next array/list.

Create one array/list that is a series of ASCII Characters.!@#$%^&*, etc.

There must be at least 2...one for the face, and one for the eyes/mouth

This will be used for your smiley face details.

To help you with the smiley face creation, look at the below array. It will show you how to lay out the array so you can draw the face in the code easily.

 home / study / engineering / computer science / computer science

Create a loop that cycles through your number array/list.

Create a switch statement inside the loop that looks for the array numbers.

Based on the array/list number, print to the console an ASCII character

Pseudo Example: if (array[i] == 2) { console.write = $; }

0 1 2 3 4 7 8 0 123456 78 0 1 2 3 4 7 8 0 123456 78

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!