Open the Electricity Solution.sln file contained in the VB2017Chap08Electricity Solution folder. Open the Code Editor window and

Question:

Open the Electricity Solution.sln file contained in the VB2017\Chap08\Electricity Solution folder. Open the Code Editor window and locate the btnCalc_Click procedure. Each of the 12 numbers in the array declaration statement represents the cost of electricity for a month. The procedure should use the For Each...Next statement to calculate the average monthly cost for electricity. Display the average with a dollar sign and two decimal places in the lblAvg control. Code the procedure. Save the solution and then start and test the application. (The average is $119.81.)

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: