Engineering
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) {

answer
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, michellerosas
Ajournal bearing has a journal diameter of 3.250 in with a unilateral tolerance of 20.003 in. the bushing bore has a diameter of 3.256 in and a unilateral tolerance of 0.004 in. the bushing is 2.8 in long and supports a 700-lbf load. the journal speed is 900 rev/min. find the minimum oil film thickness and the maximum film pressure for both sae 20 and sae 20w-30 lubricants, for the tightest assembly if the operating film temperature is 160°f. a computer code is appropriate for solving this problem.
Answers: 3
image
Engineering, 04.07.2019 18:10, Fahaddie
The thermal expansion or contraction of a given metal is a function of the f a)-density b)-initial temperature c)- temperature difference d)- linear coefficient of thermal expansion e)- final temperature f)- original length
Answers: 2
image
Engineering, 04.07.2019 19:10, santosbeti90
With increases in magnification, which of the following occur? a. the field of view decreases. b. the ambient illumination decreases. c. the larger parts can be measured. d. the eyepiece must be raised.
Answers: 1
image
Engineering, 04.07.2019 19:10, Lexi5170
A)-explain briefly the importance of standards in engineering design. b)- what is patent? c)-explain the relationship between these standards: b. s. and b. s.en d)- in engineering design concepts, types of loads and how they act are important factors. explain.
Answers: 3
Do you know the correct answer?
I need help with this JavaScript Program. The colors red, blue, and yellow are known as the primary...

Questions in other subjects:

Konu
Mathematics, 31.03.2020 19:22
Konu
Physics, 31.03.2020 19:22