Write a program checkLuminance that will input red, green, and blue values, and compute the luminance using
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 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!”
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Introduction To Computing And Programming In Python A Multimedia Approach
ISBN: 9780134025544
4th Edition
Authors: Mark J. Guzdial, Barbara Ericson
Question Posted: