Computers represent color by combining 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).

Answers

Answer 1

Answer:

Follows are the code to this question:

#include <iostream>//defining a header file

using namespace std; //using namespace

int main() //defining main method

{

int red,green,blue,s; //defining integer variable

cout<<"Enter value: \n ";//print message

cin>>red>>green>>blue; //input value

if(red<green && red<blue)//defining if block that checks red value

s=red;//store red variable value to s variable

else if(green<blue)//defining else if block that checks green value less then blue

s=green;//store green variable value in s variable

else//defining else block

s=blue; //store blue variable value in s variable

//calculating red, green, blue value

red=red-s;//store red value

green=green-s;//store green value

blue=blue-s;//store blue value

cout<<red<<" "<<green<<" "<<blue;

}

Output:

Enter value:

130  

50

130

80 0 80

Explanation:

In the above code, inside the Main method, four integer variable "red, green, blue, and s" is defined, in which "red, green, and blue" is used for input the value from the user end.

In the next step, a conditional statement is used, that checks the red variable value, if the condition is true, it will store its value in the "s" variable, otherwise, it will go to else if block.In this block, the green variable checks its value less than then blue variable value, if the condition is true, it will store the green value in the "s" variable, otherwise, it will goto else block.In this block, it will store the blue variable value in the "s" variable, and subtract the value of "red, green, and blue" value from "s" and store its value, and at the last, it will print its value.    

Related Questions

Who has helped the most people on brainly? who has the most answers? anybody know?

Answers

Answer:

Woah this was in 2020.  Time flies.

1/19/2021

samsam has 800m people helped

Which of the following is MOST likely to be an outcome of the digital divide

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The question is which of the following is MOST likely to be an outcome of the digital divide?

First, we know that what is the digital divide. A digital divide is any uneven distribution in the access to, use of, or impact of information and  communications technologies between any number of distinct groups, which can be defined based on social, geographical, or geopolitical criteria, or otherwise. So, the correct answer is B.

A. Certain companies will be unable to certify their technology as digitally secure (Incorrect).

It is related to the digital divide but it is related to the company's internal security system.

B. People from some racial or ethnic groups have unequal access to computing technology (correct).

Yes, it is best described what the digital divide is.

C. People will have equal access and influence both globally and locally (incorrect).

Because, in the digital divide, people will have unequal access and influence both globally and locally while using technology.

D. Political groups in some countries are unable to agree on regulations of digital technology (incorrect).

It is not related to the digital divide because it is the country's internal matters on the regulation of digital technology.

Use the drop-down menus to describe how Adnan can add shapes to his presentation.

Which command group in the Insert tab should he click?


Which cursor would appear on the slide?


Which combination of actions should he take to insert the shapes on the slide?

Answers

Answer:

✔ Illustrations

✔ a crosshair

✔ left-click and drag

Explanation:

Answer:

1) Illustrations

2) a crosshair

3) left-click and drag

Explanation:

What is an internet marketing manager?
O An individual who develops and implements plans to exploit the Internet for marketing and sales opportunities
O An individual who is responsible for the overall plan of a Website's development
O An individual who analyzes Website statistics to determine the site's effectiveness
O An individual who troubleshoots and repairs smartphone hardware components

Answers

An individual who develops and implements plans to exploit the internet for marketing and sales opportunities!

The main devices in a rectifier are:
Select one:
a. diodes.
b. transformers.
ion
c. transistors.
d. inductors.

Answers

A rectifier generally uses diodes.

which of the following memory types cannot store the data for information permanently Ram chachi Flash Memory hard disk​

Answers

Answer:

Memory hard disk is the answer

Answer: his answer is correct

Explanation:

Which of the following is true of lossy and lossless compression algorithms?
A. Lossy compression algorithms are used when perfect reconstruction of the original data is important.
B. Lossy compression algorithms are typically better than lossless compression algorithms at reducing the number of bits needed to represent a piece of data.
C. Lossless compression algorithms are only used to compress text data.
D. Lossless compression algorithms only allow for an approximate reconstruction of the original data.

Answers

Answer:

B. Lossy compression algorithms are typically better than lossless compression algorithms at reducing the number of bits needed to represent a piece of data.

Explanation:

The lossy compressions allow for data to be compressed in inexact measurements which means less loss than the exact measurements that Lossless compression uses.

The true statement regarding lossy & lossless compression algorithms is that they should be treated better as compared to lossless compression algorithms with respect to decreasing the no of bits that are required for presenting the piece of data.

The following statements should not be relevant:

It can't be used at a time when the perfect reconstruction of the real data should become significant.It not only applied for compressing the text data.It not only permits the predicted reconstruction of the real data.

Therefore we can conclude that the true statement regarding lossy & lossless compression algorithms is that they should be treated better as compared to lossless compression algorithms with respect to decreasing the no of bits that are required for presenting the piece of data.

Learn more about the data here: brainly.com/question/10980404

Why was chess considered to be one of the most difficult games for computers to play well?​

Answers

Answer:

In a general sense, the answer to that is Go. The main reason for that is because the size of the board and the fact that it is empty to begin with gives the game a much more complex opening to the game. But if you were to make things equal in board size then chess is the obvious more difficult game to master.

Explanation:

Answer: Chess is considered a hard game on computer because it is very hard to learn and play.

Explanation:None.

The Coins class was created to hold all your loose change, kind of like a piggy bank! For this exercise, you are going to simulate starting a bank with a specific number of coins, then adding to your piggy bank to bring your total to $2.12. What you need to do: Create a Coins object that initially has 4 quarters, 3 dimes, 2 nickels, and 1 penny. After you create the initial object, print out the total, then add coins to your bank until you have a total of 15 coins totaling 2.12. You will need to figure out which combination gets you to the correct total with the correct number of coins! When you are finished, call the method to print the bank count then the bank total to verify that you got the correct values.

Answers

Answer:

Coins c1 = new Coins (4, 3, 2, 1);

     c1.bankValue();

     c1.addQuarter();

     c1.addQuarter();

     c1.addDime();

     c1.addDime();

     c1.addPenny();

     c1.bankCount();

     c1.bankValue();

Explanation:

The first computer available for commercial sale in the United States was made by Mauchly and Eckert in what year?
1974
1947
1940
1951

Answers

Answer:

1951

Explanation:

Motivation is best defined as
the reason to achieve a goal.
O accomplishing a long-term goal.
O taking a break from a goal.
O the reason to compare a goal.

Answers

Answer:

a

Explanation:

the reason to achieve a goal

Motivation is best defined as the reason to achieve a goal. Thus, the correct option is A.

What is Motivation?

Motivation is the cause of a behavior's initiation, continuation, or termination in humans and other animals at a certain time. Motivational states are frequently interpreted as internal forces that produce a disposition to participate in goal-directed activity in the agent.

Different mental states are said to compete with one another, and only the strongest state can determine behavior. This implies that we can be inspired to act even when we don't.

Desire is the classic example of a motivating mental state. However, several other states, such as goals or views about what one should do, can also serve as motivation.

The word "motive," which refers to a person's needs, wishes, wants, or drives, is the root of the word "motivation."

It is the process of inspiring people to act in order to accomplish a goal. In the context of career aspirations, psychological factors influencing people's behavior may include a desire for money.

Learn more about Motivation, here

https://brainly.com/question/951988

#SPJ6

Which design principle is the subject of a photo or image? ​

Answers

The focal point is where the eye is drawn to in a photo or image.

The content of a photo or image serves as the framing design principle, and the further discussion can be defined as follows:

This placement of the principal topic of a design about other components on the page is referred to as framing. It is most commonly used in cinematography or photography to define how the primary point of an image is located inside the overall image.

Therefore, the final answer is "Framing".

Learn more:

brainly.com/question/20307377

help me please, thanks :)
will mark brainliest btw

Answers

benifits Ease of Access to Information. The World Wide Web, abbreviated as www has made the world a social village. Saves Time. Ease of Mobility. Better Communication Means. Cost Efficiency.  Innovation In Many Fields. Improved Banking Better Learning Techniques.

risks Theft or manipulation of sensitive or private information, such as financial or health records.

Virulent computer viruses that can destroy data, damage hardware, cripple systems and disrupt a business' operations.

Computer fraud.

A linear representation of a hierarchical file directory is known as what?

Answers

It is known as a directory path

Answer:

C.) a directory path

Explanation:

because I got it right.

Question 3 / 5
True or False: Students should start drinking young to learn how to drink responsibly and safely.

Answers

Answer:

False

Explanation:

It is false that students should start drinking young to learn how to drink responsibly and safely.

What is the effects of alcohol consumption?

It includes problems with fertility like lower testosterone levels and lower sperm counts in men, brain damage and ailments connected to the brain, such as dementia and stroke.

Cardiac conditions such excessive blood pressure, damaged hearts, and heart attacks, and hepatic failure and liver cirrhosis.

In a national study, college students who binge-drank alcohol at least three times per week were about six times more likely than those who seldom consumption to do poorly on an exam or assignment.

