How do i change the vector v to size 20 in C++.
Also given the following, which line of code stores 40 into the 4th column of the 6th row of array dataVals?
const int rows = 7;
const int cols = 5;
int dataVals[rows][cols];
Select one:
a. dataVals[5, 3] = 40;
b. dataVals[5 * 3] = 40;
c. dataVals[3][5] = 40;
d. dataVals[5][3] = 40;
In: Computer Science
HOMEWORK 1
This assignment is designed to illustrate how a software package such as Microsoft Excel supplemented by an add-in such as PHStat can enable one to calculate minimum sample sizes necessary in order to construct confidence intervals for both population means and proportions and to construct these types of confidence intervals. You should use PHStat in order to accomplish all parts of this assignment. You should not only find the required information, but you should explain the meanings of your results for each problem and part of each problem in the context of the problem. You also should provide business implications of the results at which you arrive for one part of either problems two and three and for problem five.
Scenario of the Problem:
In your memo, be sure to comment on the differences found in the calculation of the minimum sample sizes in the various parts of the above problem. Explain why differences in your answers exist. In doing so, make all comparisons relative to the answer found in the first part of the problem.
Appendix One: (Age of Supporters)
40 32 60 58 22 28 66 70 71 55 59 58 62 44 89 48 56 33 46 39 39 44 32 48 49 50 51 18 28 23 34 54 28 76 35 77 38 21 59 51 54 38 45 39 19 90 37 46 22 26 27 39 30 45 27
Comment on the changes in the minimum sample sizes you have computed based upon the changes in the information given in the three parts of this problem.
Appendix Two: (Loyal Party Supporter? (Y = yes, N = no))
Y Y Y Y N N Y Y Y Y N
Y N Y Y Y Y Y Y Y N Y
N Y Y Y Y Y Y Y Y Y Y
Y Y N N N Y Y Y Y Y Y
Y Y Y Y Y Y N Y N N Y
N Y Y Y Y Y Y Y Y N Y
Y Y Y N Y Y Y Y Y Y N
N Y Y Y Y Y Y Y Y Y Y
In: Math
HOMEWORK 1
This assignment is designed to illustrate how a software package such as Microsoft Excel supplemented by an add-in such as PHStat can enable one to calculate minimum sample sizes necessary in order to construct confidence intervals for both population means and proportions and to construct these types of confidence intervals. You should use PHStat in order to accomplish all parts of this assignment. You should not only find the required information, but you should explain the meanings of your results for each problem and part of each problem in the context of the problem. You also should provide business implications of the results at which you arrive for one part of either problems two and three and for problem five.
Scenario of the Problem:
In your memo, be sure to comment on the differences found in the calculation of the minimum sample sizes in the various parts of the above problem. Explain why differences in your answers exist. In doing so, make all comparisons relative to the answer found in the first part of the problem.
Appendix One: (Age of Supporters)
40 32 60 58 22 28 66 70 71 55 59 58 62 44 89 48 56 33 46 39 39 44 32 48 49 50 51 18 28 23 34 54 28 76 35 77 38 21 59 51 54 38 45 39 19 90 37 46 22 26 27 39 30 45 27
Comment on the changes in the minimum sample sizes you have computed based upon the changes in the information given in the three parts of this problem.
Appendix Two: (Loyal Party Supporter? (Y = yes, N = no))
Y Y Y Y N N Y Y Y Y N
Y N Y Y Y Y Y Y Y N Y
N Y Y Y Y Y Y Y Y Y Y
Y Y N N N Y Y Y Y Y Y
Y Y Y Y Y Y N Y N N Y
N Y Y Y Y Y Y Y Y N Y
Y Y Y N Y Y Y Y Y Y N
N Y Y Y Y Y Y Y Y Y Y
In: Math
Consider a two year 6% coupon bond that sells at a discount rate of 7% APR. At what price should the bond sell?
In: Finance
Two charges, q1 = 5 μC and q2 = 7 μC, are separated by 25 cm. Where should a third charge be placed on the line between them such that the resultant force on it will be zero? Does it matter if the third charge is positive or negative?
In: Physics
QUESTION 7
Which of the following measures the degree of linear association between two variables?
a. covariance. b. standard deviation. c. variance. d. coefficient of variation
QUESTION 8
If the sample size becomes larger, to which distribution does the sampling distribution of the sample mean converge?
a. Normal distribution. b. Poisson distribution. c. Binomial distribution. d. Uniform distribution.
QUESTION 9
Which of the following means an estimate of a population parameter that provides an interval of values believed to contain the value of the parameter?
a. Point estimate. b. Interval estimate. c. Standard error. d. Sample mean.
QUESTION 10
In hypothesis testing, which of the following means the tentative assumption about the population parameter?
a. Confidence level. b. Alternative hypothesis. c. Null hypothesis. d. Significance level.
In: Statistics and Probability
7. a) A firm producing two goods (X and Y) has the following profit (?) function: Profit: ? =80X-2X2 - XY-3Y2 +100Y Maximum Capacity: X+Y=12 What are the values of X and why that maximizes profits subject to the firm’s maximum capacity? b) Consider the following utility function for a consumer, who consumes goods X and Y whose prices are $8 and $12respectively. Utility function: U=XY+3X+Y If the consumer’s money income (budget is $112), what are the utility maximizing values of X and Y?
In: Economics
In: Advanced Math
7. Given the standard reduction potential for the following two half-cell reactions (in the presence of 1.00 M HCl):
Fe3+ + e <==> Fe2+, E0 = + 0.68 V
AsO4 - + 2H+ + 2e <==> AsO3 - + H2O, Eo = +0.559 V.
Please calculate the system potential at the equivalence point when Fe3+ was used to titrate AsO3 - in the presence of 1.00 M HCl.
Answer: 0.60 V
In: Chemistry
a) 1.8 amperes b) 45 amperes c) 0.05 amperes d) 1 ampere e) 3.5 amperes
a) 2 volts b) 10 volts c) 3 volts d) 0.25 volts e) 5 volts
3. If R1 and R2 are now connected in parallel, what is their effective resistance?
a) 2.1 ohms b) 10 ohms c) 14.8 ohms d) 0.04 ohms e) 4 ohms
. A 10 volt battery is connected to a RC DISCHARGE circuit made up of an unknown capacitor that is connected in parallel with a 1,000 ohm resistor. If the half life of this circuit is 10 seconds, what is the value of the unknown capacitor?
a) 0.0144 F b) 12.28 F c) 16.2 F d) 0.025 F e) 693 F
5. How long will it take this circuit to discharge from 10 volts to 1.25 volts?
a) 22 s b) 69 s c) 100 s d) 30 s e) 125 s
a) 0.1 meters b) 15 meters c) 2 meters d) 7.07 meters d) 0.005 meters
In: Physics