Q22 In digital world colors are specified in Red-Green-Blue (RGB) format, with values of R, G, B varying on an interger scale from 0 to 255. In print publishing the colors are mentioned in Cyan-Magenta-Yellow-Black (CMYK) format, with values of C, M, Y, and K varying on a real scale from 0.0 to 1.0. Write a program that converts RGB color to CMYK color as per the following formulae: Note that of the RGB values are all 0, then the CMY values are all 0 and the K value is 1.
Program: 90 In digital world colors are specified in Red-Green-Blue…
5 years ago