Write in Java with OOP concepts six classes, to read a number of the color in RGB style and convert it to grayscale, the numbers that read are in decimal format. The five classes are: Main -- to...


Write in Java with OOP concepts six classes, to read<br>a number of the color in RGB style and convert it<br>to grayscale, the numbers that read are in decimal<br>format. The five classes are:<br>Main -- to define an object, read, run<br>Color -- a superclass which controls all subclasses<br>Red -- to save the color number and return its value<br>when request.<br>Green -- to save the color number and return its value<br>when request..<br>Blue -- to save the color number and return its value<br>when request.<br>Gray -- it receives all RGB values and returns a<br>grayscale value.<br>

Extracted text: Write in Java with OOP concepts six classes, to read a number of the color in RGB style and convert it to grayscale, the numbers that read are in decimal format. The five classes are: Main -- to define an object, read, run Color -- a superclass which controls all subclasses Red -- to save the color number and return its value when request. Green -- to save the color number and return its value when request.. Blue -- to save the color number and return its value when request. Gray -- it receives all RGB values and returns a grayscale value.

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here