subject
Engineering, 29.02.2020 01:03 winterblanco

I need help with this JavaScript Program. The colors red, blue, and yellow are known as the primary colors because they cannot be made by mixing other colors. When you mix two primary colors, you get a secondary color, as shown here:-When you mix red and blue, you get purple.- When you mix red and yellow, you get orange.- When you mix blue and yellow, you get green.// Design a program that prompts the user to enter the names of two primary colors// to mix and then calls the function findSecondayColor( ) passing both colors. The// function returns the following number which indactes the resulting secondary// color.//Colors passed - Number function returnsred and blue - 1 (represents purple)red and yellow - 2 (represents orange)blue and yellow - 3 (represents green)2 of the same color - 4 (the same color)anything else - 0 (indicated invalid color passed)function findSecondaryColor(color1, color2) {

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
What difference(s) did you notice using a pneumatic circuit over hydraulic circuit.explain why the pneumatic piston stumbles when it hits an obstacle.
Answers: 2
question
Engineering, 04.07.2019 18:10
Ariver flows from north to south at 8 km/h. a boat is to cross this river from west to east at a speed of 20 km/h (speed of the boat with respect to the earth/ground). at what angle (in degrees) must the boat be pointed upstream such that it will proceed directly across the river (hint: find the speed of the boat with respect to water/river)? a 288 b. 21.8 c. 326 d. 30.2
Answers: 3
question
Engineering, 04.07.2019 18:20
Aquick transition of the operating speed of a shaft from its critical speed will whirl amplitude. (a) increase (b) limit (c) not affect (d) zero
Answers: 2
question
Engineering, 04.07.2019 18:20
Apiston-cylinder device contains 0.1 m3 of liquid water and 0.9 m3 of water vapor in equilibrium at 800 kpa. heat is transferred at constant pressure until the temperature of water reaches 350 °c. determine (a) the quality of water at the initial state (b) the work associated with this process, (c) the heat associated with this process.
Answers: 2
You know the right answer?
I need help with this JavaScript Program. The colors red, blue, and yellow are known as the primary...
Questions
question
Computers and Technology, 15.07.2019 07:00
Questions on the website: 13722367