Question
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
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.
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 78Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started