Question: 8. Use nested for loop to produce the average for each stock across time. Output your results into the bule cells. The outer For loop

8. Use nested for loop to produce the average for each stock across time. Output your results into the bule cells. The outer For loop is executed 4 times (for each stock) and the inner For loop runs 12 times (across time) for each of stock. You will need to declare varaibles(s) in your subroutine to calculate the average. Stock1 Stock2 Stock3 7 00 1 2 3 4 1 2 3 4 Jan-20 Feb-20 Mar-20 Apr-20 May-20 Jun-20 Jul-20 Aug-20 Sep-20 Oct-20 Nov-20 Dec-20 3 2 1 3.6 3.8 9 6 5 4 5 6 7 5 6 7 5.2 6.6 Stock4 1 1 2 2 3 3 4 3.6 4.3 5 5.7 6.2 00 4 4.2 4.8 9 10 9.4 10 Average
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
