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, 03.07.2019 14:10
Explain the difference laminar and turbulent flow. explain it with the shear stress and the velocity profiles.
Answers: 1
question
Engineering, 03.07.2019 15:10
Two flowing streams of argon gas are adiabatically mixed to form a single flow/stream. one stream is 1.5 kg/s at 400 kpa and 200 c while the second stream is 2kg/s at 500 kpa and 100 ? . it is stated that the exit state of the mixed single flow of argon gas is 150 c and 300 kpa. assuming there is no work output or input during the mixing process, does this process violate either the first or the second law or both? explain and state all your assumptions.
Answers: 1
question
Engineering, 04.07.2019 19:10
Tom is having a problem with his washing machine. he notices that the machine vibrates violently at a frequency of 1500 rpm due to an unknown rotating unbalance. the machine is mounted on 4 springs each having a stiffness of 10 kn/m. tom wishes to add an undamped vibration absorber attached by a spring under the machine the machine working frequency ranges between 800 rpm to 2000 rpm and its total mass while loaded is assumed to be 80 kg a) what should be the mass of the absorber added to the machine so that the natural frequency falls outside the working range? b) after a first trial of an absorber using a mass of 35 kg, the amplitude of the oscillation was found to be 10 cm. what is the value of the rotating unbalance? c) using me-3.5 kg.m, find the optimal absorber (by minimizing its mass). what would be the amplitude of the oscillation of the absorber?
Answers: 3
question
Engineering, 04.07.2019 19:20
The power source in a certain welding setup generates 3500w that is transferred to the low carbon steel work with a heat transfer factor of 0.85. the melting factor in the operation is 0.45. a continuous fillet weld is to be made with a cross-sectional area of 23 mm2 determine the travel speed at which the welding can be accomplished.
Answers: 3
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, 22.09.2019 05:30
question
Mathematics, 22.09.2019 05:30
Questions on the website: 13722367