Sign In
Ask Question
Jamal Ray
Computers & Technology
30 August, 02:06
3.3 lesson practice edhesive
+1
Answers (
1
)
Sophia Archer
30 August, 02:20
0
The requirement can be found from the edhesive website, and it is to write a program to enter the value of RGB, and check whether its value is in between 0 and 255. The program should print out of range if its not within this (0 and 255). And it should print it is not right if it is below 0. The required program is as mentioned in explanation.
Explanation:
import time
green = int (input ("Input the value of Green: "))
red = int (input ("Input the value of Red: "))
blue = int (input ("Input the value of Blue: "))
if green < = 255 and red < = 255 and blue < = 255:
print ("Everything is correct.")
if red > 255:
print ("Red is not right.")
if blue > 255:
print ("Blue is not right.")
if green > 255:
print ("Green is not right.")
if red < 0:
print ("Red is not right.")
if blue < 0:
print ("Blue is not right.")
if green < 0:
print ("Green is not right.")
Comment
Complaint
Link
Know the Answer?
Answer
Not Sure About the Answer?
Find an answer to your question 👍
“3.3 lesson practice edhesive ...”
in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers
You Might be Interested in
What will be the output of the expression A % B / / A if A=16 and B=15
Answers (1)
What is the term for an understanding about the processes that underlie memory, which emerges and improves during middle childhood?
Answers (1)
function outputValue = AdjustOutput (outputValue, amplitudeResponse, phaseResponse) % Write an if-statement that subtracts 5 from outputValue % if amplitudeResponse is greater than 10 outputValue = outputValue;
Answers (1)
Richard wants to digitally sign a message he's sending to Sue so that Sue can be sure the message came from him without modification while in transit. Which key should he use to encrypt the message digest? A. Richard's public keyB.
Answers (1)
What bus carries a status signal back to the CPU?
Answers (1)
New Questions in Computers & Technology
The connectors on the computer allow you to plug in devices such as keyboards and printers. what are these called?
Answers (1)
Which sentence expresses data-based processing?
Answers (1)
Type two statements. The first reads user input into person_name. The second reads user input into person_age. Below is a sample output for the given program if the user's input is: Amy 4
Answers (1)
What version of Windows Server 2016 can be used to share the same physical computer through each person connecting a keyboard, mouse, and monitor to a USB hub that connects to the server?
Answers (1)
Systems Software, Inc., is introducing a new piece of sophisticated graphics software. A recently hired writer has been assigned to write the Getting Started Manual for the product.
Answers (1)
Home
»
Computers & Technology
» 3.3 lesson practice edhesive
Sign In
Sign Up
Forgot Password?