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

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

What is the main disadvantage of parallel circuits?

Any break in the circuit stops the flow of charges.
There are multiple paths for charges to flow.
If one bulb goes out, the other bulbs will go out.
They are complicated to design and build.

Answers

Answer:

d

Explanation:

Answer:

D: They are complicated to design and build.

Explanation:

What might happen if a computer has too many applications running at one time?

a. become worth more money

b. freeze or run slowly

c. your wifi will stop working

d. become more efficient

Answers

Answer:

b freeze or run slowly

Explanation:

When and how should internet service providers be allowed to treat some kinds of internet traffic different from others?

Answers

Answer:

When the content of the internet traffic is deemed unlawful the internet service provider can discriminate,  block or slow down the internet traffic

Explanation:

The internet service providers have the right to block website that promote terrorists views or are used for recruitment by terrorists as well as other materials that are objectionable

The internet service providers can also discriminate against materials that are obscene, lascivious, indicate harassment, contains severe or exceptionally high violence based on preparation of materials to be published through them on the internet, according to a 1996 federal law

Internet service providers can also provide as zero rating sites that are exempted from requiring data allowance so that they can then be viewed for free by the client.

List the basic computing and processing steps in order

Answers

Answer:

brainstoring and engeenerign process steps

Explanation:

because of science

Deleting messages keeps them in the mailbox and on the server. How can they be removed from the server to reduce the quota? Check all that apply.

Left-click each message, and move it to the Trash folder.
Right-click the Deleted Items folder, and click Empty Folder.
Click the Folder tab, and click the Empty Folder in Clean Up group.
Right-click the Deleted Items folder, and click Mark All as Read.
In Backstage view, choose Cleanup Tools. Then, click Empty Deleted Items Folder.

Answers

Answer:

B, C, E are correct

Explanation:

Found on edg

Answer:

a,b,c,d

Explanation:

2021 i got it right

