Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Overview Our program will use a vector of structs. In some color schemes, a colo

by | Jun 17, 2022 | C# | 0 comments

GET HELP WITH YOUR ESSAY

If you need assistance with writing your essay, our professional Essay Writing Service is here to help!

DISCOUNT CODE FIRST25

ORDER THIS OR A SIMILAR PAPER NOW

Overview
Our program will use a vector of structs. In some color schemes, a color can be described by the intensity of blue, green, and red hues. The hues have a range of 0-255 and are commonly abbreviated R/G/B for red, green, and blue.
Program Requirements
First, carefully review the Coding Conventions and Requirements document in Canvas/Housekeeping. You will need to follow these conventions exactly.
Write a struct named “Color” that will store r/g/b values for a color.
Generate a random number between 5-50, and this number will be the number of colors that we push into the vector. Run a loop that iterates that many times to create a temporary struct, and then push it into the vector. Remember, to create a struct, you’ll have to define r/g/b values for that color; use random values 0-255 for this. Also remember, once you’ve generated random color values for r/g/b, you can initialize a struct this way: Color tempColor = {r, g, b};
Sample Output
At the end of your program, output a formatted table with the Color# and values for R/G/B as shown below. Note that the column values are right-justified, so ensure you use cout manipulators to achieve this right justification.
Color# R value G value B value
—— ——- ——- ——-
1 221 239 74
2 48 138 136
3 222 152 35
4 138 176 222
5 100 208 253
6 214 32 247
7 195 23 223

GET HELP WITH YOUR ESSAY

If you need assistance with writing your essay, our professional Essay Writing Service is here to help!

DISCOUNT CODE FIRST25

ORDER THIS OR A SIMILAR PAPER NOW

Recent Assignments

How It Works

b

Tell us about your homework assignment.

~

Securely pay for your academic paper

j

Paper gets assigned to an expert tutor

Receive the complete paper via email

Team up With Your Own Writing Expert Now

Stuck with overwhelming assignments? We will take care of all your writing tasks.