Questions
A social psychologist conducts an experiment to determine the best way to design a message for...

A social psychologist conducts an experiment to determine the best way to design a message for college students about the importance of engaging in safe sex. She hypothesizes that two factors impact the effectiveness of the message: (a) the medium used to deliver the message (lecture, video, or pamphlet), and (b) the emotional tone of the message (fear, neutral, or humor). The dependent variable is a measure of behavioral intention to engage in safe sex behavior (higher score indicating greater intention). She randomly assigns 45 participants to 9 groups, and obtains the following data:

Emotional Tone

Lecture

Video Pamphlet
Fear

7

6

7

4

4

6

5

7

6

4

5

4

7

4

6

Neutral

6

9

8

4

2

6

4

7

5

6

6

4

5

8

4

Humor

7

7

4

8

4

4

2

1

2

1

8

5

4

6

4

a. Using Excel, analyze these data by performing a two-way between-groups ANOVA. Create formulas to calculate the SS terms and the rest of the ANOVA summary table.

b. Include the effect size (eta-squared) for the medium, emotional tone, and medium X emotional tone effects in your ANOVA table (you’ll need to create your own formulas).

c. Create a graph to show the results, with error bars (estimated standard error of the means).

d. Insert a textbox in which you report the results of the ANOVA, the effect sizes for any significant effects, and refer to the graph to describe the pattern of any significant results.

In: Statistics and Probability

C++ program, FOR THE MAIN WHEN YOU DECLARE FUNCTION PLEASE PUT CORNER SIZES IN A TABLE...

C++ program, FOR THE MAIN WHEN YOU DECLARE FUNCTION PLEASE PUT CORNER SIZES IN A TABLE AND A LOOP SO YOU DON'T HAVE TO DECLARE FUNCTION MULTIPLE TIME

You may work in groups of two.

Your job is to write a function makeSpiral() that takes a two-dimensional array and the number of rows and columns to fill. The function will fill the rows-by-columns corner of the array with the integers from 1 to (rows * columns) in a counter-clockwise spiral pattern. The pattern starts at a[0][0] in the upper left, and goes down, then right, then up, then left filling the elements with values; and then moves in one row and column on each side, continuing until you run out of rows and columns. For example, with a 5 by 6 array and filling a 4 by 4 corner, the result will be something like this:

row/column 0 1 2 3 4 5 0 1 12 11 10 1 2 13 16 9 2 3 14 15 8 3 4 5 6 7 4 The top and left sides of this table just show the column and row numbers. The rest of the array (outside the corner passed into the makeSpiral() function) will be left unchanged by the function.

Next, write a function printSpiral() that takes an output file handle, a 2-d array and the number of rows and columns to print, and prints the spiral in the array in a reasonable format. Use setw() with the size (number of digits) of the value of ( rows * columns ) + 1 to set the size of each value to print. Do not skip lines, and do not print the row or column numbers, just the spiral. Print output directly to a text file.

Then write a program that declares a 15 by 20 array and opens a text file for output. The program will then loop, filling the array completely with zeroes (use a function for this task), calling makeSpiral() with the various values for the size of the corner to fill, and then calling printSpiral() to print the spiral. Run this loop to test all of the spiral corner sizes you need.

How can you pass in multiple corner sizes to the various functions without prompting for the values, reading them from a file, or using multiple separate function calls (e.g., outside a loop)? Solve this problem in this lab, too. It is not hard.

In a reduced size fixed-width font, this is what a 15x20 spiral looks like:

1 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48
2 67 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 47
3 68 125 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160 107 46
4 69 126 175 216 215 214 213 212 211 210 209 208 207 206 205 204 159 106 45
5 70 127 176 217 250 249 248 247 246 245 244 243 242 241 240 203 158 105 44
6 71 128 177 218 251 276 275 274 273 272 271 270 269 268 239 202 157 104 43
7 72 129 178 219 252 277 294 293 292 291 290 289 288 267 238 201 156 103 42
8 73 130 179 220 253 278 295 305 304 303 302 301 287 266 237 200 155 102 41
9 74 131 180 221 254 279 280 281 282 283 284 285 286 265 236 199 154 101 40
10 75 132 181 222 255 256 257 258 259 260 261 262 263 264 235 198 153 100 39
11 76 133 182 223 224 225 226 227 228 229 230 231 232 233 234 197 152 99 38
12 77 134 183 184 185 186 187 188 189 190 191 192 193 194 195 196 151 98 37
13 78 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 97 36
14 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 35
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34

Send me tests with at least the following corner sizes, plus several more of your own choice: 1 by 1, 1 by 2, 2 by 1, 2 by 2, 3 by 3, 4 by 4, 5 by 5, 4 by 7, 7 by 4, 4 by 8, 6 by 4, 15 by 20 Designing this completely before trying to code any of it will save you several hours of effort. You may write little test programs (stubs) to test specific ideas before you complete the design.

In: Computer Science

Q 5. Reagan has accumulated $3200 in savings and wishes to invest this money sensibly. The...

Q 5.

Reagan has accumulated $3200 in savings and wishes to invest this money sensibly. The types of investments and their corresponding percentages, recommended by a financial advisor, are shown in the following pie chart. Find the amount of money Reagan should invest in bonds. Round your answer to the nearest whole dollar

Recommended Categories of Investment

Bonds 38.28%

Stocks 15.74%

Real Estate 10.22%

Mutual Funds 10.54%

Annuities 25.22%

Q 6.

Consider the following frequency table representing the distribution of cost of a paperback book (in dollars).

Cost of a Paperback Book (in Dollars)

Class

Frequency

5.8–6.6

9

6.7–7.5

14

7.6–8.4

2

8.5–9.3

3

9.4–10.2

10

Step 1 of 2:

Determine the cumulative frequency for the second class.

Step 2 of 2:

Determine the cumulative frequency for the fourth class.

Q 7.

Consider the following frequency table representing the scores on a test.

Scores on a Test

Class

Frequency

40–43

7

44–47

7

48–51

7

52–55

8

56–59

4

Copy Data

Step 1 of 5:

Determine the lower class boundary for the fifth class.

Step 2 of 5:

Determine the upper class boundary for the second class.

Step 3 of 5:

Determine the class width of each class.

Step 4 of 5:

Choose the interval that contains the score, 57.9

Step 5 of 5:

Determine the number of scores between 39.5 and 55.5

In: Statistics and Probability

The following sample shows: the price per pound (X) and pounds sold (Y). X 4 6...

The following sample shows: the price per pound (X) and pounds sold (Y).

X 4 6 6 10 5 8 12 10 11 8

Y 50 60 65 45 70 60 25 35 40 50

a. find the sample variance for both X and Y (rounded to second decimal area)

b. find the sample covariance between X and Y, and give interpretation of your answer

c. find the sample correlation between X and Y, and give interpretation of your answer

In: Statistics and Probability

Trailblazers produced two types of boots: men's and women's. The two types of boots are similar,...

Trailblazers produced two types of boots: men's and women's. The two types of boots are similar, except the women's boots are more stylish. Both the men's and women's boots are made with the same machine. It takes 15 minutes of machine time to produce one pair of men's boots, whereas it takes 30 minutes of machine time to produce one pair of women's boots. The difference in production time results mainly from the different materials used in construction. The relevant data concerning the two types of boots are as follows:

Men's Women's
Sales price (per pair) $35 $40
Less: Direct Materials 10 13
Direct Labor 4 4
Variable Overhead 8 10
Contribution Margin $13 $13
Required machine time 1/4 hour 1/2 hour

A. If the amount of machine time available is limited, which boot should be produced first?

B. If the total machine time available is 640 hours per month and the demand for each type of boot is 1,000 pairs per month, how many of each type should be produced to maximize profit? (Round answer to the nearest pair.)

C. What other factors should be considered in this decision, and how would they affect the decision?

In: Accounting

A stock price is currently $40. Over each of the next two 3-month periods it is...

A stock price is currently $40. Over each of the next two 3-month periods it is expected to go up by 10% or down by 10%. The risk-free interest rate is 12% per annum withcontinuous compounding.

(a) What is the value of a 6-month European put option with a strike price of $42? (b) What is the value of a 6-month American put option with a strike price of $42?

In: Finance

Heather owns a two-story building. The building is used 40% for business use and 60% for...

