Question: Write a function rgb ( r , g , b ) which returns the HTML color string for those red, green and blue values. The

Write a function rgb(r, g, b) which returns the HTML color string for those red, green and blue values. The valid arguments are 0-255. If any argument is outside of that range, then throw a domain_error exception, indicating the values that are passed in. In formatting the returned value, you may find the hex and uppercase output manipulators useful.

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 Programming Questions!