Question: Using codes of JAVA I Question 11 14 Points . A factory manufactures electricity lamps, all of which are tested to find their lamp Lighting
Using codes of JAVA I
Question 11 14 Points . A factory manufactures electricity lamps, all of which are tested to find their lamp Lighting Level. Lamps are classified as either High Quality or Low Quality as follows: SAMPLE INPUT/OUTPUT Enter Lighting levels (negative to stop) 65 90 45 35 12 -1 Average of High Quality Lamps = 77.5 High Quality Lamps = 2 Low Quality Lamps = 3 Lighting Level If greater than 50 Otherwise Lamp Quality High Quality Low Quality Write a program that asks the user to enter the Lighting Level of several lamps until the user enters negative lighting level to quit. The program should find and display: (a) The average Lighting Level for High Quality lamps. (b) The number of High Quality lamps. (b) The number of Low Quality lamps. Use the editor to format your
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