Heather owns a two-story building. The building is used 40% for business use and 60% for personal use. During 2020, a fire caused major damage to the building and its contents. Heather purchased the building for $800,000 and has taken depreciation of $100,000 on the business portion. At the time of the fire, the building had a fair market value of $900,000. Immediately after the fire, the fair market value was $200,000. The insurance recovery on the building was $600,000. The contents of the building were insured for any loss at fair market value. The business assets had an adjusted basis of $220,000 and a fair market value of $175,000. These assets were totally destroyed. The personal use assets had an adjusted basis of $50,000 and a fair market value of $65,000. These assets were also totally destroyed.

If an amount is zero, enter "0".

a. Determine the business and personal gain or loss in regard to the building and its contents.


Total
Business
Portion
Personal
Portion
Cost of building $800,000 $ $
Less: Depreciation (100,000)
Adjusted basis $700,000 $ $
Decline in FMV $700,000 $ $


Business
Portion
Personal
Portion
Loss on building (lesser of basis or decline in FMV) $ $
Less: Insurance reimbursement
$
$
Loss on business contents $
Less: Insurance recovery
$
Loss on personal contents $
Less: Insurance recovery
$

b. Heather's AGI is $100,000 before considering the effects of the fire. Determine her itemized deduction and AGI after considering the effects of the fire.

Adjusted Gross Income
AGI before the effects of the fire $100,000
Business gain - building $
Business loss - contents ()
Net business casualty loss ()
Personal casualty gain
Personal casualty loss to extent of gain ()
Net personal casualty gain
AGI $


Itemized Deduction
Balance of personal casualty loss $

In: Accounting

The price of a non-dividend paying stock is now $40. Over each of the next two...

The price of a non-dividend paying stock is now $40. Over each of the next two three-month periods, it is expected to go up by 10% or down by 10%. The risk-free interest rate is 4% per annum with continuous compounding.

a. Calculate the risk-neutral probability p of an up-move over each three-month period

b. Calculate the value of a six-month European call option with a strike price of $42

c. Calculate the value of a six-month European put option with a strike price of $42

d. If the six-month put option was American instead of European, how would you expect its value to be different (higher, the same, or lower) than the European one? Please explain

In: Finance

The company has two machines that produce certain items. Machine 1 produces 40 % of the...

The company has two machines that produce certain items. Machine 1 produces 40 % of the the items, and machine 2 produces 60% of the items. Machine 1 produces 3% of defective items and machine 2 produces 5% of defective items.

a. The probability that a randomly selected produced item is defective is _________

b. If a randomly selected item is found to be defective, probability that it is produced on machine 2 is___________

In: Statistics and Probability

Use appropriate descriptive statistics to summarize each of the two variables for the 40 Gulf View...

  1. Use appropriate descriptive statistics to summarize each of the two variables for the 40 Gulf View condominiums, and each of the two variables for the 18 No Gulf View condominiums. What are the means and standard deviations of the four variables? . Compare your summary results. Discuss any specific statistical results that would help a real estate agent understand the condominium market. In particular, what are the percent discounts between the average list and sale price for Gulf View and No Gulf View condominiums?
    Gulf View Condominiums No Gulf View Condominiums
    List Price Sale Price List Price Sale Price
    495.0 475.0 227.0 227.0
    379.0 350.0 158.0 145.5
    529.0 519.0 196.5 189.0
    552.5 534.5 249.0 240.0
    334.9 334.9 289.0 277.5
    550.0 505.0 225.0 224.0
    169.9 165.0 289.0 269.0
    210.0 210.0 189.9 186.5
    975.0 945.0 159.9 154.9
    314.0 314.0 245.0 240.0
    315.0 305.0 209.8 202.0
    885.0 800.0 220.0 205.0
    975.0 975.0 236.0 222.0
    469.0 445.0 159.9 156.5
    329.0 305.0 170.0 170.0
    365.0 330.0 332.0 302.5
    332.0 312.0 197.5 189.0
    520.0 495.0 257.0 237.0
    425.0 405.0
    675.0 669.0
    409.0 400.0
    649.0 649.0
    319.0 305.0
    425.0 410.0
    359.0 340.0
    469.0 449.0
    895.0 875.0
    439.0 430.0
    435.0 400.0
    235.0 227.0
    638.0 618.0
    629.0 600.0
    329.0 309.0
    595.0 555.0
    339.0 315.0
    215.0 200.0
    395.0 375.0
    449.0 425.0
    499.0 465.0
    439.0 428.5

In: Statistics and Probability