Questions
Program must be in C++! Write a program which: Write a program which uses the following...

Program must be in C++!

Write a program which: Write a program which uses the following arrays: empID: An array of 7 integers to hold employee identification numbers. The array should be initialized with the following values: 1, 2, 3, 4, 5, 6, 7. Hours: an array of seven integers to hold the number of hours worked by each employee. payRate: an array of seven doubles to hold each employee’s hourly pay rate. Wages: an array of seven doubles to hold each employee’s gross salary. The program should display each employee number and ask the user to enter that employee’s hours and pay rate. It should then calculate the gross wages for that employee (hours times pay rate) and store them in the wages array. After the data has been entered for all the employees, the program should display each employee’s identification number and gross wages. General Restrictions : No global variables No labels or go-to statements No infinite loops, examples include: for(;;) while(1) while(true) do{//code}while(1); No break statements to exit loops.

In: Computer Science

Nonparametric tests should not be used when ______. the associations being tested involve categorical variables the...

Nonparametric tests should not be used when ______.

the associations being tested involve categorical variables

the dependent variables are ordinal scales

the assumptions of parametric tests are met

the population distribution is heavily skewed

The chi-square tests are used to analyze ______.

Medians

frequency of data

continuous variables

skewness

The ______ tests are more powerful than the ______ tests, which means the ______ is higher for nonparametric tests.

parametric; nonparametric; type II error

nonparametric; parametric; type I error

parametric; nonparametric; type I error

nonparametric; parametric; type II error

If a 3 × 3 table is presented, then you know that a study used ______ independent variables each with ______ categories.

nine; two

two; four

three; three

two; three

Expected frequencies are obtained in rows-by-columns table assuming that the row and column categorizations are ______.

independent of each other

equal

related to each other

dependent on each other

Which of the following is a possible null hypothesis for a chi-square test?

The two categorical variables are unrelated in the population.

The means of populations in two independent groups are equal.

The two categorical variables are related in the population.

The distribution of scores for the first population is different from the distribution of scores for the second population.

If you have a 5 × 5 frequency table, then the critical value of chi-square would be based on ______ degrees of freedom.

16

8

10

25

Below are the number of acts of graffiti that occur on walls painted white, painted blue, or covered with chalkboard. Ho is frequencies of graffiti are equal in the population. With N = 30, fe = N/k = 30/3 = 10 for each category.

What is the critical value for this test?

White

Blue

Chalk

fo = 8

fo = 8

fo = 8

fe = 10

fe = 10

fe = 10

3.84

5.99

9.21

9.57

Below are the number of acts of graffiti that occur on walls painted white, painted blue, or covered with chalkboard. Ho is frequencies of graffiti are equal in the population. With N = 30, fe = N/k = 30/3 = 10 for each category.

What is the appropriate obtained value for this test?

White

Blue

Chalk

fo = 8

fo = 8

fo = 8

fe = 10

fe = 10

fe = 10

7.80

2.60

3.90

5.99

Below are the number of acts of graffiti that occur on walls painted white, painted blue, or covered with chalkboard. Ho is frequencies of graffiti are equal in the population. With N = 30, fe = N/k = 30/3 = 10 for each category.

In the population, we expect _____% of graffiti on white walls, _____% on blue walls, and _____% on chalkboard walls.

White

Blue

Chalk

fo = 8

fo = 8

fo = 8

fe = 10

fe = 10

fe = 10

58%; 21%; 19%

27%; 17%; 57%

50%; 25%; 25%

33%; 33%; 33%

In: Math

A) At the local pizza parlor people line up outside in their masks and proceed 1...

A) At the local pizza parlor people line up outside in their masks and proceed 1 at a time into the store to pay for and pick up the pizza. The manager who receives the orders for the pizzas wants to minimize peoples wait time. So she keeps track of the wait times for 25 people in mimutes: 40, 32, 5, 14, 7, 9, 13, 8, 9, 15, 11, 9, 15, 13, 14, 14, 7, 10, 13, 15, 18, 8, 18, 11, 7 A)Check to see if the data is normal using the normal plot.

B)If it looks normal, construct a 95% confidence bound for the mean wait time, otherwise, construct a 95% confidence bound for the median wait time.

In: Statistics and Probability

