Type conversion and conditionals. Several different formats are used to represent color. For example, the primary format for LCD displays, digital cameras, and web pages, known as the RGB format, specifies the level of red (R), green (G), and blue (B) on an integer scale from 0 to 255. The primary format for publishing books and magazines, known as the CMYK format, specifies the level of cyan (C), magenta (M), yellow (Y), and black (K) on a real scale from 0.0 to 1.0.
Write a program RGBtoCMYK_YI.java that converts RGB to CMYK. Prompt the user with messages for three integers red, green, and blue, and print the input red, green, and blue, then print the equivalent CMYK, {C,M,Y,K} values using the formulas in the attached image.
More details on edmodo.com
Project 1 # 2: RGB to CMYK