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 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
Get step-by-step solutions from verified subject matter experts
