Question: Write a program checkLuminance that will input red, green, and blue values, and compute the luminance using the weighted average (as below). But then print

Write a program checkLuminance that will input red, green, and blue values, and compute the luminance using the weighted average (as below). But then print out a warning to the user based on the computed luminance:

• If the luminance is less than 10, “That’s going to be awfully dark.”

• If the luminance is between 50 and 200, “Looks like a good range.”

• Over 250, “That’s going to be nearly white!”

Step by Step Solution

3.41 Rating (170 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

def checkLuminanceredValue greenValue blueValue lumin... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Introduction to Computing and Programming in Pytho Questions!