Question: I need help with my programming assignment. Using if-else blocks, loops. The C++ Picture App is here to draw color pictures for your enjoyment. We

I need help with my programming assignment.

Using if-else blocks, loops.

The C++ Picture App is here to draw color pictures for your enjoyment. We will be using the Windows Text Colors:

Number

Text Color

Number

Text Color

0

Black

8

Bright Black

1

Blue

9

Bright Blue

2

Green

10

Bright Green

3

Cyan

11

Bright Cyan

4

Red

12

Bright Red

5

Purple

13

Bright Purple

6

Yellow

14

Bright Yellow

7

White

15

Bright White

Write a C++ program that asks the user to select a color and a shape to draw. In main, begin by declaring variables and displaying the class header, and cout an explanation of the program. You will need two constants for the maximum color number and for the maximum picture number.

At this point, create a handle to the standard output device (the console) using:

HANDLEscreen = GetStdHandle(STD_OUTPUT_HANDLE);

You will also need to#include .

Open a do-while loop. This is the play loop. Provide a menu and ask the user to select a color for the drawing. There will be 6 colors, blue, green, cyan, red and purple. These will be selections 1-5. Selection 6 is to quit the drawing loop.

As long as the selection is not 6, present another menu and ask the user to select the picture to be drawn. There will be 3 pictures, a smiling face, a pyramid, and a picture of your choosing. Check the input validity of that answer, too.

Use a switch statement or if-else if structure to process the picture selection. Declare any variables you will use in the drawings up above the switch statement or if- else if structure. Be sure to adjust the colorChoice value so that you will be drawing with the bright version of the color. It shows up so much better! Each picture will be drawn using the color selected by the user. Each picture can be drawn using symbols of your choice.

When the user selects 6 for the color selection, drop out of the loop,

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!