5. (01.04 LC) What is it called when one specific character is pulled out from a string? ( O Concatenating
Indexing
Removing
Slicing​

Answers

Answer:

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

Explanation:

The correct option for this question is Indexing. String indexing is a process that pulled out a specific character from a string. Because string store characters at their index position starting from zero. If you want to pull out a specific character of string at 5th position, then you specify that specific index i.e 5th. For example, a string "elephant" in the 5th position of the character is "a".

While other options are not correct because string concatenating adds character or concatenate to an existing string. for example, the string "Hello" can be concatenated with other string such as "James". After concatenation, the string becomes "Hello James".

String removing removes the string element at the specific index while string slicing is pulling out a group of characters from the string.  

THE ANSWER IS SCICING I REPEAT SLICING

the other person is wrong I took the test and got it wrong

trust me its slicing

What uses HTML hypertext links that users can click to access different locations or information?
A. Operating system
B. Domain name
C. Web page
D. Client program

Answers

I’m pretty sure it’s C. Web page

A computer program which uses hypertext markup language (HTML) hypertext links that users can click to access different locations or information is: C. Web page.

A hyperlink refers to an element in a hypertext markup language (HTML) document that provides a link (direct access) to another document, file, location, webpage, and an image.

In Computer science, a hyperlink can be used to directly link to the same path in a hypertext markup language (HTML) document or another HTML document such as a webpage.

Generally, you can insert a hyperlink that end users can click to access different locations or information in the following:

An email address A fileA webpage

In conclusion, a typical example of a hyperlink on a webpage is demonstrated below;

Learn more about hyperlink here: https://brainly.com/question/25760645

John is considering his STEM education choices. He wants to begin working in the technology field as soon as possible.
What level of degree should he pursue?

Answers

Answer:

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

Explanation:

STEM is a curriculum based on the idea of educating students in four specific disciplines — science, technology, engineering,  and mathematics — in an interdisciplinary and applied approach. The students who graduated in STEM-based education getting more paid and jobs than students who did not study the STEM-based education.

As in this question that John is considering his STEM education choices, and he wants to begin working in the technology field as soon as possible. He should pursue bachelor (graduate) degree in technology. Because after, passing out, he can begin working in technology easily.

Answer:

Associate's degree

Explanation:

Which statement accurately defines the Quick Steps feature in Outlook?

It simplifies common tasks into one-step commands.
It allows a user to add multiple steps to common tasks.
It is only configured for tasks that are not frequently used.
It allows multiple users to add commands to a single mailbox.

Answers

Answer:

A

Explanation:

The statement accurately defines the Quick Steps feature in Outlook will be that it simplifies common tasks into one-step commands.

What is the Outlook?

The Tools menu is shown on the toolbar adjacent to the Actions menu under the Menus tab. When you select Tools, a drop-down menu with options like Send/Receive All Folders, Reject All, Com Add-Ins, Disable Items, Outlook Options, etc. appears.

You undoubtedly use Outlook every day and use some of its useful capabilities, including flags, categorize, and archive. Even if these capabilities already make it simple to handle your emails, there are other Outlook tools that can help you organize your emails even better.

The phrase "simplifies typical tasks into one-step commands" appropriately describes Outlook's Quick Steps feature.

More about the Outlook link is given below.

https://brainly.com/question/17457799

#SPJ6

If you are logged on to Windows Live Messenger, why would you be unable to engage

in an instant messaging session with your brother, who is logged on to his AOL

Instant Messenger account?

a. Because you use Windows and your brother uses Apple OS X

b. Because Windows Live Messenger has built-in security and AOL Instant

Messenger does not

c. Because AOL Instant Messenger and Windows Live Messenger use their own

proprietary protocols

d. Because AOL Instant Messenger encrypts

Answers

Answer:

C: Because AOL Instant Messenger and Windows Live Messenger use their own  proprietary protocols

Explanation:

Think of an example in your life where a number could be described as data, information, and knowledge

Answers

Answer:

how many event you have been too in the last month (well non during this time but as an example)

Explanation:

A shop will give discount of 10% if the
cost of purchased quantity is more than 100
Ask user for quantity
Suppose, one unit will cost 100
Judge and print total cost for user​

Answers

Answer:

10%÷100 it is correct answer

Describe a situation where it would be advantageous to use the copper tape or aluminum foil instead of the A and B push buttons on the micro:bit.

Answers

Answer:

Say you already have the A and B buttons hooked up. You can still use the tape or foil to hook more things up to the micro:bit.

Explanation:

Which function would you use to make sure all names are prepared for a mailing label?

Answers

Answer:

Proper Function

Explanation:

I just took the quiz on engenuity.

Answer:

Proper on edge

Explanation:

Presentation slides should not have more than _____ bullet points.

Answers

Answer:

The answer is four

Explanation:

don't use more than four bullet points on any slide and will avoid using single bullet points on a slide.

what is thesaurus?what do you mean by spell chek feature

Answers

Answer:

Thesaurous is a book that lists words in groups of synonyms and related concepts.

A Spell Checker (or spell check) is a Software feature that checks for misspellings in a text. Spell-checking features are often embaded in software or services, such as word processor, email client, electronic dictionary, or search engine.

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:

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:

Why is it difficult to detect a Trojan horse?

Answers

Answer:

Explanation:

Because the virus disguises it self as something you are trying to download, then it attackes your device

Answer:

Since Trojan horses frequently appear disguised as legitimate system files, they are often very hard to find and destroy with conventional virus and malware scanners. ... The computer's antivirus and antimalware programs will be disabled and the necessary steps to remove malware will be inaccessible.

Explanation:

In general, a Trojan comes attached to what looks like a legitimate program. In reality, it is a fake version of the app, loaded up with malware. ... One form of Trojan malware has targeted Android devices specifically. Called Switcher Trojan, it infects users' devices to attack the routers on their wireless networks.

find the 12th term of 14,9,-1,-6​

Answers

Answer:

T12=a+(12−1)d=(a+11d)

=14×11×(−5)=−41

Explanation:

I hope this helps you out and if your feeling generous plz mark brainliest it helps me a lot thank you:)

plssssssssssssssssssssssssssssssssssss help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

