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
At 12 noon, the count in a bacteria culture was 400; at 4: 00 pm the count was 1200 let p(t) denote the bacteria cou population growth law. find: (a) an expression for the bacteria count at any time t (b) the bacteria count at 10 am. (c) the time required for the bacteria count to reach 1800.
Answers: 1
question
Engineering, 04.07.2019 18:10
Which of the following controllers anticipates the future from the slope of errors over time? a)-proportional b)-on/off c)-integral d)-derivative.
Answers: 2
question
Engineering, 04.07.2019 18:10
Compute the pressure drop of 30°c air flowing with a mean velocity of 8 m/s in a circular sheet-metal duct 300 mm in diameter and 15 m long. use a friction factor, f 0.02, and pair = 1.1644 kg/m a. 37.26 pa b. 25.27 pa n c. 29.34 pa d. 30.52 pa
Answers: 1
question
Engineering, 04.07.2019 18:20
Air is compressed isentropically from an initial state of 300 k and 101 kpa to a final temperature of 1000 k. determine the final pressure using the following approaches: (a) approximate analysis (using properties at the average temperature) (b) exact analysis
Answers: 1
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
Mathematics, 19.12.2019 21:31