Questions
How do i change the vector v to size 20 in C++. Also given the following,...

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...

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:

  1. You have been asked by a certain political party to study the mean age of the supporters of a certain candidate who is running for public office in an upcoming election. A random sample of those who have demonstrated their support for the candidate will be chosen in order to accomplish the desired study. In order to provide estimates of the population mean age of the supporters of this candidate, what minimum sample sizes will be necessary under the following conditions?                          
  1. The estimate desired will need to be computed with 98% confidence to within ±2 years when it is felt that the population standard deviation in the ages of the supporters of the candidate is 7.5 years.            
  2. The estimate desired will now need to be computed with 95% confidence to within ±2 years when the population standard deviation is 7.5 years.                                                                          
  3. The estimate desired will now need to be computed with 98% confidence to within ±2 years when the population standard deviation is 6 years.                                                                              
  4. The estimate desired will now need to be computed with 98% confidence to within ±3 years when the population standard deviation is 7.5 years.                                                                          

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.                                                                                        

  1. You now need to construct a confidence interval for the mean age of the supporters of the candidate. You select a random sample of 80 identified supporters of the candidate. You find that their mean age is 44.57 years. You believe that the population standard deviation of the ages of the supporters of the candidate is 7.5 years. Construct both 98% and 95% confidence intervals for the mean age of the supporters of the candidate. In your explanation, comment upon the effect of the change in confidence level on the width of your interval.
  1. You no longer believe that the population standard deviation in the ages of the supporters of the candidate is a known quantity. You therefore will use the sample standard deviation of the ages of the supporters as an estimate of this unknown population standard deviation. You collect data from a random sample of supporters of the candidate. The data identifies the ages of a sample of the supporters of the candidate. This data is shown in appendix one below. Construct both 98% and 95% confidence intervals for the mean age of the supporters of the candidate for this situation. At each confidence level, comment upon the change in the results of this problem from the results of the previous 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       

  1. You also need to estimate the population proportion of supporters of the candidate that are usually loyal supporters of the political party that this candidate represents based upon their attesting to this fact and their previous voting record. What minimum sample sizes will be necessary in order to estimate the desired population proportion under the following conditions?
  1. The estimate is desired to within ±8% with 98% confidence when the population proportion of supporters of the party is thought to equal 80%.
  2. The estimate is desired to within ±8% with 98% confidence when the population proportion of supporters of the party is unknown.
  3. The estimate is desired to within ±8% with 98% confidence when the population proportion of supporters of the party is thought to equal 95%.

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.

  1. You now need to estimate with 98% confidence the population proportion of supporters of the candidate that describes itself as loyal to the political party represented by the candidate. You randomly sample the population of supporters of the candidate and ascertain whether each one has been a loyal party supporter. The results of that sampling process are shown in appendix two below. Using this information, construct the required confidence interval.

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...

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:

  1. You have been asked by a certain political party to study the mean age of the supporters of a certain candidate who is running for public office in an upcoming election. A random sample of those who have demonstrated their support for the candidate will be chosen in order to accomplish the desired study. In order to provide estimates of the population mean age of the supporters of this candidate, what minimum sample sizes will be necessary under the following conditions?                          
  1. The estimate desired will need to be computed with 98% confidence to within ±2 years when it is felt that the population standard deviation in the ages of the supporters of the candidate is 7.5 years.            
  2. The estimate desired will now need to be computed with 95% confidence to within ±2 years when the population standard deviation is 7.5 years.                                                                          
  3. The estimate desired will now need to be computed with 98% confidence to within ±2 years when the population standard deviation is 6 years.                                                                              
  4. The estimate desired will now need to be computed with 98% confidence to within ±3 years when the population standard deviation is 7.5 years.                                                                          

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.                                                                                        

  1. You now need to construct a confidence interval for the mean age of the supporters of the candidate. You select a random sample of 80 identified supporters of the candidate. You find that their mean age is 44.57 years. You believe that the population standard deviation of the ages of the supporters of the candidate is 7.5 years. Construct both 98% and 95% confidence intervals for the mean age of the supporters of the candidate. In your explanation, comment upon the effect of the change in confidence level on the width of your interval.
  1. You no longer believe that the population standard deviation in the ages of the supporters of the candidate is a known quantity. You therefore will use the sample standard deviation of the ages of the supporters as an estimate of this unknown population standard deviation. You collect data from a random sample of supporters of the candidate. The data identifies the ages of a sample of the supporters of the candidate. This data is shown in appendix one below. Construct both 98% and 95% confidence intervals for the mean age of the supporters of the candidate for this situation. At each confidence level, comment upon the change in the results of this problem from the results of the previous 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       

  1. You also need to estimate the population proportion of supporters of the candidate that are usually loyal supporters of the political party that this candidate represents based upon their attesting to this fact and their previous voting record. What minimum sample sizes will be necessary in order to estimate the desired population proportion under the following conditions?

  1. The estimate is desired to within ±8% with 98% confidence when the population proportion of supporters of the party is thought to equal 80%.
  2. The estimate is desired to within ±8% with 98% confidence when the population proportion of supporters of the party is unknown.
  3. The estimate is desired to within ±8% with 98% confidence when the population proportion of supporters of the party is thought to equal 95%.

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.

  1. You now need to estimate with 98% confidence the population proportion of supporters of the candidate that describes itself as loyal to the political party represented by the candidate. You randomly sample the population of supporters of the candidate and ascertain whether each one has been a loyal party supporter. The results of that sampling process are shown in appendix two below. Using this information, construct the required confidence interval.

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....

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....

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....

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:...

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

Develop a LP problem with at least 7 constraints (including two integer variables) to solve it...

Develop a LP problem with at least 7 constraints (including two integer variables) to solve it using any solver.

we have to create a problem. any problem should be fine. please take any problem.

In: Advanced Math

7. Given the standard reduction potential for the following two half-cell reactions (in the presence of...

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 10-volt voltage source is connected in a series arrangement with two resistors (R1 = 7...

  1. A 10-volt voltage source is connected in a series arrangement with two resistors (R1 = 7 ohms, R2 = 3 ohms). The current flowing in each resistor is:

a) 1.8 amperes   b) 45 amperes   c) 0.05 amperes   d) 1 ampere    e) 3.5 amperes

  1. What is the voltage across R2 in the above circuit?

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

  1. A wire carrying 10 amperes of current is oriented at 90 degrees with respect to a magnetic field of 5 Tesla. How long must the wire be to generate a force of 5 Newtons?

a) 0.1 meters   b) 15 meters   c) 2 meters   d) 7.07 meters    d) 0.005 meters

In: Physics