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
Ifa component is made of two or more materials with different modulus of elasticity (e), it is called a composite member and we calculate the factor·n". mention the formula for calculating n". also, ifn> 1, explain what will happen to the 1. transformed.gi) ifn 1, what will happen to the material when transformed material when
Answers: 1
question
Engineering, 04.07.2019 19:10
The short distance from the objective lens to the object causes problems at high magnification. which of the following is the most serious? a. cleaning the object surface b. positioning the object c. reflection from the object surface. d. illumination of the object
Answers: 1
question
Engineering, 04.07.2019 19:10
An engine, weighing 3000 n, is supported on a pedestal mount. it has been observed that the engine induces vibration into the surrounding area through its pedestal at the maximum operating speed. determine the stiffness of the dynamic vibration absorber spring in (n/m) that will reduce the vibration when mounted on the pedestal. the magnitude of the exciting force is 250 n, and the amplitude of motion of the auxiliary mass is to be limited to 2 mm note: in this question type-in right numbers, no decimals, no fractions, no unit. approximate to right number if needed
Answers: 3
question
Engineering, 04.07.2019 19:20
Air enters a horizontal, constant-diameter heating duct operating at steady state at 290 k, 1 bar, with a volumetric flow rate of 0.25 m°/s, and exits at 325 k, 0.95 bar. the flow area is 0.04 m2. assuming the ideal gas model with k = 1.4 for the air, determine (a) the velocity at the inlet and exit, each in m/s, and (c) the rate of heat transfer, in kw flow rate, in kg/s, (b) the mass kg 0.3
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
Questions on the website: 13722359