Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

Students also viewed these Databases questions

Question

Use brochures actively.

Answered: 1 week ago