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...
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
JayJay Video Concepts produces a line of videodisc players to be linked to personal computers for video games. Videostick have much faster access time than tape. With such a video link, the game becomes a very realistic experience. In a simple driving game where the joystick steers the vehicle, rather than seeing computer graphics on the screen, the player is actually viewing a segment of a videodisc shot from a real moving vehicle. Depending on the action of the player...
The Language Is SQL
The language is SQL
13- List full details of agents with first names having exactly three or four letters sorted by the state attribute. 14- List the first name, the last name, the address, the city, the state, the branch number, and the email of agents working in the branch 8005 and having email addresses from yahoo.com. 15-List the first name, the last name, the address, the city, the state, the branch number, and the email...
Demand Forecasting for the Inner-city Health Center Inner City Health Center is a federally funded health clinic that serves the needs of the inner-city poor. Currently the center is at the end of third-year operation and is preparing its staffing plan for the upcoming year. The federal government requires that the center prepare a budget request each year. The request is based largely on the forecast of the # of Patient Visit for specific services during the next year. The...
Is it reasonable to claim that the average number of observed tornadoes per year is different from the average number of tornado related deaths per year? 5. What test/procedure did you perform? a. One-sided t-test b. Two-sided t-test c. Regression d. Confidence interval 6. What is the P-Value/margin of error? a. 0.007034504 b. 0.34922 c. 4.07497E-24 d. 2.03749E-24 e. None of these 7. Statistical Interpretation a. Since P-value is very small we are confident that the number of tornadoes will...
1. Develop a monthly cash budget for Bluffton Pharmacy for the
upcoming year.
2. If you were Bluffton Pharmacy's banker, would you be
comfortable extending a line of credit to the pharmacy?
dors grant "net 30" ays for the goods month. Crawford the upcoming year November and The interest rate e repaid the follow- Case 7 Bluffton Pharmacy, Part 2 of goods sold is 77.4 percent, and vendors grant How should the owners of a small credit terms, which means...
Code is in C#
Your instructor would like to thank to Marty Stepp and Hélène Martin at the University of Washington, Seattle, who originally wrote this assignment (for their CSE 142, in Java) This program focuses on classes and objects. Turn in two files named Birthday.cs and Date.cs. You will also need the support file Date.dll; it is contained in the starter project for this assignment. The assignment has two parts: a client program that uses Date objects, and a...