Additional negative effects include attempted self-harm, health issues, injuries, unsafe intimate activity, drink driving, vandalism, property destruction, and engagement with the police.

Thus, the given statement is false.

For more details regarding alcohol consumption, visit:

https://brainly.com/question/14481017

#SPJ2

If you schedule a message to be delivered at 6 p.m., but you log out of your computer at 5 p.m., what will happen to the message?

It will be delivered at 6 p.m. as scheduled.
It will be delivered when you log back in.
It will be delivered at 5 p.m. when you log out.
It will not be delivered at all and will be canceled.

Answers

Answer:

B

Explanation:

It will be delivered when you log back in.

Why should we be careful about opening email attachments?

Answers

Answer:

files can easily infect your computer with viruses or malware.

Explanation:

They can have hidden malware and viruses embedded in them that can cause serious harm to your computer.

_____ is(are) often used in reports to quickly represent data and help the readers understand the data.

WordArt
Shapes
Charts
Photos

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The correct option of this question to fill in the blank is Charts.

Charts are often used in reports to quickly represent data and help the readers understand the data.

There are different types of charts, for example, pie chart, line bar graph/chart, etc. Charts to used to present data for the visual representation of data.

Why other options are not correct.

WordArt: WordArt is a pre-build style in word processing applications. For example, if you want to show a stylish word "Welcome" then you can use WordArt, WordArt can be used to represent data as like Charts.

Shapes: Shapes do not represent data, shapes are used to draw shapes/drawing such as square, rectangle, line etc.

Photos: Photos do not represent data visually, however, you can take photos of charts, but the photo itself does not represent data.

What is the four digit Color code?

Answers

Answer:

Red, green, blue and yellow.

Hope this helps!

Explanation:

What are some characteristics of filtering junk email in Outlook 2016? Check all that apply.

Messages can be right-clicked, flagged as Junk, and moved to a folder.
Configuring a safe sender ensures that emails are not identified as spam.
The default configuration of junk email options is No Automatic Filtering.
No matter what configuration, messages can still be blocked on the network.
Moving messages to the Junk Email folder will reduce the size of the mailbox.

Answers

Answer:

They are all correct except the last one

Explanation:

On edg

Answer:

a b c d

Explanation:

which is a requirement for an acceptance

Answers

ALL OF THE ABOVEEEEE

After Mila plugged her phone into the battery pack the amount of energy in the battery pack pack increase ,decrease or stay the same explain why

Answers

The amount of energy in the battery pack will decrease, because the phone is taking the stored energy from the battery pack. This will cause the phone to become charge and the battery pack to lose its energy.

Answer: The amount of energy in the battery pack is reduced as the phone receives energy stored from the battery pack. This will cause the phone to charge and the battery pack to lose power.

Explanation:

Jake really works well with numbers and is skilled with computers but doesn't work well with others. Which of the jobs discussed in this unit might be best for Jake? Why?

Answers

Answer:

Repair Technician (this is a guess, since im also on this)

Explanation:

A repair technician work alone most of the time and since he is good with computers, he can fix computers and not have to worry about working with others if he is too good at it, since he will satisfy so many customers and make alot of money if it is based on fixing a problem on a Computer. Since he is good with numbers, he will be able to count the fee from him having to work and fix something based on what it is.

Please help me ASAP first answer gets brainliest

Answers

Answer:

okay but where is problem bro

Explanation:

What is the definition of a digital signal?
the push that makes electrons move in a wire; the greater the voltage, the stronger the push
a device that uses voice recognition to provide a service
communication of the binary data via the voltage level for each time interval
a device that converts one voltage to anoth

Answers

Answer:

communication of the binary data via the voltage level for each time interval

Explanation:

Answer:

communication of the binary data via the voltage level for each time interval

Explanation:

its on edge

Which task option will keep you aware of the progress of a task you assign?

Set reminders on tasks with due dates.
Set the Quick Click flag for automated actions.
Keep my task list updated with copies of tasks.
Send a status report when I complete an assigned task.

Answers

Answer:

It's C

Explanation:

Correct on edg

Answer:

C is right

Explanation:

What is the binary equivalent of the decimal number 138?

Answers

Answer:

10001010

Explanation:

Carline is a teacher who uses PowerPoint. She wants to make sure all of her PowerPoints are set up the same way with the same theme. She saved her original theme for the first chapter. She is working on chapter 2. Which lists the correct steps for recovering her theme?
HELP ASAP!

Answers

Answer:

Click on file, select New, select themes and find saved theme

