Questions
Write a program (in C, or Java, or C++, or C#) that creates three new threads...

Write a program (in C, or Java, or C++, or C#) that creates three new threads (besides the already existing main thread) and synchronizes them in such a way that each thread displays it's thread id in turn for 5 iterations. The output of the program should look like this:

Thread 1 - iteration no. 1

Thread 2 - iteration no. 1

Thread 3 - iteration no. 1

Thread 1 - iteration no. 2

Thread 2 - iteration no. 2

Thread 3 - iteration no. 2

Thread 1 - iteration no. 3

Thread 2 - iteration no. 3

Thread 3 - iteration no. 3

Thread 1 - iteration no. 4

Thread 2 - iteration no. 4

Thread 3 - iteration no. 4

Thread 1 - iteration no. 5

Thread 2 - iteration no. 5

Thread 3 - iteration no. 5

In: Computer Science

Use a multiple regression model with dummy variables as follows to develop an equation to account for seasonal effects in the data.

Quarter Year 1 Year 2 Year 3
1 3 6 8
2 2 4 8
3 4 7 9
4 6 9 11
(b) Use a multiple regression model with dummy variables as follows to develop an equation to account for seasonal effects in the data. Qtr1 = 1 if Quarter 1, 0 otherwise; Qtr2 = 1 if Quarter 2, 0 otherwise; Qtr3 = 1 if Quarter 3, 0 otherwise.
If required, round your answers to three decimal places. For subtractive or negative numbers use a minus sign even if there is a + sign before the blank. (Example: -300) If the constant is "1" it must be entered in the box. Do not round intermediate calculation.
ŷ =  +___  Qtr1 + ___ Qtr2 + ___ Qtr3
Compute the quarterly forecasts for next year based on the model you developed in part (b).
If required, round your answers to three decimal places. Do not round intermediate calculation.
Year Quarter Ft
4 1
4 2
4 3
4 4
Use a multiple regression model to develop an equation to account for trend and seasonal effects in the data. Use the dummy variables you developed in part (b) to capture seasonal effects and create a variable t such that t = 1 for Quarter 1 in Year 1, t = 2 for Quarter 2 in Year 1,… t = 12 for Quarter 4 in Year 3.
If required, round your answers to three decimal places. For subtractive or negative numbers use a minus sign even if there is a + sign before the blank. (Example: -300)
ŷ =  + __ Qtr1 +__  Qtr2 +__  Qtr3 +___  t
Compute the quarterly forecasts for next year based on the model you developed in part (d).
Do not round your interim computations and round your final answer to three decimal places.
Year Quarter Period Ft
4 1 13
4 2 14
4 3 15
4 4 16
Is the model you developed in part (b) or the model you developed in part (d) more effective?
If required, round your intermediate calculations and final answer to three decimal places.
Model developed in part (b) Model developed in part (d)
MSE

In: Statistics and Probability

Sales Data provides data on a sample of customers. An industry trade publication stated that the...

Sales Data provides data on a sample of customers. An industry trade publication stated that the average profit per customer for this industry was at least $4,500. Using a test of hypothesis, do the data support this claim or not?

Customer Percent Gross Profit Gross Sales Gross Profit Industry Code Competitive Rating*
1 51.0% $170.00 $86.70 1 2
2 32.0% $181.00 $57.92 3 4
3 20.0% $203.00 $40.60 2 2
4 22.0% $249.00 $54.78 5 1
5 21.0% $476.00 $99.96 5 1
6 21.0% $476.00 $99.96 5 4
7 22.0% $635.00 $139.70 2 3
8 34.0% $856.00 $291.04 3 3
9 26.0% $1,062.00 $276.12 4 2
10 16.6% $1,110.00 $183.71 7 3
11 20.0% $1,153.00 $230.60 7 3
12 36.0% $1,392.00 $501.12 4 2
13 18.0% $1,743.00 $313.74 4 2
14 20.0% $2,307.00 $461.40 7 3
15 5.0% $2,534.00 $126.70 4 5
16 29.0% $2,683.00 $778.07 7 2
17 10.0% $2,780.00 $278.00 2 3
18 37.0% $3,272.00 $1,210.64 5 3
19 60.0% $3,864.00 $2,318.40 7 1
20 24.0% $3,988.00 $957.12 6 3
21 9.0% $4,072.00 $366.48 7 3
22 50.0% $4,190.00 $2,095.00 5 3
23 17.0% $4,219.00 $717.23 3 4
24 32.0% $4,711.00 $1,507.52 7 1
25 15.0% $4,824.00 $723.60 6 3
26 10.0% $4,878.00 $487.80 7 4
27 13.0% $5,157.00 $670.41 7 2
28 22.0% $5,552.00 $1,221.44 2 3
29 17.0% $5,876.00 $998.92 1 3
30 19.0% $5,888.00 $1,118.72 6 4
31 6.0% $7,632.00 $457.92 5 4
32 23.0% $8,058.00 $1,853.34 3 3
33 23.0% $12,056.00 $2,772.88 7 2
34 14.0% $12,981.00 $1,817.34 2 4
35 22.0% $13,406.00 $2,949.32 2 3
36 14.0% $15,882.00 $2,223.48 7 3
37 28.0% $16,343.00 $4,576.04 3 3
38 27.0% $19,985.00 $5,395.95 5 3
39 3.0% $20,160.00 $604.80 5 5
40 46.0% $26,616.00 $12,243.36 5 2
41 26.0% $28,018.00 $7,284.68 5 3
42 11.0% $28,950.00 $3,184.50 4 4
43 18.0% $29,646.00 $5,336.28 4 3
44 37.0% $31,019.00 $11,477.03 6 1
45 20.0% $31,305.00 $6,261.00 2 3
46 21.0% $34,769.00 $7,301.49 7 1
47 10.0% $34,817.00 $3,481.70 4 3
48 14.0% $38,609.00 $5,405.26 1 3
49 9.0% $38,923.00 $3,503.07 2 5
50 16.0% $40,536.00 $6,485.76 4 3
51 22.0% $54,851.00 $12,067.22 6 2
52 21.0% $54,861.00 $11,520.81 7 2
53 17.0% $58,063.00 $9,870.71 5 4
54 11.0% $62,862.00 $6,914.82 4 5
55 7.0% $78,574.00 $5,500.18 3 5
56 14.0% $92,776.00 $12,988.64 4 3
57 15.0% $112,837.00 $16,925.55 1 4
58 13.0% $115,999.00 $15,079.87 4 5
59 21.0% $120,854.00 $25,379.34 5 4
60 14.0% $179,101.00 $25,074.14 6 3
*Rates the amount of competition for sales of the products sold to these customers: 1 = very little competition to 5 = very competitive

In: Economics

Write an Assembley Language.Given a number x, determine whether the given number is Armstrong number or...

Write an Assembley Language.Given a number x, determine whether the given number is Armstrong number or not. A positive integer of n digits is called an Armstrong number of order n(where order is the number of digits) if.

   abcd... = pow(a,n) + pow(b,n) + pow(c,n) + pow(d,n) + ....

Example:

  • Input : 153 Output : Yes, 153 is an Armstrong number. 1*1*1 + 5*5*5 + 3*3*3 = 153
  • Input : 120 Output : No, 120 is not a Armstrong number. 1*1*1 + 2*2*2 + 0*0*0 = 9
  • Input : 1253 Output : No, 1253 is not a Armstrong Number 1*1*1*1 + 2*2*2*2 + 5*5*5*5 + 3*3*3*3 = 723
  • Input : 1634 Output : Yes, 1*1*1*1 + 6*6*6*6 + 3*3*3*3 + 4*4*4*4 = 1634

HINT: Use the ReadString function found in the Irvine32 library to capture the user's input.

In: Computer Science

Eight artists have been asked to rate the visual characteristics of a painting done first by...

Eight artists have been asked to rate the visual characteristics of a painting done first by black and white, and then in multicolor.. After each of the paintings is finished, it is rated on a scale from 1 to 5 with 1 being best and 5 being worst. The results of the rating were shown below: Can you conclude that multicolor painting is better than just black and white? (Use α = 0.05.)

ARTTIST BLACK AND WHITE MULTICOLOR
A 5 1
B 4 2
C 1 2
D 4 3
E 3 1
F 4 4
G 4 5
H 2 3

In: Math

Do people under 40 defecate more than 3 times a day? I need to find a...

Do people under 40 defecate more than 3 times a day? I need to find a proper hypothesis testing and I am unsure of what data to actually use to construct the claim, NULL, ALT, SIGNIFICANCE LEVEL and appropiate test statistics. (AGE/TIMES PER DAY)

40 4
43 1
42 2
70 1
66 3
27 2
69 4
70 1
47 3
48 1
43 2
28 2
37 6
20 1
20 0
39 5
24 5
21 3
20 1
21 3
18 1
22 1
23 1
19 2
23 2
17 4
42 1
45 2
24 2
67 1

In: Statistics and Probability

MULTIPLE CHOICE QUESTIONS QUESTION 1 Most of the volume of normal human blood is composed of:...

MULTIPLE CHOICE QUESTIONS

QUESTION 1

  1. Most of the volume of normal human blood is composed of:

    1.

    red cells

    2.

    hemoglobin

    3.

    plasma

    4.

    white cells

QUESTION 2

  1. Also called white blood cells

    1.

    Thrombocytes

    2.

    Erythrocytes

    3.

    Platelets

    4.

    Leukocytes

QUESTION 3

  1. Platelets are formed from what type of cell?

    1.

    Melanocytes

    2.

    Macrophages

    3.

    Astrocytes

    4.

    Megakaryocytes

QUESTION 4

  1. Which of the following statements is true regarding the ABO blood system?

    1.

    People who have the A antigen normally would not produce the anti-A antibody.

    2.

    People who are type AB normally produce both anti-A and anti-B antibodies

    3.

    The only ABO type blood that normally does not have either A or B antigens is AB.

QUESTION 5

  1. Hematopoietic organs of fetus

    1.

      Liver and spleen

    2.

    Bone marrow of flat bone

    3.

    Kidney and spleen

    4.

    Epiphyses of long bone

QUESTION 6

  1. The relatively clear liquid medium which carries the other cells of blood is called:

    1.

    lipid


    2.

    antibody

    3.

    plasma

QUESTION 7

  1. Which of the following statements is true about the ABO blood system?

    1.

    It was discovered in the 1950's

    2.

    It was discovered by Karl Landsteiner

    3.

    Few people are actually typed for this system because of the difficulty of the procedure and high cost.

    4.

    a and b

1 points   

QUESTION 8

  1. The hormone erythropoietin stimulates red blood cell production in the red bone marrow. Where in the body is erythropoietin produced?

    1.

    Spleen

    2.

    Kidney

    3.

    Liver

    4.

    Thyroid

1 points   

QUESTION 9

  1. Hematopoietic organs of adults

    1.

    Liver and spleen

    2.

    Kidney and spleen

    3.

    Epiphyses of long bone

    4.

    Bone marrow of flat bone

1 points   

QUESTION 10

  1. When a fetus' blood is agglutinated by its mother's Rh antibodies, the severe anemia that results is called:     

    1.

    immunization

    2.

    ectopic pregnancy

    3.

    erythroblastosis fetalis

1 points   

QUESTION 11

  1. Average value of an adult's hematocrit

    1.

    80 %

    2.

    45 %

    3.

    70%

    4.

    30%

1 points   

QUESTION 12

  1. Thrombocytes are not blood cells

    True

    False

1 points   

QUESTION 13

  1. Hematopoiesis

    1.

    formation and maturation of blood cells from hematopoietic stem cells

    2.

    breakdown of red blood cells

    3.

    formation of leukocytes

    4.

    color pigment of red blood cells

In: Anatomy and Physiology

Based on the status quo population parameter value (Opportunity Amount USD 91637.26) and information (or lack...

Based on the status quo population parameter value (Opportunity Amount USD 91637.26) and information (or lack thereof) regarding the population standard deviation, you will conduct a one tailed hypothesis test based on a level of significance of alpha=0.05. You will choose between a lower and upper tailed test based on your calculated sample mean: -If your sample mean is lower than the status quo population mean, you will be testing that it has decreased from the norm. -If your sample mean is higher than the status quo population mean, you will be testing that it has increased from the norm. Be sure to state the Null and Alternative Hypotheses, the Test Statistic, the Critical Value, and the Test Conclusion. Explain in words how the conclusion of the test could impact the business.

Opportunity.Number Supplies.Subgroup Supplies.Group Region Elapsed.Days.In.Sales.Stage Opportunity.Result Sales.Stage.Change.Count Total.Days.Identified.Through.Closing Opportunity.Amount.USD Client.Size.By.Revenue

Deal.Size.Category

6003579 Replacement Parts Car Accessories Pacific 36 Won 4 6 3000 4 1
6193895 Motorcycle Parts Performance & Non-auto Pacific 85 Loss 2 32 77507 1 4
6302462 Shelters & RV Performance & Non-auto Pacific 87 Loss 2 25 86808 2 4
6813830 Batteries & Accessories Car Accessories Pacific 65 Loss 4 26 355000 1 6
6824867 Motorcycle Parts Performance & Non-auto Midwest 43 Won 4 9 1600 4 1
6837544 Batteries & Accessories Car Accessories Pacific 35 Loss 5 55 117191 1 5
6892231 Replacement Parts Car Accessories Northwest 73 Loss 4 15 39156 1 3
6978782 Shelters & RV Performance & Non-auto Midwest 39 Loss 5 45 493000 2 6
7042696 Replacement Parts Car Accessories Northwest 61 Loss 3 22 52631 4 4
7101959 Interior Accessories Car Accessories Northwest 74 Loss 3 6 60240 1 4
7106427 Batteries & Accessories Car Accessories Northwest 16 Loss 2 64 174418 1 5
7220419 Exterior Accessories Car Accessories Midwest 67 Loss 3 7 350000 4 6
7227288 Exterior Accessories Car Accessories Midwest 74 Loss 2 1 25000 1 3
7227293 Replacement Parts Car Accessories Northwest 40 Loss 3 35 99000 1 4
7254613 Shelters & RV Performance & Non-auto Pacific 35 Loss 2 39 120000 3 5
7305209 Exterior Accessories Car Accessories Pacific 47 Loss 2 26 38753 1 3
7583892 Replacement Parts Car Accessories Pacific 54 Won 5 8 6165 1 1
7591583 Batteries & Accessories Car Accessories Northwest 16 Loss 2 45 5813 1 1
7657636 Garage & Car Care Car Accessories Midwest 52 Won 3 7 46203 1 3
7872502 Interior Accessories Car Accessories Pacific 45 Loss 2 5 3000 1 1
7892585 Motorcycle Parts Performance & Non-auto Midwest 16 Loss 3 33 50000 1 4
7897420 Motorcycle Parts Performance & Non-auto Midwest 8 Won 3 41 235000 1 5
7968158 Shelters & RV Performance & Non-auto Pacific 38 Loss 2 10 279026 1 6
8127740 Towing & Hitches Car Accessories Northwest 38 Loss 2 5 7228 1 1
8149161 Motorcycle Parts Performance & Non-auto Midwest 21 Loss 2 20 23312 1 2
8158105 Motorcycle Parts Performance & Non-auto Midwest 28 Won 4 13 160000 1 5
8327470 Interior Accessories Car Accessories Midwest 3 Loss 3 32 52000 1 4
8488548 Replacement Parts Car Accessories Midwest 7 Loss 4 22 50000 1 4
8536833 Batteries & Accessories Car Accessories Midwest 27 Won 1 0 10000 1 2
9560637 Motorcycle Parts Performance & Non-auto Pacific 8 Won 3 10 109 1 1
5661353 Motorcycle Parts Performance & Non-auto Southeast 85 Loss 4 54 179000 4 5
5977241 Garage & Car Care Car Accessories Mid-Atlantic 75 Loss 3 49 175000 3 5
6295684 Garage & Car Care Car Accessories Mid-Atlantic 82 Loss 3 30 150000 1 5
6910718 Exterior Accessories Car Accessories Northeast 79 Loss 2 9 50000 1 4
7154102 Exterior Accessories Car Accessories Northeast 58 Loss 5 20 200000 4 5
7349990 Batteries & Accessories Car Accessories Northeast 34 Loss 7 37 105000 1 5
7421525 Motorcycle Parts Performance & Non-auto Mid-Atlantic 58 Loss 3 2 50000 1 4
7902934 Tires & Wheels Tires & Wheels Mid-Atlantic 41 Loss 2 8 110000 1 5
7941247 Replacement Parts Car Accessories Northeast 45 Won 4 3 23000 1 2
7952814 Exterior Accessories Car Accessories Northeast 28 Loss 3 20 52000 1 4
8008934 Garage & Car Care Car Accessories Southwest 46 Loss 1 0 473900 1 6
8026399 Batteries & Accessories Car Accessories Southeast 27 Loss 2 18 340000 1 6
8101150 Exterior Accessories Car Accessories Southeast 16 Loss 4 27 30000 1 3
8149004 Motorcycle Parts Performance & Non-auto Mid-Atlantic 18 Loss 2 24 15000 1 2
8245200 Exterior Accessories Car Accessories Northeast 37 Won 3 2 209000 1 5
8249983 Exterior Accessories Car Accessories Southeast 10 Loss 7 24 50000 1 4
8550964 Exterior Accessories Car Accessories Southeast 5 Loss 5 22 150000 1 5
9600318 Performance Parts Performance & Non-auto Mid-Atlantic 5 Loss 5 12 120000 1 5
9643667 Motorcycle Parts Performance & Non-auto Northeast 16 Won 1 0 253 1 1
9794114 Replacement Parts Car Accessories Southwest 9 Won 2 2 420000 1 6

In: Statistics and Probability

A: Write a divide-and-conquer program to solve the following problem:

in Java

A: Write a divide-and-conquer program to solve the following problem:

    1. Let A[1..n] and B[1..n] be two arrays of distinct integers, each sorted in an increasing order.

     2. Find the nth smallest of the 2n combined elements. Your program must run in O(log n) time.

For example:

n = 4
If A[1..n] = {2, 5, 8, 9} and B[1..n] = {1, 4, 6, 7}
The nth (i.e. 4th) smallest integer is 5.
If A[1..n] = {2, 5, 8, 13} and B[1..n] = {1, 9, 10, 15}
Then nth smallest integer is 8.

B: Modify your program in A to find the kth smallest number with k < n. Your program must run in O(log n) time.

For example:

n = 4 and k=3
If A[1..n] = {2, 5, 8, 9} and B[1..n] = {1, 4, 6, 7}
The kth (i.e. 3rd) smallest integer is 4.
If A[1..n] = {2, 5, 8, 13} and B[1..n] = {1, 9, 10, 15}
Then kth smallest integer is 5.

C: Modify your program in A to find the kth smallest number when k > n by finding the jth largest number in the 2n combined elements where j=2n-k+1. Your program must run in O(log n) time.

For example:

n = 4 and k=6

If A[1..n] = {2, 5, 8, 9} and B[1..n] = {1, 4, 6, 7}
The kth (i.e. 6th) smallest integer is also the jth (2*4-6+1=3rd) largest integer in the two combined arrays, which is 7.

In: Computer Science

In a Union-Management negotiation, the following are the annual percentages of wage increases for Union for...

In a Union-Management negotiation, the following are the annual percentages of wage increases for Union for various combinations of union and management strategies:

Management

M1 M2 M3

U1 1 3 3

U2 4 2 2

Union U3 3 2 3

U4 3 4 1

U5 2 1 2

9a. (5 points) After eliminating all possible dominated strategies, list the Union payoff matrices for the 4 subgames that are developed by taking 3 of the 4 Union strategies to match the 3 Management strategies.

In: Statistics and Probability