Question: Additional exercises 7) Write a C++ program that asks the user to input the wattage (or watts) of a standard light bulb and uses a

 Additional exercises 7) Write a C++ program that asks the user

Additional exercises 7) Write a C++ program that asks the user to input the wattage (or watts) of a standard light bulb and uses a switch statement to assign to the variable lumens the expected brightness. Use this table: Watts Brightness (lumens) 15 25 40 60 75 100 125 215 500 880 1000 1675 Assign the value -1 to lumens if the value of watts is not in the table

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!