John is the yearbook president and is searching for computer storage that will have the most memory to save articles and pictures for the yearbook. What form of storage should John use?

Cloud storage
External hard drive
Floppy disk
USB flash drive

Answers

Answer:

flash drive, protects data

Answer:

USB flash drive

Explanation:

A USB flash drive would be used since most flash drives that are used nowadays can use up to 2 Terabytes. That's as of dates back in 2018, and Terabytes are the fourth largest " Byte " in the virtual world. USB flash drives are also commonly used to save projects and having the ability to plug it into one computer, save it, unplug it, and bring it to another computer to download the files and work on it at home. As a Graphic Designer, we use these all the times, hopefully this helps! :)

Please select the word from the list that best fits the definition

A small farmer who did not own land

Answers

That would be a peasant, hope this helps ^^

Answer:

peasant

Explanation:

right on edge

____________ is related to the design of technologies to improve how people communicate with devices and applications to enter input and receive output.

Answers

Answer:

Human Computer Interaction

Explanation:

Human-Computer Interaction is related to the design of technologies to improve how people communicate with devices and applications to enter input and receive output.

What is computer interaction?

Research on the design and application of computer technology that concentrates on the interfaces of humans and computers is known as the human-computer interface.

Experts in human-computer interaction (HCI) study how people use computers and develop solutions that let people use them in new and different ways.

The answer is Human-computer interaction.

Thus, Human-Computer Interaction is related to the design of technologies to improve how people communicate with devices and applications to enter input and receive output.

Learn more about computer interaction here:

brainly.com/question/3173766

#SPJ2

A Career Cluster is a group of related careers true or false

Answers

Answer:

true

Explanation:

there are 16 different types so each cluster is related in some way.

A Career Cluster is a group of related careers or occupations that share common skills, knowledge, and pathways. This statement is true

These clusters are used in career exploration and education to organize and categorize careers based on similarities in the types of work they involve.

Each cluster encompasses a range of careers that share similar attributes and can be connected through similar educational pathways or skill sets.

For example, the STEM (Science, Technology, Engineering, and Mathematics) cluster includes careers such as biologist, software developer, engineer, and mathematician, all related to science and technology fields.

Career Clusters provide a useful framework for students and job seekers to explore and navigate various career options effectively.

Know more about Career Cluster:

https://brainly.com/question/8825832

#SPJ6

Movie recommendations? I’m in middle school so nothing nasty bro and I don’t really like horror movies so none of those either

Answers

Answer:

watch happy gilmore

Explanation:

Answer:

Uh... My Sister's Keeper... 5 Feet Apart... The Fault in Our Stars.

Explanation:

Which of the following practices can help you avoid harassment (or the appearance of

harassment) when using Internet communications?

a. Send potentially offensive jokes via e-mail only to people you know well.

b. Respect other users' requests not to send any jokes via e-mail or IM.

c. Use emoticons to indicate that threats you make via e-mail or IM are not serious.

d. Reduce inappropriate or unprofessional communications while at work

Answers

Answer:

B. Respect other users' requests not to send any jokes via e-mail or IM.

Answer:

d. Reduce inappropriate or unprofessional communications while at work

Explanation:

Write a compound inequality that is represented by the graph.
5
6
7
8
9
10 11 12
13 14
15
A compound inequality using the variable x is

Answers

Answer:

[tex]7 < x < 14[/tex]

is the answer

Which two steps did Adnan take to access the dialog box that allowed him to add text to the shape?

group, then left-click
select, then right-click
unmerge, then left-click
highlight, then right-click

Answers

Answer:

B

Explanation:

Answer:

select, then right-click

Explanation:

Other Questions
a square garden with a side of 150m has a square swimming pool in the very center with a side length of 25m calculate the area of the garden 10. Write a thesis statement answering the following question: The people of Medieval Times and people today have both experienced life during epedemics. How were these two times similar and how were they different? Which do you think will have the greatest impact on society and on history? Suppose that lower production costs increases the supply of wheat, such that more wheat is supplied at each price level. After the increase in supply, the equilibrium quantity _____. Chad's baseball team is practicing hitting in the batting cages. The pitching machines pitch baseballs at a rate of 35 pitches in 5 minutes. Chad practiced hitting for 8 minutes.How many baseballs were pitched to Chad in that time? Jonathan pays $1.90 per pound for potatoes. He buys 8.3 pounds of potatoes. He determines that he will pay $15.77,before tax,for the potatoes. Which best describes the reasonableness of Jonathan's solution?Jonathan's answer is unreasonable because there are two decimal places in the factors and two in the product.Jonathan's answer is unreasonable because there are three decimal places in the factors and two in the product.Jonathan's answer is unreasonable because 2*8 is 16,and 16 is close to 15.77.Jonathan's answer is unreasonable because 1*8 is 8,and 8 is not very close to 15.77. Which sentence contains a correctly punctuated parenthetical phrase?Cara, wanting to get attention, tends to do things that cause trouble.Having quenched their thirst the cows moved back to pasture.My dad drives only in the left lane not daring to pass, even the slowest drivers.My first novel having sold 100,000 copies, was reissued by the publisher. If you could solve one ofthe world's greatest problems, which one wouldyou choose? Why did you choose this problem tosolve? some cells take in ________________ using endocytosis .a.Carbon dioxideb.Wastec.Virusesd.Water what is the solution to 6x+5y=19 4x+6y=10 Which state made a law banning Halloween this year and then a day later, retracted that law?TexasCaliforniaOregonFlorida? dialogue between teacher and student talking about up coming exam Please paraphrase this More than 8,000 slices of Mother's Pride bread coated in paraffin wax are laid out into a patterned grid formation to resemble the weather-beaten surfaces of brickwork. Into the centre of the grid are two ghostly, body shaped indentations laid out flat like coffins in the ground, each forming one half of Gormley's figure.Displayed during a two man show at London's Whitechapel Gallery, this work is a much celebrated, early example of Gormley's developing style as he explored the parameters of his own body, following on from his 1970s Sleeping Place sculptures. To create the work, he ate through enough slices of bread to leave the recessed areas behind, carefully calculating with mathematical precision the exact proportions of his body. "It was like eating to a (musical) score," he recalled. To prevent the complete decay of the remaining bread, Gormley deconstructed the stack and dipped the slices of bread into paraffin wax, preserving them in their gently mouldering state.Commenting on the work's underlying meaning, Gormley wrote, "When making Bed I had this revelation that between what we eat and how we shelter ourselves was our condition and it became obvious that I had to address this in the most direct way possible and use my own experience as a template." The act of ingesting bread turned the simple, everyday ritual of eating, an act integral to human survival, into a work of art, pre-empting the Young British Artists of the 1990s, who, amongst other things, sought ways of humanising the gallery space by bringing in aspects of their own lives. Former director of The Whitechapel and later Tate, Nicholas Serota spoke of the work's potent message, which it still retains, pointing out, "The piece is a relic of an action - Antony did eat that bread - and today people respond to it like a relic. It remains an evocative and powerful image." Parallels can also be drawn between the consumption of the bread and the taking of Catholic sacrament, a significant ritual of Gormley's childhood. This imbues the process of the creation of the work and, therefore, the finished piece with a sense of religious purpose and this is also reflected in the traditional death-like pose of the absent figure. Using dimensional analysis How many mg are there in 8.75 X 107 kilograms?Conversion factors:[1000 g = 1 Kg][1000 mg = 1 g]Can you please show the work Write a fraction for which the sum of the numerator and denominator is 44, and the value of the fraction is 5/6. How did southern states deprive (take away) African Americans rights at the endof Reconstruction? List three ways aa home may become more energy efficient. Find the circumference and area of a circle with radius 6 m. Use the value 3.14. Enter the ratio as a fraction in lowest terms 3 ft to 88 in. Hint: You must use common units (12 in = 1 ft.) Describe how the Earth-Sun relationship causes the seasons. Ik this is a weird question but how do you borrow from stores with strict parents?