Output will be like:

Code will be like
Private months As String() = {"jan", "feb", "Mar", " apr",
"may", "jun", " jul", "aug", "sep", "oct", " nov", "dec"}
Private parts As Integer() = {355, 840, 906, 498, 222, 750, 672,
888, 1234, 1066, 567, 789}
Private Sub button1_Click(ByVal sender As Object, ByVal e As
EventArgs)
Dim sum As Integer = 0
For i As Integer = 0 To 6 - 1
sum = sum + parts(i)
Next
label3.Text = Convert.ToString(sum)
label4.Text = Convert.ToString(sum / 6)
End Sub
Note: Here I have used the data in the array and declared a button press control in that iterated the data to calcualte the sum and avergae and display it in the apprpriate form fields as shown above.
Please rate it if the above solution helps you in any way or if you have any concerns comment it, I will help you through again.
- Calculate the average and total parts produced in the first six months of the year,...
New car sales for a dealer in Cook County, Illinois, for the past year are shown in the following table, along with monthly indexes (seasonal relatives), which are supplied to the dealer by the regional distributor. Month Units Sold Index Jan. 640 0.80 Feb. 648 0.80 Mar. 630 0.70 Apr. 761 0.94 May. 735 0.89 Jun. 850 1.00 Jul. 765 0.90 Aug. 805 1.15 Sept. 840 1.20 Oct. 828 1.20 Nov. 840 1.25 Dec. 800 1.25 Plot the data. Does...
Average Monthly Rainfall of Two Cities 7 6 Seattle Chicago 5 Seattie Rainfall (Inches) 3 2 Chicago 1 O Do Nov Dec Month Use the graph above for the remaining problems. 21. When is difference in the average monthly rainfall the largest? Approximately how much is this difference in inches? Jan Feb Mar Apr May June July Aug Sept 22. What was the highest amount of rainfall for Seattle? When did this occur? 23. What was the difference between the...
A researcher wanted to determine if babies were born at different rates in different months. Tracking a random sample of birth records for one metropolitan area resulted in the following data. Use a chi-square critical value of 19.675. Jan Feb Mar Apr May June July Aug Sept Oct Nov Dec Observed 14 12 12 10 16 9 16 11 21 8 24 9 What are the null and alternate hypothesis for this test? What is the expected number of babies...
question asking for moving average .. i used the data analysis
tool in excel it gives me the right answer but with wrong in
sequence
The normal Fourmal says = Sum of 3 months / 3 = F for
the 4th month
But in data analysis tool it comes in forecast of the
3rd month
please let me know why it does not come in the right sequence
and how to solve this issue
1 A-F^2 25.61 by using Normal...
Armer Company is accumulating data to use in preparing its annual profit plan for the coming year. The cost behavior pattern of the maintenance costs must be determined. The accounting staff has suggested the use of linear regression to derive an equation for maintenance hours and costs. Data regarding the maintenance hours and costs for the last year and the results of the regression analysis follow: Maintenance Machine Month Cost Hours $ 4,350 3,150 3,750 2,970 4,500 3,110 3,180 4,620...
Calculate a 3-months simple moving average, for each possible month of years 2014/2015/2016. Calculate the MAD, MSE and MAPE for this method. In addition to the formulas in the computer, show one manual calculation of a forecast of this method, for any month you choose (10 marks)JanFebMarAprMayJunJulAugSepOctNovDecYear474549485250515455566063201450515254565756595555658120155456585761626365676769752016
integrated mini-case: Disney’s Beta
When you go on the web to find a firm’s beta, you do not know
how recently it was computed, what index was used as a proxy for
the market portfolio, or which time series of returns the
calculations used. Earlier in this chapter, it was shown that when
we went on the Web to find a beta for Disney, we found the
following: MSN Money (1.29) and Yahoo! Finance (1.18). An
alternative is to compute...
Armer Company is accumulating data to use in preparing its annual profit plan for the coming year. The cost behavior pattern of the maintenance costs must be determined. The accounting staff has suggested the use of linear regression to derive an equation for maintenance hours and costs. Data regarding the maintenance hours and costs for the last year and the results of the regression analysis follow: Month Maintenance Cost Machine Hours Jan. $ 4,200 480 Feb. 3,000 320 Mar. 3,600...
5. In many sports, children born in the early months of the leader varet noticed by their coaches beca of the superiority they demonstrate due to their name. The following table give the position to all Canadian players born since 1951 in the National Law (NHL) given the player's birth month (Data from Addona, V., and Yates P.A (2010) Fffert in the National A Look at the Relative Age Effect in the a Hockey League," Journal of Quantitative Analysis in...
Armer Company is accumulating data to use in preparing its annual profit plan for the coming year. The cost behavior pattern of the maintenance costs must be determined. The accounting staff has suggested the use of linear regression to derive an equation for maintenance hours and costs. Data regarding the maintenance hours and costs for the last year and the results of the regression analysis follow Maintenance Machine 24 Month Cost $ 4,200 3,000 3,600 2,820 4,350 2,960 3,030 4,470...