Question: (JAVA SCRIPT) Define a function named color which has two inputs. The two inputs are floats representing the cyan and black levels, respectively, of a

(JAVA SCRIPT) Define a function named color which has two inputs. The two inputs are floats representing the cyan and black levels, respectively, of a color represented using CMYK. Your function will calculate and return a string stating the red level of this color (for the much more common RGB format). Your function should calculate 255 * (1 - cyan level) * (1 - black level). Because RGB colors are always reported as a whole number, your function should then your function will use the Math.floor function to get the whole number portion of that product. The function needs to return a String with the text Red level is ______ (replacing the underscores with the red level your function calculated).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!