1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
natta225 [31]
3 years ago
15

Summary: Given integer values for red, green, and blue, subtract the gray from each value. Computers represent color by combinin

g the sub-colors red, green, and blue (rgb). Each sub-color's value can range from 0 to 255. Thus (255, 0, 0) is bright red, (130, 0, 130) is a medium purple, (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (In other words, equal amounts of red, green, blue yield gray). Given values for red, green, and blue, remove the gray part.Ex: If the input is 130 50 130, the output is: 80 0 80. Thus, find the smallest value, and then subtract it from all three values, thus removing the gray.
Engineering
2 answers:
serg [7]3 years ago
6 0

Answer:

Using C++, the program appears as follows

#include <iostream>

using namespace std;

int main() {

int r,g,b,small;

//input values

cin>>r>>g>>b;

//find the smallest value

if(r<g && r<b)

small=r;

else if(g<b)

small=g;

else

small=b;

//subtract smallest of the three values from rgb values hence removing gray

r=r-small;

g=g-small;

b=b-small;

cout<<r<<" "<<g<<" "<<b<<endl;

}

Sindrei [870]3 years ago
5 0

Answer:

Using C++, the program is as follows;

#include <iostream>

using namespace std;

int main() {

int r,g,b,small;

//input values

cin>>r>>g>>b;

//find the smallest value

if(r<g && r<b)

small=r;

else if(g<b)

small=g;

else

small=b;

//subtract smallest of the three values from rgb values hence removing gray

r=r-small;

g=g-small;

b=b-small;

cout<<r<<" "<<g<<" "<<b<<endl;

}

You might be interested in
Why do computers use 1 and 0
tangare [24]

I like ya cut g

Explanation:

bonK no Uhm

6 0
3 years ago
Read 2 more answers
Please help I need by today !!
Ede4ka [16]
The purpose of an engineering notebook is to support documented work that could potentially be patentable. hope you found this helpful!
3 0
3 years ago
Which of the following have the capacity to display formatted data?
sukhopar [10]

Answer:

D.  A and B

Explanation:

1. The method Console.Write() is an overloaded method in a language like C#.

One of its variations could be as follows;

<em>Console.Write(String format, Object a, Object b).</em>

This contains three parameters and will write the text representation of the specified objects to the standard output stream using the information specified by the format specifier. Parameter 1 is <em>format</em> which is a composite format string representing the format specifier. Parameter 2 is <em>a</em>, which is the first object to be written using <em>format. </em>Parameter 3 is b, which is the second object to be written using <em>format</em>.

2. The method Console.WriteLine() has the same characteristics as Console.Write() above, except that it writes the text representation of the specified objects, followed by current line terminator then to the standard output stream using the information specified by the format specifier.

3. Console.WriteFormat() does not exist, at least not in C# or .NET

Therefore, Console.Write() and Console.WriteLine() have the capacity to display formatted data.

<em>Hope this helps!</em>

6 0
3 years ago
Barries of effective <br> communication?
GarryVolchara [31]

Answer: barries

Explanation:

4 0
3 years ago
If you were to plot the voltage versus the current for a given circuit, what would you expect the slope of the line to be? If no
Brut [27]

Answer:

Part 1: It would be a straight line, current will be directly proportional to the voltage.

Part 2: The current would taper off and will have negligible increase after the voltage  reaches a certain  value. Graph attached.

Explanation:

For the first part, voltage and current have a linear relationship as dictated by the Ohm's law.

V=I*R

where V is the voltage, I is the current, and R is the resistance. As the Voltage increase, current is bound to increase too, given that the resistance remains constant.

In the second part, resistance is not constant. As an element heats up, it consumes more current because the free sea of electrons inside are moving more rapidly, disrupting the flow of charge. So, as the voltage increase, the current does increase, but so does the resistance. Leaving less room for the current to increase. This rise in temperature is shown in the graph attached, as current tapers.

7 0
4 years ago
Other questions:
  • The volume at a section of a 2-lane highway is 1800 vph in each direction and the density is approximately 30 bpm. A slow moving
    10·1 answer
  • Water flovs in a pipe of diameter 150 mm. The velocity of the water is measured at a certain spot which reflects the average flo
    13·1 answer
  • A full-scale working model used to test a design solution by making actual observations and necessary adjustments.
    8·1 answer
  • What does CADCAM stand for ?
    10·2 answers
  • After having done the hand calculation and pseudocode for a program that models inflating a spherical balloon, now implement the
    15·1 answer
  • Which one of the following statements belt batter boards is correct
    15·2 answers
  • Thanks for the help!
    11·1 answer
  • True or False: The differential lock in an AWD-equipped vehicle can be used at any time.
    10·2 answers
  • What is a radio wave made up of? Molecules? Electrons? Other?
    15·2 answers
  • Question 9
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!