Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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 wop) 65 90 45 35 12 1 Average of High Quality Lamps=775 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

What Is A Database And How Do I Use It

Authors: Matt Anniss

1st Edition

1622750799, 978-1622750795

More Books

Students also viewed these Databases questions

Question

When must a company recognize an environmental provision?

Answered: 1 week ago

Question

1 . Television News channels importantance of our Life pattern ?

Answered: 1 week ago

Question

1. How is the newspaper help to our daily life?

Answered: 1 week ago

Question

1. Prepare a short profile of Mikhail Zoshchenko ?

Answered: 1 week ago

Question

What is psychology disorder?

Answered: 1 week ago