3. Illustrate the flow of the program by Develop a program that display brightness of a standard light bulb in Lumens ba
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
3. Illustrate the flow of the program by Develop a program that display brightness of a standard light bulb in Lumens ba
statement. Does the above problem can be implemented using switch statement? If yes, rewrite the program in (b) using switch statement; if not, explain why.
3. Illustrate the flow of the program by Develop a program that display brightness of a standard light bulb in Lumens based on Power in Watts as shown in Table 2. Table 2 Power (Watts) Brightness (Lumens) 15 125 25 215 40 500 60 880 75 1000 100 1675 Assign-1 to lumens if the value of watts is not in the table. a) Draw a flowchart for the above problem. b) Develop a complete C program to implement the above problem using if-else