An SAT prep course claims to improve the test score of students. The table below shows...

An SAT prep course claims to improve the test score of students. The table below shows the scores for seven students the first two times they took the verbal SAT. Before taking the SAT for the second time, each student took a course to try to improve his or her verbal SAT scores. Do these results support the claim that the SAT prep course improves the students' verbal SAT scores?

Let d=(verbal SAT scores prior to taking the prep course)−(verbal SAT scores after taking the prep course)d=(verbal SAT scores prior to taking the prep course)−(verbal SAT scores after taking the prep course). Use a significance level of α=0.01α=0.01 for the test. Assume that the verbal SAT scores are normally distributed for the population of students both before and after taking the SAT prep course.

Student 1 2 3 4 5 6 7
Score on first SAT 370 380 450 500 360 400 360
Score on second SAT 420 480 500 580 400 460 400

Step 2 of 5 :

Find the value of the standard deviation of the paired differences. Round your answer to one decimal place.

In: Statistics and Probability

a.Calculate the total sum of squares​ (SST) and partition the SST into its two​ components, the...

a.Calculate the total sum of squares​ (SST) and partition the SST into its two​ components, the sum of squares between​ (SSB) and the sum of squares within​ (SSW).

b. Use these values to construct a​ one-way ANOVA table.

c. Using alpha equals0.05, what conclusions can be made concerning the population​ means?

Sample_1   Sample_2   Sample_3
3                       1              7
2                       3              6
16                     5              3
                                           8

Determine the values.

SSTequals

SSBequals

SSWequals

​b) Complete the​ one-way ANOVA table below.

Source

Sum of Squares

Degrees of Freedom

Mean Sum of Squares

F

Between

nothing

Within

nothing

Total

nothing

nothing

​(Type integers or decimals. Round to three decimal places as​ needed.)

​c) Let mu 1 mu 2 and mu 3 be the population means of samples​ 1, 2, and​ 3, respectively. What are the correct hypotheses for a​ one-way ANOVA​ test?

What is the critical​ F-score,

What is the correct conclusion about the population​ means?

In: Statistics and Probability

Statistics exercises Friedman’s K/One-way repeated measures ANOVA 1. Suppose you are interested in learning if practice...

Statistics exercises

Friedman’s K/One-way repeated measures ANOVA

1. Suppose you are interested in learning if practice on the ACT improves test scores. You sample a random group of 10 people and ask them to take the ACT 1 time per week for 3 consecutive weeks. Use the data below to determine if practice improves test scores.

Participant

Test 1

Test 2

Test 3

1

18

23

24

2

20

22

26

3

21

24

23

4

19

25

28

5

20

21

23

6

19

22

25

7

20

20

20

8

21

23

25

9

28

27

29

10

25

27

26

  1. State the hypotheses
  1. Select an alpha level and one- or two-tailed
  1. Select and compute the appropriate statistic

  1. Report in APA style the df and p-value.
  1. Accept or reject the null and draw an inference if one is warranted.

In: Statistics and Probability

Which of the following will shift the demand curve for a good? A change in the...

  1. Which of the following will shift the demand curve for a good?

A change in the cost of materials used to make the good

None of these answers

A change in the price of the good

A change in per unit taxes on sellers

A change in the technology used in producing the good

2) Suppose consumer incomes decrease. In the market for a normal good, at the original equilibrium price this would create:

Excess supply

An increase in production

A decrease in production

Excess demand

  1. Suppose a market is characterized by consumers waiting in long lines and persistent shortages of the good. This is most likely the result of which government action?

A decrease in taxes on the good

The setting of a price floor

An increase in taxes on the good

The setting of a price ceiling

4)Wood is an important material in the production of housing. What would happen to the equilibrium price and quantity of houses if wood prices drastically increased?

Group of answer choices

Prices will increase, Quantity will increase

Prices will increase, Quantity will decrease

Prices will decrease, Quantity will increase

Prices will decrease, Quantity will decrease

5)Suppose the equilibrium price in a market is $5.00 per unit. Which of the following would be an example of a non-binding price ceiling?

Group of answer choices

A law preventing sellers from charging less than $4.00

A law preventing sellers from charging more than $4.00

A law preventing sellers from charging less than $6.00

A law preventing sellers from charging more than $6.00

