Diablo Valley College Color C++ Code Programming Project Below are the comments you must add to the beginning of each of the programs you hand in.
//*****************
//Program Name: Program 1 (Test Program)
//Author: Your Name
//IDE Used: Eclipse
//Program description: one-sentence summary of what your program does
//*****************
Below is the function header to include just above all function definitions (not function prototypes, but definitions):
//*****************
//Function name:
//Purpose: one-sentence summary of what this function does
//List of parameters: list your function’s parameters
//Returns: state the return variable
//Return type: data type of the returned value
//*****************
Write a program that will create and store a vector of structs.
Generally, any color can be described the intensity of red, green, and blue hues respectively. These hues are valued in the range of 0-255, and are abbreviated R/G/B values for red/green/blue.
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. With that random number, use a loop 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};
At the end of your program, output a 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
Science is the pursuit and application of knowledge and understanding of the natural and social…
Clearly stating the definition, the values, the meaning of such values and the type of…
All answered must be typed using Times New Roman (size 12, double-spaced) font. No pictures…
All answered must be typed using Times New Roman (size 12, double-spaced) font. No pictures…
https://www.npr.org/sections/ed/2018/04/25/605092520/high-paying-trade-jobs-sit-empty-while-high-school-grads-line-up-for-university Click on the link above. Read the entire link and answer the questions below…
All answered must be typed using Times New Roman (size 12, double-spaced) font. No pictures…