Question: Open the Electricity Solution.sln file contained in the VB2017Chap08Electricity Solution folder. Open the Code Editor window and locate the btnCalc_Click procedure. Each of the 12
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.)
Step by Step Solution
3.39 Rating (171 Votes )
There are 3 Steps involved in it
Microsoft Visual Studio Solution File Format Version 1200 Visual Studio 15 VisualStudioVers... View full answer
Get step-by-step solutions from verified subject matter experts