what are the functions of online gaming communities?

Answers

Answer:

As a high-quality communication system, online games provide a virtual world where gamers communicate with each other by using rich interactive multimedia. This would facilitate communication among online gamers and enhance the development and maintenance of interpersonal relationships.

The human brain can store both temporary and permanent bits of information. Which type of memory in the computer is similar to the temporary storage in your brain?

BIOS
PRM
RAM
ROM

Answers

Answer:

RAM

Explanation:

"RAM" refers to Random-Access Memory. Just like the human brain, this stores your computer files temporarily. It is considered to be a "volatile memory" which means that information can only be stored when there's power. So, when your computer shuts down, the information is lost. This is similar to the human brain, especially when it comes to learning. When a person learns new things, some of the information he read before may be forgotten.

Other Questions
An x-box cost $230 but is discounted 28%. What is the new cost of the x-box? Simplify 3-8 divided by 3-2 Describe the relationship between volume, mass, and density. If amarble with a density of 2.4 g/cm^3 was cut in half, what would be thethe density of half the marble? What is a target group HELP PLEASEE EASY QUESTION Which statements are true about the polynomial function?f(x)=x3x24x+4Select each correct answer.f(x)=0 when x=1 .f(1)=0(x1) is a factor of f(x) .f(x) divided by (x1) has a remainder of 0. Which of the following statements incorrectly describes the assumptions of the kinetic molecular theory? Group of answer choices The particles that make up a substance have differing amounts of kinetic energy. Matter is composed of very small particles. Based on the state of matter a substance is in, it has varying particle arrangement. Particles stop moving completely when they are very cold. anyone know any songs that help you focus on your work or help you do it fasterthanks :) Slaves and indentured servants. Which one worked for others and which one worked for free passage? Movie recommendations? Im in middle school so nothing nasty bro and I dont really like horror movies so none of those either whats the name of the white boy on craig of the creek? Being rude on the internet is like bullying a blind personThey can't see you. What is the answer :( What were explorers like Christopher Columbus looking for when they sailedacross the Atlantic? Students make 58.5 ounces of liquid soap for a craft fair. They put the soap in 4.5 ounce bottles and sell each bottle for $5.50. How much do the students earn if they sell all the bottles of liquid soap? On average, Joanne writes9 emails per day. How longwill it take Joanne to write279 emails? Facial expressions aid in all of the following EXCEPT?O Setting the tone of the conversationO Providing feedbackO Providing clues of audience comprehensionBreaking through the stress in the room I NEED HELP WITH ALL PLEASE!!! 1) Completa las oraciones con las formas correctas de los verbos regulares.Please do not capitalize your answers. No accents are required.1. Cada da yo me (levantar) a las seis y media. *This is a required question2. Primero, (comer) el desayuno. *3. Despus, me pongo la ropa y me (cepillar) los dientes. *4. Como mi escuela queda tan cerca a mi casa, mis hermanos y yo (caminar) all. *5. Cuando nosotros (llegar), *6., (hablar) con los amigos antes de empezar las clases. *7. Mi maestro de matemticas es el Sr. Bonacum, y yo (recibir) notas buenas en su clase. *8. En mi clase de literatura, los estudiantes (escribir) composiciones. *9. Los estudiantes tambin (leer) novelas. *10. Mi clase favorita es el arte. En esta clase yo (dibujar), *11. yo (pintar), *12. , y (aprender) sobre artistas importantes. *2) Completa el dilogo con las formas correctas de los verbos que cambian de raz.This verbs have a change in the first part and in the ending. Do not capitalize your answers.1. Camarero: Hola, seor. En qu (poder) servirle? *2. Cliente: Ustedes (tener) algunas especialidades de la casa? *3. Camarero: S, hoy nosotros (servir) un pescado ahumado con verduras. *4. Cliente: Pues, (querer) mucho una comida picante.... *5. Camarero: Si le gusta la comida picante, le (recomendar) el plato tpico. *6. Cliente: Cunto (costar) el plato tpico? *7. Camarero: Cuesta diez dlares. Por qu no lo (probar) usted? *8. Camarero: Muchos clientes me (contar) que es delicioso. *9. Cliente: Bueno, entonces (pedir) el plato tpico. *10. Camarero: Muy bien, seor, yo (volver) en seguida. * As a result of the reaction of 109.5 grams of a solution of hydrochloric acid with an excess of zinc, a gas with a volume of 3.36 litres Was released. Calculate the mass fraction of hydrochloric acid in the original solution Im just testing to see how long it takes for someone to answer. Please answer!!!