6)Suppose a binding price floor is placed on the sale of DVDs. Which of the following would you expect to see in the market for DVDs?

Group of answer choices

Consumers will wait in long lines in order to purchase the DVDs

The quality of the DVD and service provided by sellers may increase

Some consumers will buy the good at the legal price and then resell the DVD in the black market.

Consumers will bribe store owners for the right to buy DVDs.

7)Tim, Cindy, Fred, and Joe are shopping at Walmart for sweatpants. The most each is willing to pay is $10, $13, $7, and $22. If the actual price of sweatpants is $12, how much consumer surplus is created?

Group of answer choices

$17

$7

$11

$35

8)Suppose the government increases taxes on sales of milk. This will lead to

Group of answer choices

A decrease in demand

An increase in demand

A decrease in quantity demanded

An increase in supply

9) Suppose a market has the following points on its demand curve:

Price      70           65           60           55           50           45           40

QandD 0               10           20           30           40           50           60

     

Assuming the price is $50, how much consumer surplus exists in this market?

Group of answer choices

1000

400

50

500

In: Economics

Assume that when adults with smartphones are randomly​ selected, 44​% use them in meetings or classes....

Assume that when adults with smartphones are randomly​ selected, 44​% use them in meetings or classes. If 7 adult smartphone users are randomly​ selected, find the probability that at least 4 of them use their smartphones in meetings or classes.

In: Statistics and Probability

(using single linkedlist c++)In this assignment, you will implement a Polynomial linked list(using single linkedlist only),...

(using single linkedlist c++)In this assignment, you will implement a Polynomial linked list(using single linkedlist only), the coefficients and exponents of the polynomial are defined as a node. The following 2 classes should be defined. p1=23x 9 + 18x 7+3 1. Class Node ● Private member variables: coefficient (double), exponents (integer), and next pointer. ● Setter and getter functions to set and get all member variables ● constructor 2. Class PolynomialLinkedList ● Private member variable to represent linked list (head) ● Constructor ● Public Function to create a Node ● Public function to insert the Node to the linked list (sorted polynomial according to the exponent). ● Public function to print the polynomial in the elegant format: 23x 9 + 18x 7+3 ● Overloaded public function to allow adding two polynomials poly3=poly1+poly2 (23x 9 + 9x 7+3)+(2x 4+3x 7+8x 2 -6) =23x 9 +12 x 7+2x 4+8x 2 -3 ● Overloaded public function to allow negating (!) the sign of any polynomial poly3=!poly1 2x 4+3x 7+8x 2 -6 =- 2x 4 -3x 7+8x 2+6 ● Overloaded public function to allow multiplying two polynomials ● Public function to evaluate polynomial based on an input If x=1, then the value of this polynomial 2x 4+3x 7+8x 2 -6 should be 2(1) 4+3(1) 7+8(1) 2 -6 =7 3. Main ● Main menu to test the following tasks ○ cout << "1. Create polynomial \n"; ○ cout << "2. Print polynomial \n"; ○ cout << "3. Add two polynomilas \n"; ○ cout << "4. Negate polynomial \n"; ○ cout << "5. Multiply two polynomials \n "; ○ cout << "6. Evaluate polynomial \n "; ○ cout << "7. Exit \n";(using single linkedlist only)(using single linkedlist only)(using single linkedlist only)(using single linkedlist only)(using single linkedlist only)(using single linkedlist only)(using single linkedlist only)(using single linkedlist only)(using single linkedlist only)

In: Computer Science

MCE Craig, Inc., has provided the following information for one of its products for each hour...

MCE

Craig, Inc., has provided the following information for one of its products for each hour of production:

Actual velocity: 200 units (per hour)
Move time: 17 minutes
Inspection time: 11 minutes
Rework time: 14 minutes

Required:

1. Calculate MCE. If required, round your answer to two decimal places.

2. What is the theoretical cycle time? Calculate MCE using actual and theoretical cycle times. If required, round your answers to two decimal places.

Theoretical cycle time ? minutes
Actual cycle time ? minutes
MCE ?

3. What if waste is reduced by 40 percent?
New waste = _________ minutes

What is the new MCE? If required, round your answer to two decimal places. _________?

What is the new cycle time?
____________ minutes?

In: Accounting