Question: Question 2b Four experiments are performed, each consisting of five test results. The results for each experiment are given in the following list. Write a

 Question 2b Four experiments are performed, each consisting of five test

Question 2b Four experiments are performed, each consisting of five test results. The results for each experiment are given in the following list. Write a program using a nested loop to compute and display the average of the test results for each experiment. Display the average with a precision of two digits after the decimal point. st experiment results: nd experiment results: 3rd experiment results: 4th experiment results 23.2 31 16.9 27 25.4 34.8 45.2 27.9 36.8 33.4 19.4 16.8 10.2 20.8 18.9 36.9 39 49.2 45.1 42.7 Use the input provided in the given list and execute the program. Submit a printout of the program and output. Question 2c In this program, you have to make use of the switch statement. The average life expectancy (in hours) of a lightbulb based on the bulb's wattage is listed in the table below: Watts Life expectancy (hours) 25 40 60 75 100 25000 1000 1000 750 750 Write a program that when given a bulb's wattage, displays the average life expectancy. Submit a printout of the program and output. 10

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!