Prof. Worden loves teaching. Walking into the classroom each…

Prof. Worden loves teaching. Walking into the classroom each day fills him with a sense of purpose and excitement. The $20/hour Prof. Worden receives as an adjunct is not enough to pay the bills, and he often wishes the pay rate was closer to the market rate of $35/hour. Given this scenario, Prof. Worden is receiving more ________ rewards.

The table below shows data from a General Social Survey cros…

The table below shows data from a General Social Survey cross-classifying a person’s perceived happiness with their family income (from An Introduction to Categorical Data Analysis). 1362 American households were sampled, though only a single respondent answered the questions concerning their happiness and income. Happiness Income Not too happy Pretty Happy Very Happy Total Above Average 21 159 110 290 Average 53 372 221 646 Below Average 94 249 83 426 Total 168 780 414 1362 a. What are the cases/units in this sample? What is the population? (May be more than one correct answer)

Part 2. (24pts) Consider the following lines from a MATLAB s…

Part 2. (24pts) Consider the following lines from a MATLAB script, starting in line 7…  7   m =  8   v0 =  9   10   TIM = m(1) .* v0(1)+m(2) .* v0(2) (total initial momentum in the system) 11   TIE = (1./2) .* (m) * ( (v0) * (v0) ) (total initial energy in the system) 12   13   Vf = TIM./m(1)+m(2) (final velocity, after m1 and m2 stick together) Like Part 1, you need to think about how to get these lines to compile properly, how to make them robust and efficient, how to make them relatively easy to read and understand, and how to make sure the output is appropriate for passing in, according to the guidelines you have been given so far in this course. Write the “fixed” code in the text boxes below, and explain everything you fixed and why. As before, there can be more than one “mistake” in each line of code. For full credit, make sure to explain why something is wrong.

Figures. (10pts) Run your script three times, using the valu…

Figures. (10pts) Run your script three times, using the values of , , and given above, then create a PNG or JPG of each figure (NOT a FIG), combine them into one PDF, and upload the PDF here. Note that you ARE allowed to take screen shots, but you might not be allowed to do so by PSI (due to NVIDIA or because keystrokes won’t work), and it is usually easier to use File | Save As… .PNG or .JPG directly from the Figure window. You should NOT need to upload any text.