10040813
10040813
03.08.2021 • 
English

Open the Electricity Solution.sln file contained in the VB2017\Chap09\Electricity Solution folder. Open the monthlyBills.txt file. Each of the 12 numbers in the file represents the cost of electricity for a month. Close the monthlyBills.txt window. The btnCalc_Click procedure should display the average monthly cost for electricity. Display the average with a dollar sign and two decimal places. Code the procedure. Save the solution and then start and test the application. (The average is $119.81. If you need to recreate the file, the project’s bin\Debug folder contains a copy of the original file.) Monthly Bills text file:
141.71
156.75
179.25
141.71
130.19
115.05
95.65
86.78
85.45
79.99
98.45
126.78

Solved
Show answers

Ask an AI advisor a question