![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 12.10.2021 09:30 valdezavery1373
Ask the user to enter a number for red, green, and blue components of an RGB value, which takes a certain amount of red, green, and blue colors and produces a new color. Test the numbers that are input by the user and check that each value is between 0 and 255 (inclusive). If a color's value is outside of this range, print which color's number is not correct (e. g., "Red number is not correct" if the red value is 300). Multiple colors may be out of range. The order of the colors should be the same as the sample runs below; red, then green, then blue.
Hint: Since this lesson uses boolean operators, remember to use at least one boolean operator in each of your answers to receive full credit.
Sample Run 1
Enter the red: 150
Enter the green: 300
Enter the blue: 15
Sample Output 1
Green number is not correct.
Sample Run 2
Enter the red: 25
Enter the green: 124
Enter the blue: 105
Sample Output 2
Nothing is output if a user enters three numbers that are all within the range of 0 to 255.
![ansver](/tpl/images/cats/User.png)
Answers: 2
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 18:30
Kto rozmawia z clamentain przez krótkofalówke w the walking dead która śledzi lee w 4 epizodzie
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 15:30
Brian wants to conduct an online search with a certain phrase. he intends to use the words books that belong to the 1800s in his search. how should he use the word that in his search?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 18:50
Ais a picture icon that is a direct link to a file or folder
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 22:30
Jamie has to enter the names, employee id’s, and income of a group of employees into a worksheet. which option will jamie use to describe the data
Answers: 3
You know the right answer?
Ask the user to enter a number for red, green, and blue components of an RGB value, which takes a ce...
Questions
![question](/tpl/images/cats/mat.png)
Mathematics, 01.10.2019 08:30
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
History, 01.10.2019 08:30
![question](/tpl/images/cats/mat.png)
Mathematics, 01.10.2019 08:30
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
English, 01.10.2019 08:30
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 01.10.2019 08:30
![question](/tpl/images/cats/mat.png)
Mathematics, 01.10.2019 08:30
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/fizika.png)
Physics, 01.10.2019 08:30
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 01.10.2019 08:30
![question](/tpl/images/cats/ap.png)
Advanced Placement (AP), 01.10.2019 08:30
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
English, 01.10.2019 08:30