Statistical Methods (STAT 4303) Review for Final Comprehensive Exam Measures of Central Tendency, Dispersion Q.1. The data below represents the test scores obtained by students in college algebra class. 10,12,15,20,13,16,14 Calculate (a) Mean (b) Median (c) Mode (d) Variance, s2 (e) Coefficient of variation (CV) Q.2. The data below represents the test scores obtained by students in English class. 12,15,16,18,13,10,17,20 Calculate (a) Mean (b) Median (c) Mode (d) Variance, s2 (e) Coefficient of variation (CV) (f) Compare the results of Q.1 and Q.2, Which scores College Algebra or English do you think is more precise (less spread)? Q.3 Following data represents the score obtained by students in one of the exams 9, 13, 14, 15, 16, 16, 17, 19, 20, 21, 21, 22, 25, 25, 26 Create a frequency table to calculate the following descriptive statistics (a) mean (b) median (c) mode (d) first and third quartiles (e) Construct Box and Whisker plot. (f) Comment on the shape of the distribution. (g) Find inter quartile range (IQR). (h) Are there any outliers (based on IQR technique)? In the above problem, if the score 26 is replaced by 37 (i) What will happen to the mean? Will it increase, decrease or remains the same? (j) What will be the new median? (k) What can you say about the effect of outliers on mean and median? Q.4 Following data represents the score obtained by students in one of the exams 19, 14, 14, 15, 17, 16, 17, 20, 20, 21, 21, 22, 25, 25, 26, 27, 28 Create a frequency table to calculate the following descriptive statistics a) mean b) median c) mode d) first and third quartiles e) Construct Box and Whisker plot. f) Comment on the shape of the distribution. g) Find inter quartile range (IQR). h) Are there any outliers (based on IQR technique)? In the above problem, if the score 28 is replaced by 48 i) What will happen to the mean? Will it increase, decrease or remains the same? j) What will be the new median? k) What can you say about the effect of outliers on mean and median? Q.5 Consider the following data of height (in inch) and weight(in lbs). Height(x) Frequency 50 2 52 3 55 2 60 4 62 3  Find the mean height.  What is the variance of height? Also, find the standard deviation. (c) Find the coefficient of variation (CV). Q.6. The following table shows the number of miles run during one week for a sample of 20 runners: Miles Mid-value (x) Frequency (f) 5.5-10.5 1 10.5-15.5 2 15.5-20.5 3 20.5-25.5 5 25.5-30.5 4 (a) Find the average (mean) miles run. (Hint: Find mid-value of mile range first) (b) What is the variance of miles run? Also, find the standard deviation. (c) Find the coefficient of variation (CV). Q.7. (a) If the mean of 20 observations is 20.5, find the sum of all observations? (b) If the mean of 30 observations is 40, find the sum of all observations? Probability Q.8 Out of forty students, 14 are taking English Composition and 29 are taking Chemistry. a) How many students are in both classes? b) What is the probability that a randomly-chosen student from this group is taking only the Chemistry class? Q.9 A drawer contains 4 red balls, 5 green balls, and 5 blue balls. One ball is taken from the drawer and then replaced. Another ball is taken from the drawer. What is the probability that (Draw tree diagram to facilitate your calculation). (a) both balls are red (b) first ball is red (c) both balls are of same colors (d) both balls are of different colors (e) first ball is red and second ball is blue (f) first ball is red or blue Q.10 A drawer contains 3 red balls, 5 green balls, and 5 blue balls. One ball is taken from the drawer and not replaced. Another ball is then taken from the drawer. Draw tree diagram to facilitate your calculation. What is the probability that (a) both balls are red (b) first ball is red (c) both balls are of same colors (d) both balls are of different colors (e) first ball is red and second ball is blue (f) first ball is red or blue Q. 11 Missile A has 45% chance of hitting target. Missile B has 55% chance of hitting a target. What is the probability that (i) both miss the target. (ii) at least one will hit the target. (iii) exactly one will hit the target. Q. 12 A politician from D party speaks truth 65% of times; another politician from rival party speaks truth 75% of times. Both politicians were asked about their personal love affair with their own office secretary, what is the probability that (i) both lie the actual fact . (ii) at least one will speak truth. (iii) exactly one speaks the truth. (iv) both speak the truth. Q.13 The question, “Do you drink alcohol?” was asked to 220 people. Results are shown in the table. . Yes No Total Male 48 82 Female 24 66 Total (a) What is the probability of a randomly selected individual being a male also drinks? (b) What is the probability of a randomly selected individual being a female? (c) What is the probability that a randomly selected individual drinks? (d) A person is selected at random and if the person is female, what is the probability that she drinks? (e) What is the probability that a randomly selected alcoholic person is a male? Q.14 A professor, Dr. Drakula, taught courses that included statements from across the five colleges abbreviated as AH, AS, BA, ED and EN. He taught at Texas A&M University – Kingsville (TAMUK) during the span of five academic years AY09 to AY13. The following table shows the total number of graduates during AY09 to AY13. One day, he was running late to his class. He was so focused on the class that he did not stop for a red light. As soon as he crossed through the intersection, a police officer Asked him to stop. ( a ) It is turned out that the police officer was TAMUK graduate during the past five years. What is the probability that the Police Officer was from ED College? ( b ) What is the probability that the Police Officer graduated in the academic year of 2011? ( c ) If the traffic officer graduated from TAMUK in the academic year of 2011(AY11). What is the conditional probability that he graduated from the ED college? ( d ) Are the events the academic year “AY 11” and the college of Education “ED” independent? Yes or no , why? Discrete Distribution Q.15 Find k and probability for X=2 and X=4. X 1 2 3 4 5 P(X=x) 0.1 3k 0.2 2k 0.2 (Hint: First find k, and then plug in) Also, calculate the expected value of X, E(X) and variance V(X). A game plan is derived based on above table, a player wins $5 if he can blindly choose 3 and loses $1 if he chooses other numbers.What is his expected win or loss per game? If he plays this game for 20 times, what is total win or lose? Q.16 Find k. X 3 4 5 6 7 P(X=x) k 2k 2k k 2k (Hint: First find k, and then plug in) Also, calculate the expected value of X, E(X) and variance V(X). A game plan is derived based on above table, a player wins $5 if he can blindly choose 3 and loses $1 if he chooses other numbers. What is his expected win or loss per game? If he plays this game for 20 times, what is total win or lose? Binomial Distribution: Q.17 (a) Hospital records show that of patients suffering from a certain disease, 75% die of it. What is the probability that of 6 randomly selected patients, 4 will recover? (b) A (blindfolded) marksman finds that on the average he hits the target 4 times out of 5. If he fires 4 shots, what is the probability of (i) more than 2 hits? (ii) at least 3 misses? (c) which of the following are binomial experiments? Explain the reason. i. Telephone surveying a group of 200 people to ask if they voted for George Bush. ii. Counting the average number of dogs seen at a veterinarian’s office daily. iii. You take a survey of 50 traffic lights in a certain city, at 3 p.m., recording whether the light was red, green, or yellow at that time. iv. You are at a fair, playing “pop the balloon” with 6 darts. There are 20 balloons. 10 of the balloons have a ticket inside that say “win,” and 10 have a ticket that says “lose.” Normal Distribution Q.18 Use standard normal distribution table to find the following probabilities: (a) P(Z<2.5) (b) P(Z< -1.3) (c) P(Z>0.12) (d) P(Z> -2.15) (e) P(0.11<Z<0.22) (f) P(-0.11<Z<0.5) Q.19. Use normal distribution table to find the missing values (?). (a) P(Z< ?)=0.40 (b) P(Z< ?)=0.76 (c) P(Z> ?)=0.87 (d) P(Z> ?)=0.34 Q.20. The length of life of certain type of light bulb is normally distributed with mean=220hrs and standard deviation=20hrs. (a) Define a random variable, X A light bulb is randomly selected, what is the probability that (b) it will last will last more than 207 hrs. ? (c) it will last less than 214 hrs. (d) it will last in between 199 to 207 hrs. Q.21. The length of life of an instrument produced by a machine has a normal distribution with a mean of 22 months and standard deviation of 4 months. Find the probability that an instrument produced by this machine will last (a) less than 10 months. (b) more than 28 months (c) between 10 and 28 months. Distribution of sample mean and Central Limit Theorem (CLT) Q.22 It is assumed that weight of teenage student is normally distributed with mean=140 lbs. and standard deviation =15 lbs. A simple random sample of 40 teenage students is taken and sample mean is calculated. If several such samples of same size are taken (i) what could be the mean of all sample means. (ii) what could be the standard deviation of all sample means. (iii) will the distribution of sample means be normal ? (iv) What is CLT? Write down the distribution of sample mean in the form of ~ ( , ) 2 n X N   . Q.23 The time it takes students in a cooking school to learn to prepare seafood gumbo is a random variable with a normal distribution where the average is 3.2 hours and a standard deviation of 1.8 hours. A sample of 40 students was investigated. What is the distribution of sample mean (express in numbers)? Hypothesis Testing Q.24 The NCHS reported that the mean total cholesterol level in 2002 for all adults was 203 with standard deviation of 37. Total cholesterol levels in participants who attended the seventh examination of the Offspring in the Framingham Heart Study are summarized as follows: n=3,00, =200.3. Is there statistical evidence of a difference in mean cholesterol levels in the Framingham Offspring (means does the result form current examination differs from 2002 report)?? (Follow the steps below to reach the conclusion) (i) Define null and alternate hypothesis (Also write what is  , and x in words at the beginning) (ii) Identify the significance level ,  and check whether it is one sided or two sided test. (iii) Calculate test statistics, Z. (iv) Use standard normal table to find the p-value and state whether you reject or accept (fail to reject) the null hypothesis. (v) what is the critical value, do you reject or accept the H0. (vi) Write down the conclusion based on part (iv). Q.25 A sample of 145 boxes of Kellogg’s Raisin Bran contain in average 1.95 scoops of raisins. It is known from past experiments that the standard deviation for the number of scoops of raisins is 0.25. The manufacturer of Kellogg’s Raisin Bran claimed that in average their product contains more than 2 scoops of raisins, do you reject or accept the manufacturers claim (follow all five steps)? Q.26 It is assumed that the mean systolic blood pressure is μ = 120 mm Hg. In the Honolulu Heart Study, a sample of n = 100 people had an average systolic blood pressure of 130.1 mm Hg. The standard deviation from the population is 21.21 mm Hg. Is the group significantly different (with respect to systolic blood pressure!) from the regular population? Use 10% level of significance. Q.27 A CEO claims that at least 80 percent of the company’s 1,000,000 customers are very satisfied. Again, 100 customers are surveyed using simple random sampling. The result: 73 percent are very satisfied. Based on these results, should we accept or reject the CEO’s hypothesis? Assume a significance level of 0.05. Q.28 True/False questions (These questions are collected from previous HW, review and exam problems, see the previous solutions for answers) (a) Total sum of probability can exceed 1. (b) If you throw a die, getting 2 or any even number are independent events. (c) If you roll a die for 20 times, the probability of getting 5 in 15th roll is 20 15 . (d) A student is taking a 5 question True-False quiz but he has not been doing any work in the course and does not know the material so he randomly guesses at all the answers. Probability that he gets the first question right is 2 1 . (e) Typing in laptop and writing emails using the same laptop are independent events. (f) Normal distribution is right skewed. (g) Mean is more robust to outliers. So mean is used for data with extreme values. (h) It is possible to have no mode in the data. (i) Standard normal variable, Z has some unit. (j) Only two parameters are required to describe the entire normal distribution. (k) Mean of standard normal variable, Z is 1. (l) If p-value of more than level of significance (alpha), we reject the H0. (m) Very small p-value indicates rejection of H0. (n) H0 always contains equality sign. (o) CLT indicates that distribution of sample mean can be anything, not just normal. (p) Sample mean is always equal to population mean. (q) Variance of sample mean is less than population mean. (r) Variance of sample mean does not depend on sample size. (s) Mr. A has cancer but a medical doctor diagnosed him as “no cancer”. It is a type I error. (t) Level of significance is probability of making type II error. (u) Type II error can be controlled. (v) Type I error is more serious than type II error. (w) Type I and Type II errors are based on null hypothesis. Q.29 Type I and Type II Errors : Make statements about Type I (False Positive) and Type II errors (False Negative). (a) The Alpha-Fetoprotein (AFP) Test has both Type I and Type II error possibilities. This test screens the mother’s blood during pregnancy for AFP and determines risk. Abnormally high or low levels may indicate Down syndrome. (Hint: Take actual status as down syndrome or not) Ho: patient is healthy Ha: patient is unhealthy (b) The mechanic inspects the brake pads for the minimum allowable thickness. Ho: Vehicles breaks meet the standard for the minimum allowable thickness. Ha: Vehicles brakes do not meet the standard for the minimum allowable thickness. (c) Celiac disease is one of the diseases which can be misdiagnosed or have less diagnosis. Following table shows the actual celiac patients and their diagnosis status by medical doctors: Actual Status Yes No Diagnosed as celiac Yes 85 5 No 25 105 I. Calculate the probability of making type I and type II error rates. II. Calculate the power of the test. (Power of the test= 1- P(type II error) Answers: USEFUL FORMULAE: Descriptive Statistics Possible Outliers, any value beyond the range of Q 1.5( ) and Q 1.5( ) Range = Maximum value -Minimum value 100 where 1 ( ) (Preferred) 1 and , n fx x For data with repeats, 1 ( ) (Preferred ) OR 1 and n x x For data without repeats, 1 3 1 3 3 1 2 2 2 2 2 2 2 2 2 2 Q Q Q Q x s CV n f n f x x OR s n fx nx s n x x s n x nx s                             Discrete Distribution         ( ) ( ) ( ) ( ) { ( )} ( ) ( ) 2 2 2 2 E X x P X x V X E X E X E X xP X x Binomial Distribution Probability mass function, P(X=x)= x n x n x C p q  for x=0,1,2,…,n. E(X)=np, Var(X)=npq Hypothesis Testing based on Normal Distribution      X std X mean Z Standard Normal Variable, Probability Bayes Rule, ( ) ( and ) ( ) ( ) ( | ) P B P A B P B P A B P A B    Central Limit Theorem For large n (n>30), ~ ( , ) 2 n X N   and ˆ ~ ( , ) n pq p N p For hypothesis testing of μ, σ known           n x Z   For hypothesis testing of p n pq p p Z   ˆ ANSWERS: Q.1 (a) 14.286 (b) 14 (c) none (d) 10.24 (e) 22.40 Q.2 (a) 15.125 (b) 15.5 (c) No (d) 10.98 (e) 21.9 (f) English Q.3 (a) 18.6 (b)19 (c) 16, 21, and 25 (d) 15, 22 (f) slightly left (g) 7 (h) no outliers (i) increase (j) same Q.4 (a) 0.41 (b) 20 (c)14, 17, 20, 21,25 (d) 16.5, 25 (f) slightly right (g) 8.5 (h) no (i) increase (j) same Q.5 (a)56.57 (b) 22.26 (c) 8.34 Q.6 (a) 21 (b) 38.57 (c) 29.57 Q.7 (a) 410 (b) 1200 Q.8 (a)3 (b) 0.65 Q.9 (a) 0.082 (b) 0.29 (c)0.34 (d) 0.66 (e)0.10 (f) 0.64 Q.10 (a) 0.038 (b)0.23 (c) 0.71 (d) 0.29 (e)0.096 (f) 0.62 Q.11 (i)0.248 (ii)0.752 (iii)0.505 Q.12 (i)0.0875 (ii)0.913 (iii)0.425 (iii)0.488 Q.13 (a)0.22 (b)0.41 (c)0.33 (d)0.27 (e) 0.67 Q.14 (a) 0.13 (b) 0.18 (c)0.12 Q.15 E(X)=3.1 , V(X)=1.69, $0.2 per game, $ 4 win. Q.16 E(X)=5.125, V(X)=1.86, $0.25 loss per game, $5 loss. Q.17 (a)0.201 (b) 0.819, 0.027 Q.18 (a)0.9938 (b)0.0968 (c)0.452 (d)0.984 (e) 0.0433 (f)0.2353 Q.19 (a) -0.25 (b)0.71 (c) -1.13 (d)0.41 Q.20 (b) 0.7422 (c) 0.3821 (d) 0.1109 Q.21 (a)0.0014 (b) 0.0668 (c) 0.9318 Q.22 (a) 140 (b)2.37 Q.24 Z=-1.26, Accept null. Q.25 Z=-2.41, accept null Q.26 Z=4.76, reject H0 Q.27 Z=-1.75, reject H0 Q.28 F, F, F, T , F, F, F, T, F, T, F, F, T, T, F, F, T, F, T, F, F, T, T Q.29 (c)0.113 , 0.022 , 0.977 (or 98%)

Statistical Methods (STAT 4303) Review for Final Comprehensive Exam Measures of Central Tendency, Dispersion Q.1. The data below represents the test scores obtained by students in college algebra class. 10,12,15,20,13,16,14 Calculate (a) Mean (b) Median (c) Mode (d) Variance, s2 (e) Coefficient of variation (CV) Q.2. The data below represents the test scores obtained by students in English class. 12,15,16,18,13,10,17,20 Calculate (a) Mean (b) Median (c) Mode (d) Variance, s2 (e) Coefficient of variation (CV) (f) Compare the results of Q.1 and Q.2, Which scores College Algebra or English do you think is more precise (less spread)? Q.3 Following data represents the score obtained by students in one of the exams 9, 13, 14, 15, 16, 16, 17, 19, 20, 21, 21, 22, 25, 25, 26 Create a frequency table to calculate the following descriptive statistics (a) mean (b) median (c) mode (d) first and third quartiles (e) Construct Box and Whisker plot. (f) Comment on the shape of the distribution. (g) Find inter quartile range (IQR). (h) Are there any outliers (based on IQR technique)? In the above problem, if the score 26 is replaced by 37 (i) What will happen to the mean? Will it increase, decrease or remains the same? (j) What will be the new median? (k) What can you say about the effect of outliers on mean and median? Q.4 Following data represents the score obtained by students in one of the exams 19, 14, 14, 15, 17, 16, 17, 20, 20, 21, 21, 22, 25, 25, 26, 27, 28 Create a frequency table to calculate the following descriptive statistics a) mean b) median c) mode d) first and third quartiles e) Construct Box and Whisker plot. f) Comment on the shape of the distribution. g) Find inter quartile range (IQR). h) Are there any outliers (based on IQR technique)? In the above problem, if the score 28 is replaced by 48 i) What will happen to the mean? Will it increase, decrease or remains the same? j) What will be the new median? k) What can you say about the effect of outliers on mean and median? Q.5 Consider the following data of height (in inch) and weight(in lbs). Height(x) Frequency 50 2 52 3 55 2 60 4 62 3  Find the mean height.  What is the variance of height? Also, find the standard deviation. (c) Find the coefficient of variation (CV). Q.6. The following table shows the number of miles run during one week for a sample of 20 runners: Miles Mid-value (x) Frequency (f) 5.5-10.5 1 10.5-15.5 2 15.5-20.5 3 20.5-25.5 5 25.5-30.5 4 (a) Find the average (mean) miles run. (Hint: Find mid-value of mile range first) (b) What is the variance of miles run? Also, find the standard deviation. (c) Find the coefficient of variation (CV). Q.7. (a) If the mean of 20 observations is 20.5, find the sum of all observations? (b) If the mean of 30 observations is 40, find the sum of all observations? Probability Q.8 Out of forty students, 14 are taking English Composition and 29 are taking Chemistry. a) How many students are in both classes? b) What is the probability that a randomly-chosen student from this group is taking only the Chemistry class? Q.9 A drawer contains 4 red balls, 5 green balls, and 5 blue balls. One ball is taken from the drawer and then replaced. Another ball is taken from the drawer. What is the probability that (Draw tree diagram to facilitate your calculation). (a) both balls are red (b) first ball is red (c) both balls are of same colors (d) both balls are of different colors (e) first ball is red and second ball is blue (f) first ball is red or blue Q.10 A drawer contains 3 red balls, 5 green balls, and 5 blue balls. One ball is taken from the drawer and not replaced. Another ball is then taken from the drawer. Draw tree diagram to facilitate your calculation. What is the probability that (a) both balls are red (b) first ball is red (c) both balls are of same colors (d) both balls are of different colors (e) first ball is red and second ball is blue (f) first ball is red or blue Q. 11 Missile A has 45% chance of hitting target. Missile B has 55% chance of hitting a target. What is the probability that (i) both miss the target. (ii) at least one will hit the target. (iii) exactly one will hit the target. Q. 12 A politician from D party speaks truth 65% of times; another politician from rival party speaks truth 75% of times. Both politicians were asked about their personal love affair with their own office secretary, what is the probability that (i) both lie the actual fact . (ii) at least one will speak truth. (iii) exactly one speaks the truth. (iv) both speak the truth. Q.13 The question, “Do you drink alcohol?” was asked to 220 people. Results are shown in the table. . Yes No Total Male 48 82 Female 24 66 Total (a) What is the probability of a randomly selected individual being a male also drinks? (b) What is the probability of a randomly selected individual being a female? (c) What is the probability that a randomly selected individual drinks? (d) A person is selected at random and if the person is female, what is the probability that she drinks? (e) What is the probability that a randomly selected alcoholic person is a male? Q.14 A professor, Dr. Drakula, taught courses that included statements from across the five colleges abbreviated as AH, AS, BA, ED and EN. He taught at Texas A&M University – Kingsville (TAMUK) during the span of five academic years AY09 to AY13. The following table shows the total number of graduates during AY09 to AY13. One day, he was running late to his class. He was so focused on the class that he did not stop for a red light. As soon as he crossed through the intersection, a police officer Asked him to stop. ( a ) It is turned out that the police officer was TAMUK graduate during the past five years. What is the probability that the Police Officer was from ED College? ( b ) What is the probability that the Police Officer graduated in the academic year of 2011? ( c ) If the traffic officer graduated from TAMUK in the academic year of 2011(AY11). What is the conditional probability that he graduated from the ED college? ( d ) Are the events the academic year “AY 11” and the college of Education “ED” independent? Yes or no , why? Discrete Distribution Q.15 Find k and probability for X=2 and X=4. X 1 2 3 4 5 P(X=x) 0.1 3k 0.2 2k 0.2 (Hint: First find k, and then plug in) Also, calculate the expected value of X, E(X) and variance V(X). A game plan is derived based on above table, a player wins $5 if he can blindly choose 3 and loses $1 if he chooses other numbers.What is his expected win or loss per game? If he plays this game for 20 times, what is total win or lose? Q.16 Find k. X 3 4 5 6 7 P(X=x) k 2k 2k k 2k (Hint: First find k, and then plug in) Also, calculate the expected value of X, E(X) and variance V(X). A game plan is derived based on above table, a player wins $5 if he can blindly choose 3 and loses $1 if he chooses other numbers. What is his expected win or loss per game? If he plays this game for 20 times, what is total win or lose? Binomial Distribution: Q.17 (a) Hospital records show that of patients suffering from a certain disease, 75% die of it. What is the probability that of 6 randomly selected patients, 4 will recover? (b) A (blindfolded) marksman finds that on the average he hits the target 4 times out of 5. If he fires 4 shots, what is the probability of (i) more than 2 hits? (ii) at least 3 misses? (c) which of the following are binomial experiments? Explain the reason. i. Telephone surveying a group of 200 people to ask if they voted for George Bush. ii. Counting the average number of dogs seen at a veterinarian’s office daily. iii. You take a survey of 50 traffic lights in a certain city, at 3 p.m., recording whether the light was red, green, or yellow at that time. iv. You are at a fair, playing “pop the balloon” with 6 darts. There are 20 balloons. 10 of the balloons have a ticket inside that say “win,” and 10 have a ticket that says “lose.” Normal Distribution Q.18 Use standard normal distribution table to find the following probabilities: (a) P(Z<2.5) (b) P(Z< -1.3) (c) P(Z>0.12) (d) P(Z> -2.15) (e) P(0.11 ?)=0.87 (d) P(Z> ?)=0.34 Q.20. The length of life of certain type of light bulb is normally distributed with mean=220hrs and standard deviation=20hrs. (a) Define a random variable, X A light bulb is randomly selected, what is the probability that (b) it will last will last more than 207 hrs. ? (c) it will last less than 214 hrs. (d) it will last in between 199 to 207 hrs. Q.21. The length of life of an instrument produced by a machine has a normal distribution with a mean of 22 months and standard deviation of 4 months. Find the probability that an instrument produced by this machine will last (a) less than 10 months. (b) more than 28 months (c) between 10 and 28 months. Distribution of sample mean and Central Limit Theorem (CLT) Q.22 It is assumed that weight of teenage student is normally distributed with mean=140 lbs. and standard deviation =15 lbs. A simple random sample of 40 teenage students is taken and sample mean is calculated. If several such samples of same size are taken (i) what could be the mean of all sample means. (ii) what could be the standard deviation of all sample means. (iii) will the distribution of sample means be normal ? (iv) What is CLT? Write down the distribution of sample mean in the form of ~ ( , ) 2 n X N   . Q.23 The time it takes students in a cooking school to learn to prepare seafood gumbo is a random variable with a normal distribution where the average is 3.2 hours and a standard deviation of 1.8 hours. A sample of 40 students was investigated. What is the distribution of sample mean (express in numbers)? Hypothesis Testing Q.24 The NCHS reported that the mean total cholesterol level in 2002 for all adults was 203 with standard deviation of 37. Total cholesterol levels in participants who attended the seventh examination of the Offspring in the Framingham Heart Study are summarized as follows: n=3,00, =200.3. Is there statistical evidence of a difference in mean cholesterol levels in the Framingham Offspring (means does the result form current examination differs from 2002 report)?? (Follow the steps below to reach the conclusion) (i) Define null and alternate hypothesis (Also write what is  , and x in words at the beginning) (ii) Identify the significance level ,  and check whether it is one sided or two sided test. (iii) Calculate test statistics, Z. (iv) Use standard normal table to find the p-value and state whether you reject or accept (fail to reject) the null hypothesis. (v) what is the critical value, do you reject or accept the H0. (vi) Write down the conclusion based on part (iv). Q.25 A sample of 145 boxes of Kellogg’s Raisin Bran contain in average 1.95 scoops of raisins. It is known from past experiments that the standard deviation for the number of scoops of raisins is 0.25. The manufacturer of Kellogg’s Raisin Bran claimed that in average their product contains more than 2 scoops of raisins, do you reject or accept the manufacturers claim (follow all five steps)? Q.26 It is assumed that the mean systolic blood pressure is μ = 120 mm Hg. In the Honolulu Heart Study, a sample of n = 100 people had an average systolic blood pressure of 130.1 mm Hg. The standard deviation from the population is 21.21 mm Hg. Is the group significantly different (with respect to systolic blood pressure!) from the regular population? Use 10% level of significance. Q.27 A CEO claims that at least 80 percent of the company’s 1,000,000 customers are very satisfied. Again, 100 customers are surveyed using simple random sampling. The result: 73 percent are very satisfied. Based on these results, should we accept or reject the CEO’s hypothesis? Assume a significance level of 0.05. Q.28 True/False questions (These questions are collected from previous HW, review and exam problems, see the previous solutions for answers) (a) Total sum of probability can exceed 1. (b) If you throw a die, getting 2 or any even number are independent events. (c) If you roll a die for 20 times, the probability of getting 5 in 15th roll is 20 15 . (d) A student is taking a 5 question True-False quiz but he has not been doing any work in the course and does not know the material so he randomly guesses at all the answers. Probability that he gets the first question right is 2 1 . (e) Typing in laptop and writing emails using the same laptop are independent events. (f) Normal distribution is right skewed. (g) Mean is more robust to outliers. So mean is used for data with extreme values. (h) It is possible to have no mode in the data. (i) Standard normal variable, Z has some unit. (j) Only two parameters are required to describe the entire normal distribution. (k) Mean of standard normal variable, Z is 1. (l) If p-value of more than level of significance (alpha), we reject the H0. (m) Very small p-value indicates rejection of H0. (n) H0 always contains equality sign. (o) CLT indicates that distribution of sample mean can be anything, not just normal. (p) Sample mean is always equal to population mean. (q) Variance of sample mean is less than population mean. (r) Variance of sample mean does not depend on sample size. (s) Mr. A has cancer but a medical doctor diagnosed him as “no cancer”. It is a type I error. (t) Level of significance is probability of making type II error. (u) Type II error can be controlled. (v) Type I error is more serious than type II error. (w) Type I and Type II errors are based on null hypothesis. Q.29 Type I and Type II Errors : Make statements about Type I (False Positive) and Type II errors (False Negative). (a) The Alpha-Fetoprotein (AFP) Test has both Type I and Type II error possibilities. This test screens the mother’s blood during pregnancy for AFP and determines risk. Abnormally high or low levels may indicate Down syndrome. (Hint: Take actual status as down syndrome or not) Ho: patient is healthy Ha: patient is unhealthy (b) The mechanic inspects the brake pads for the minimum allowable thickness. Ho: Vehicles breaks meet the standard for the minimum allowable thickness. Ha: Vehicles brakes do not meet the standard for the minimum allowable thickness. (c) Celiac disease is one of the diseases which can be misdiagnosed or have less diagnosis. Following table shows the actual celiac patients and their diagnosis status by medical doctors: Actual Status Yes No Diagnosed as celiac Yes 85 5 No 25 105 I. Calculate the probability of making type I and type II error rates. II. Calculate the power of the test. (Power of the test= 1- P(type II error) Answers: USEFUL FORMULAE: Descriptive Statistics Possible Outliers, any value beyond the range of Q 1.5( ) and Q 1.5( ) Range = Maximum value -Minimum value 100 where 1 ( ) (Preferred) 1 and , n fx x For data with repeats, 1 ( ) (Preferred ) OR 1 and n x x For data without repeats, 1 3 1 3 3 1 2 2 2 2 2 2 2 2 2 2 Q Q Q Q x s CV n f n f x x OR s n fx nx s n x x s n x nx s                             Discrete Distribution         ( ) ( ) ( ) ( ) { ( )} ( ) ( ) 2 2 2 2 E X x P X x V X E X E X E X xP X x Binomial Distribution Probability mass function, P(X=x)= x n x n x C p q  for x=0,1,2,…,n. E(X)=np, Var(X)=npq Hypothesis Testing based on Normal Distribution      X std X mean Z Standard Normal Variable, Probability Bayes Rule, ( ) ( and ) ( ) ( ) ( | ) P B P A B P B P A B P A B    Central Limit Theorem For large n (n>30), ~ ( , ) 2 n X N   and ˆ ~ ( , ) n pq p N p For hypothesis testing of μ, σ known           n x Z   For hypothesis testing of p n pq p p Z   ˆ ANSWERS: Q.1 (a) 14.286 (b) 14 (c) none (d) 10.24 (e) 22.40 Q.2 (a) 15.125 (b) 15.5 (c) No (d) 10.98 (e) 21.9 (f) English Q.3 (a) 18.6 (b)19 (c) 16, 21, and 25 (d) 15, 22 (f) slightly left (g) 7 (h) no outliers (i) increase (j) same Q.4 (a) 0.41 (b) 20 (c)14, 17, 20, 21,25 (d) 16.5, 25 (f) slightly right (g) 8.5 (h) no (i) increase (j) same Q.5 (a)56.57 (b) 22.26 (c) 8.34 Q.6 (a) 21 (b) 38.57 (c) 29.57 Q.7 (a) 410 (b) 1200 Q.8 (a)3 (b) 0.65 Q.9 (a) 0.082 (b) 0.29 (c)0.34 (d) 0.66 (e)0.10 (f) 0.64 Q.10 (a) 0.038 (b)0.23 (c) 0.71 (d) 0.29 (e)0.096 (f) 0.62 Q.11 (i)0.248 (ii)0.752 (iii)0.505 Q.12 (i)0.0875 (ii)0.913 (iii)0.425 (iii)0.488 Q.13 (a)0.22 (b)0.41 (c)0.33 (d)0.27 (e) 0.67 Q.14 (a) 0.13 (b) 0.18 (c)0.12 Q.15 E(X)=3.1 , V(X)=1.69, $0.2 per game, $ 4 win. Q.16 E(X)=5.125, V(X)=1.86, $0.25 loss per game, $5 loss. Q.17 (a)0.201 (b) 0.819, 0.027 Q.18 (a)0.9938 (b)0.0968 (c)0.452 (d)0.984 (e) 0.0433 (f)0.2353 Q.19 (a) -0.25 (b)0.71 (c) -1.13 (d)0.41 Q.20 (b) 0.7422 (c) 0.3821 (d) 0.1109 Q.21 (a)0.0014 (b) 0.0668 (c) 0.9318 Q.22 (a) 140 (b)2.37 Q.24 Z=-1.26, Accept null. Q.25 Z=-2.41, accept null Q.26 Z=4.76, reject H0 Q.27 Z=-1.75, reject H0 Q.28 F, F, F, T , F, F, F, T, F, T, F, F, T, T, F, F, T, F, T, F, F, T, T Q.29 (c)0.113 , 0.022 , 0.977 (or 98%)

No expert has answered this question yet. You can browse … Read More...
Physics Lab 1 Projectile Motion We will use this 2-D “Golf Simulation” to explore combined horizontal and vertical motion (select experiment #7). This simulation provides a fun-filled way to examine 2-D projectile motion with and without air resistance. Before to start the experiment, take a few minutes playing with the simulation. Adjust the initial velocity by adjusting the launch speed and launch angle. See how many adjustments you have to make in order to get a hole-in-one. Turn the air on and off, turn the trails on and off, notice the time, and notice the shape of the curves. Instructions: • Go to http://www.physicslessons.com/exp7b.htm • Set the launch velocity to 60 m/s, trail “on” and “no air”. • Change the launch angle to 15 degree, click the launch button and take note of the horizontal displacement x. Repeat the experiment (changing the angle) and fill the first table (at the left). • Click the “no air” button (so it changes to “air”), repeat the experiments and fill the second table (at the right). Displacement [without air] Displacement [with air] Set launch speed, Vo = 60 m/s Set launch speed, Vo = 60 m/s Angle,  (deg) x (m) Angle,  (deg) H-Dis, x (m) 15 15 25 25 35 35 40 40 43 43 45 45 47 47 50 50 55 55 65 65 75 75 Questions: 1. What angle corresponds to the greatest horizontal range for the “without air” condition? What angle corresponds to the greatest horizontal range for the “with air” condition? Why is there a difference? 2. Describe the difference between the general shape of the trails for the two separate cases. 3. Do you notice any symmetry between high and low angles for either case? Describe the symmetry. 4. When practicing (playing) with the simulation earlier, how many tries did it typically take you to land the ball in the hole?

Physics Lab 1 Projectile Motion We will use this 2-D “Golf Simulation” to explore combined horizontal and vertical motion (select experiment #7). This simulation provides a fun-filled way to examine 2-D projectile motion with and without air resistance. Before to start the experiment, take a few minutes playing with the simulation. Adjust the initial velocity by adjusting the launch speed and launch angle. See how many adjustments you have to make in order to get a hole-in-one. Turn the air on and off, turn the trails on and off, notice the time, and notice the shape of the curves. Instructions: • Go to http://www.physicslessons.com/exp7b.htm • Set the launch velocity to 60 m/s, trail “on” and “no air”. • Change the launch angle to 15 degree, click the launch button and take note of the horizontal displacement x. Repeat the experiment (changing the angle) and fill the first table (at the left). • Click the “no air” button (so it changes to “air”), repeat the experiments and fill the second table (at the right). Displacement [without air] Displacement [with air] Set launch speed, Vo = 60 m/s Set launch speed, Vo = 60 m/s Angle,  (deg) x (m) Angle,  (deg) H-Dis, x (m) 15 15 25 25 35 35 40 40 43 43 45 45 47 47 50 50 55 55 65 65 75 75 Questions: 1. What angle corresponds to the greatest horizontal range for the “without air” condition? What angle corresponds to the greatest horizontal range for the “with air” condition? Why is there a difference? 2. Describe the difference between the general shape of the trails for the two separate cases. 3. Do you notice any symmetry between high and low angles for either case? Describe the symmetry. 4. When practicing (playing) with the simulation earlier, how many tries did it typically take you to land the ball in the hole?

info@checkyourstudy.com
Sample to sample: A researcher suspected that students who study with music playing in the background would not retain information as well as students who study under quiet conditions. To test her hypothesis, she randomly assigned 18 participants to either a music or quiet study condition and had them study the same information for the same amount of time. She then administered a 10 item test on the material to all participants. The test scores were interval/ratio data and normally distributed. Assume alpha=.05. Their scores were as follows: Music group: 6, 5, 6, 5, 6, 6, 7, 8, 5 Quiet group: 10, 9, 8, 7, 9, 6, 8, 6, 9 – – Describe what type of decision maker you are. Talk about a time you had to make a decision that affected others and what was the process in which you reached that decision. Be specific. Write your reaction to a club meeting that you have attended. Discuss how you felt about being at the meeting, how the meeting was run, what leadership characteristics did the officers exhibit, etc.? Was the meeting effective? Solving the water scarcity problem to achieve long-term water availability lake chad

Sample to sample: A researcher suspected that students who study with music playing in the background would not retain information as well as students who study under quiet conditions. To test her hypothesis, she randomly assigned 18 participants to either a music or quiet study condition and had them study the same information for the same amount of time. She then administered a 10 item test on the material to all participants. The test scores were interval/ratio data and normally distributed. Assume alpha=.05. Their scores were as follows: Music group: 6, 5, 6, 5, 6, 6, 7, 8, 5 Quiet group: 10, 9, 8, 7, 9, 6, 8, 6, 9 – – Describe what type of decision maker you are. Talk about a time you had to make a decision that affected others and what was the process in which you reached that decision. Be specific. Write your reaction to a club meeting that you have attended. Discuss how you felt about being at the meeting, how the meeting was run, what leadership characteristics did the officers exhibit, etc.? Was the meeting effective? Solving the water scarcity problem to achieve long-term water availability lake chad

checkyourstudy.com Whatsapp +919891515290
1-Two notions serve as the basis for all torts: wrongs and compensation. True False 2-The goal of tort law is to put a defendant in the position that he or she would have been in had the tort occurred to the defendant. True False 3-Hayley is injured in an accident precipitated by Isolde. Hayley files a tort action against Isolde, seeking to recover for the damage suffered. Damages that are intended to compensate or reimburse a plaintiff for actual losses are: compensatory damages. reimbursement damages. actual damages. punitive damages. 4-Ladd throws a rock intending to hit Minh but misses and hits Nasir instead. On the basis of the tort of battery, Nasir can sue: Ladd. Minh. the rightful owner of the rock. no one. 4-Luella trespasses on Merchandise Mart’s property. Through the use of reasonable force, Merchandise Mart’s security guard detains Luella until the police arrive. Merchandise Mart is liable for: assault. battery. false imprisonment. none of the choice 6-The extreme risk of an activity is a defense against imposing strict liability. True False 7-Misrepresentation in an ad is enough to show an intent to induce the reliance of anyone who may use the product. True False 8-Luke is playing a video game on a defective disk that melts in his game player, starting a fire that injures his hands. Luke files a suit against Mystic Maze, Inc., the game’s maker under the doctrine of strict liability. A significant application of this doctrine is in the area of: cyber torts. intentional torts. product liability. unintentional torts 9-More than two hundred years ago, the Declaration of Independence recognized the importance of protecting creative works. True False 10-n 2014, Cloud Computing Corporation registers its trademark as provided by federal law. After the first renewal, this registration: is renewable every ten years. is renewable every twenty years. runs for life of the corporation plus seventy years. runs forever. 11-Wendy works as a weather announcer for a TV station under the character name Weather Wendy. Wendy can register her character’s name as: a certification mark. a trade name. a service mark. none of the choices 12-Much of the material on the Internet, including software and database information, is not copyrighted. True False 13-In a criminal case, the state must prove its case by a preponderance of the evidence. True False 14-Under the Fourth Amendmentt, general searches through a person’s belongings are permissible. True False 15-Maura enters a gas station and points a gun at the clerk Nate. She then forces Nate to open the cash register and give her all the money. Maura can be charged with: burglary. robbery. larceny. receiving stolen property. 16-Reno, driving while intoxicated, causes a car accident that results in the death of Santo. Reno is arrested and charged with a felony. A felony is a crime punishable by death or imprisonment for: any period of time. more than one year. more than six months. more than ten days. 17-Corporate officers and directors may be held criminally liable for the actions of employees under their supervision. True False 18-Sal assures Tom that she will deliver a truckload of hay to his cattle ranch. A person’s declaration to do a certain act is part of the definition of: an expectation. a moral obligation. a prediction. a promise. 19-Lark promises to buy Mac’s used textbook for $60. Lark is: an offeror. an offeree a promisee. a promisor. 20-Casey offers to sell a certain used forklift to DIY Lumber Outlet, but Casey dies before DIY accepts. Most likely, Casey’s death: did not affect the offer. shortened the time of the offer but did not terminated it. extended the time of the offer. terminated the offer.

1-Two notions serve as the basis for all torts: wrongs and compensation. True False 2-The goal of tort law is to put a defendant in the position that he or she would have been in had the tort occurred to the defendant. True False 3-Hayley is injured in an accident precipitated by Isolde. Hayley files a tort action against Isolde, seeking to recover for the damage suffered. Damages that are intended to compensate or reimburse a plaintiff for actual losses are: compensatory damages. reimbursement damages. actual damages. punitive damages. 4-Ladd throws a rock intending to hit Minh but misses and hits Nasir instead. On the basis of the tort of battery, Nasir can sue: Ladd. Minh. the rightful owner of the rock. no one. 4-Luella trespasses on Merchandise Mart’s property. Through the use of reasonable force, Merchandise Mart’s security guard detains Luella until the police arrive. Merchandise Mart is liable for: assault. battery. false imprisonment. none of the choice 6-The extreme risk of an activity is a defense against imposing strict liability. True False 7-Misrepresentation in an ad is enough to show an intent to induce the reliance of anyone who may use the product. True False 8-Luke is playing a video game on a defective disk that melts in his game player, starting a fire that injures his hands. Luke files a suit against Mystic Maze, Inc., the game’s maker under the doctrine of strict liability. A significant application of this doctrine is in the area of: cyber torts. intentional torts. product liability. unintentional torts 9-More than two hundred years ago, the Declaration of Independence recognized the importance of protecting creative works. True False 10-n 2014, Cloud Computing Corporation registers its trademark as provided by federal law. After the first renewal, this registration: is renewable every ten years. is renewable every twenty years. runs for life of the corporation plus seventy years. runs forever. 11-Wendy works as a weather announcer for a TV station under the character name Weather Wendy. Wendy can register her character’s name as: a certification mark. a trade name. a service mark. none of the choices 12-Much of the material on the Internet, including software and database information, is not copyrighted. True False 13-In a criminal case, the state must prove its case by a preponderance of the evidence. True False 14-Under the Fourth Amendmentt, general searches through a person’s belongings are permissible. True False 15-Maura enters a gas station and points a gun at the clerk Nate. She then forces Nate to open the cash register and give her all the money. Maura can be charged with: burglary. robbery. larceny. receiving stolen property. 16-Reno, driving while intoxicated, causes a car accident that results in the death of Santo. Reno is arrested and charged with a felony. A felony is a crime punishable by death or imprisonment for: any period of time. more than one year. more than six months. more than ten days. 17-Corporate officers and directors may be held criminally liable for the actions of employees under their supervision. True False 18-Sal assures Tom that she will deliver a truckload of hay to his cattle ranch. A person’s declaration to do a certain act is part of the definition of: an expectation. a moral obligation. a prediction. a promise. 19-Lark promises to buy Mac’s used textbook for $60. Lark is: an offeror. an offeree a promisee. a promisor. 20-Casey offers to sell a certain used forklift to DIY Lumber Outlet, but Casey dies before DIY accepts. Most likely, Casey’s death: did not affect the offer. shortened the time of the offer but did not terminated it. extended the time of the offer. terminated the offer.

1-Two notions serve as the basis for all torts: wrongs … Read More...
Advertising and Critical Analysis For this essay you will examine a selection of commercials. This essay will require that you engage in some in-depth examination of 3-4 commercials. This “close viewing” of the commercials should lead you to a thesis that answers a question such as “Who do the advertisers think that I am?” or “What do these commercials say about us?” You need to do more than simply list some commercials and summarize them – although it is important that you summarize the commercials so that the reader can “see” them. A strong essay will look deeper into the commercial and its product – it will go beyond what is simply stated and instead examine the tangible elements of the commercial as well as what is underlying or unspoken in the advertisement. While writing this, here are some things to consider: • Besides the actual product, what else is the ad selling or promoting? • What human instinct, desire, or shortcoming is the ad playing to? • What is used to make the sale and turn consumers into customers (humor, sex, youth, etc.)? • How do these ads work in conjunction with the show during which they are aired? • Who do you think this ad is aimed at (audience)? • Although only a short commercial, what do you think these advertisements say about American culture or the American people? Helpful hints: • Choose commercials from specific sectors or ones that deal with similar ideas (i.e. alcohol, trucks, military, disabilities, etc.). Doing this will help you come up with a tight focus and hold to your thesis throughout the essay. • This essay needs to be 5 – 6 pages of polished and delightfully insightful prose. In addition your paper needs to exhibit all the standard formatting and fonts. This essay also requires a Works Cited page carefully listing any sources referenced, including the commercials being discussed.

Advertising and Critical Analysis For this essay you will examine a selection of commercials. This essay will require that you engage in some in-depth examination of 3-4 commercials. This “close viewing” of the commercials should lead you to a thesis that answers a question such as “Who do the advertisers think that I am?” or “What do these commercials say about us?” You need to do more than simply list some commercials and summarize them – although it is important that you summarize the commercials so that the reader can “see” them. A strong essay will look deeper into the commercial and its product – it will go beyond what is simply stated and instead examine the tangible elements of the commercial as well as what is underlying or unspoken in the advertisement. While writing this, here are some things to consider: • Besides the actual product, what else is the ad selling or promoting? • What human instinct, desire, or shortcoming is the ad playing to? • What is used to make the sale and turn consumers into customers (humor, sex, youth, etc.)? • How do these ads work in conjunction with the show during which they are aired? • Who do you think this ad is aimed at (audience)? • Although only a short commercial, what do you think these advertisements say about American culture or the American people? Helpful hints: • Choose commercials from specific sectors or ones that deal with similar ideas (i.e. alcohol, trucks, military, disabilities, etc.). Doing this will help you come up with a tight focus and hold to your thesis throughout the essay. • This essay needs to be 5 – 6 pages of polished and delightfully insightful prose. In addition your paper needs to exhibit all the standard formatting and fonts. This essay also requires a Works Cited page carefully listing any sources referenced, including the commercials being discussed.

checkyourstudy.com Whatsapp +919911743277
Chapter 15 Practice Problems (Practice – no credit) Due: 11:59pm on Friday, May 16, 2014 You will receive no credit for items you complete after the assignment is due. Grading Policy Fluid Pressure in a U-Tube A U-tube is filled with water, and the two arms are capped. The tube is cylindrical, and the right arm has twice the radius of the left arm. The caps have negligible mass, are watertight, and can freely slide up and down the tube. Part A A one-inch depth of sand is poured onto the cap on each arm. After the caps have moved (if necessary) to reestablish equilibrium, is the right cap higher, lower, or the same height as the left cap? You did not open hints for this part. ANSWER: Part B This question will be shown after you complete previous question(s). Part C This question will be shown after you complete previous question(s). Part D This question will be shown after you complete previous question(s). Pressure in the Ocean The pressure at 10 below the surface of the ocean is about 2.00×105 . Part A higher lower the same height m Pa Which of the following statements is true? You did not open hints for this part. ANSWER: Part B Now consider the pressure 20 below the surface of the ocean. Which of the following statements is true? You did not open hints for this part. ANSWER: Relating Pressure and Height in a Container Learning Goal: To understand the derivation of the law relating height and pressure in a container. The weight of a column of seawater 1 in cross section and 10 high is about 2.00×105 . The weight of a column of seawater 1 in cross section and 10 high plus the weight of a column of air with the same cross section extending up to the top of the atmosphere is about 2.00×105 . The weight of 1 of seawater at 10 below the surface of the ocean is about 2.00×105 . The density of seawater is about 2.00×105 times the density of air at sea level. m2 m N m2 m N m3 m N m The pressure is twice that at a depth of 10 . The pressure is the same as that at a depth of 10 . The pressure is equal to that at a depth of 10 plus the weight per 1 cross sectional area of a column of seawater 10 high. The pressure is equal to the weight per 1 cross sectional area of a column of seawater 20 high. m m m m2 m m2 m In this problem, you will derive the law relating pressure to height in a container by analyzing a particular system. A container of uniform cross-sectional area is filled with liquid of uniform density . Consider a thin horizontal layer of liquid (thickness ) at a height as measured from the bottom of the container. Let the pressure exerted upward on the bottom of the layer be and the pressure exerted downward on the top be . Assume throughout the problem that the system is in equilibrium (the container has not been recently shaken or moved, etc.). Part A What is , the magnitude of the force exerted upward on the bottom of the liquid? You did not open hints for this part. ANSWER: Part B What is , the magnitude of the force exerted downward on the top of the liquid? A  dy y p p + dp Fup Fup = Fdown You did not open hints for this part. ANSWER: Part C What is the weight of the thin layer of liquid? Express your answer in terms of quantities given in the problem introduction and , the magnitude of the acceleration due to gravity. You did not open hints for this part. ANSWER: Part D Since the liquid is in equilibrium, the net force on the thin layer of liquid is zero. Complete the force equation for the sum of the vertical forces acting on the liquid layer described in the problem introduction. Express your answer in terms of quantities given in the problem introduction and taking upward forces to be positive. You did not open hints for this part. ANSWER: Fdown = wlayer g wlayer = Part E This question will be shown after you complete previous question(s). Part F This question will be shown after you complete previous question(s). A Submerged Ball A ball of mass and volume is lowered on a string into a fluid of density . Assume that the object would sink to the bottom if it were not supported by the string. Part A  = = i Fy,i mb V f What is the tension in the string when the ball is fully submerged but not touching the bottom, as shown in the figure? Express your answer in terms of any or all of the given quantities and , the magnitude of the acceleration due to gravity. You did not open hints for this part. ANSWER: Archimedes’ Principle Learning Goal: To understand the applications of Archimedes’ principle. Archimedes’ principle is a powerful tool for solving many problems involving equilibrium in fluids. It states the following: When a body is partially or completely submerged in a fluid (either a liquid or a gas), the fluid exerts an upward force on the body equal to the weight of the fluid displaced by the body. As a result of the upward Archimedes force (often called the buoyant force), some objects may float in a fluid, and all of them appear to weigh less. This is the familiar phenomenon of buoyancy. Quantitatively, the buoyant force can be found as , where is the force, is the density of the fluid, is the magnitude of the acceleration due to gravity, and is the volume of the displaced fluid. In this problem, you will be asked several qualitative questions that should help you develop a feel for Archimedes’ principle. An object is placed in a fluid and then released. Assume that the object either floats to the surface (settling so that the object is partly above and partly below the fluid surface) or sinks to the bottom. (Note that for Parts A through D, you should assume that the object has settled in equilibrium.) Part A Consider the following statement: The magnitude of the buoyant force is equal to the weight of fluid displaced by the object. Under what circumstances is this statement true? T g T = Fbuoyant = fluidgV Fbuoyant fluid g V You did not open hints for this part. ANSWER: Part B Consider the following statement: The magnitude of the buoyant force is equal to the weight of the amount of fluid that has the same total volume as the object. Under what circumstances is this statement true? You did not open hints for this part. ANSWER: Part C Consider the following statement: The magnitude of the buoyant force equals the weight of the object. Under what circumstances is this statement true? for every object submerged partially or completely in a fluid only for an object that floats only for an object that sinks for no object submerged in a fluid for an object that is partially submerged in a fluid only for an object that floats for an object completely submerged in a fluid for no object partially or completely submerged in a fluid You did not open hints for this part. ANSWER: Part D Consider the following statement: The magnitude of the buoyant force is less than the weight of the object. Under what circumstances is this statement true? ANSWER: Now apply what you know to some more complicated situations. Part E An object is floating in equilibrium on the surface of a liquid. The object is then removed and placed in another container, filled with a denser liquid. What would you observe? You did not open hints for this part. ANSWER: for every object submerged partially or completely in a fluid for an object that floats only for an object that sinks for no object submerged in a fluid for every object submerged partially or completely in a fluid for an object that floats for an object that sinks for no object submerged in a fluid Part F An object is floating in equilibrium on the surface of a liquid. The object is then removed and placed in another container, filled with a less dense liquid. What would you observe? You did not open hints for this part. ANSWER: Part G Two objects, T and B, have identical size and shape and have uniform density. They are carefully placed in a container filled with a liquid. Both objects float in equilibrium. Less of object T is submerged than of object B, which floats, fully submerged, closer to the bottom of the container. Which of the following statements is true? ANSWER: The object would sink all the way to the bottom. The object would float submerged more deeply than in the first container. The object would float submerged less deeply than in the first container. More than one of these outcomes is possible. The object would sink all the way to the bottom. The object would float submerged more deeply than in the first container. The object would float submerged less deeply than in the first container. More than one of these outcomes is possible. Object T has a greater density than object B. Object B has a greater density than object T. Both objects have the same density. ± Buoyant Force Conceptual Question A rectangular wooden block of weight floats with exactly one-half of its volume below the waterline. Part A What is the buoyant force acting on the block? You did not open hints for this part. ANSWER: Part B W The buoyant force cannot be determined. 2W W 1 W 2 The density of water is 1.00 . What is the density of the block? You did not open hints for this part. ANSWER: Part C This question will be shown after you complete previous question(s). Part D This question will be shown after you complete previous question(s). Part E This question will be shown after you complete previous question(s). g/cm3 2.00 between 1.00 and 2.00 1.00 between 0.50 and 1.00 0.50 The density cannot be determined. g/cm3 g/cm3 g/cm3 g/cm3 g/cm3 Flow Velocity of Blood Conceptual Question Arteriosclerotic plaques forming on the inner walls of arteries can decrease the effective cross-sectional area of an artery. Even small changes in the effective area of an artery can lead to very large changes in the blood pressure in the artery and possibly to the collapse of the blood vessel. Imagine a healthy artery, with blood flow velocity of and mass per unit volume of . The kinetic energy per unit volume of blood is given by Imagine that plaque has narrowed an artery to one-fifth of its normal cross-sectional area (an 80% blockage). Part A Compared to normal blood flow velocity, , what is the velocity of blood as it passes through this blockage? You did not open hints for this part. ANSWER: Part B This question will be shown after you complete previous question(s). Part C v0 = 0.14 m/s  = 1050 kg/m3 K0 =  . 1 2 v20 v0 80v0 20v0 5v0 v0/5 This question will be shown after you complete previous question(s). For parts D – F imagine that plaque has grown to a 90% blockage. Part D This question will be shown after you complete previous question(s). Part E This question will be shown after you complete previous question(s). Part F This question will be shown after you complete previous question(s). ± Playing with a Water Hose Two children, Ferdinand and Isabella, are playing with a water hose on a sunny summer day. Isabella is holding the hose in her hand 1.0 meters above the ground and is trying to spray Ferdinand, who is standing 10.0 meters away. Part A Will Isabella be able to spray Ferdinand if the water is flowing out of the hose at a constant speed of 3.5 meters per second? Assume that the hose is pointed parallel to the ground and take the magnitude of the acceleration due to gravity to be 9.81 meters per second, per second. You did not open hints for this part. v0 g ANSWER: Part B This question will be shown after you complete previous question(s). Tactics Box 15.2 Finding Whether an Object Floats or Sinks Learning Goal: To practice Tactics Box 15.2 Finding whether an object floats or sinks. If you hold an object underwater and then release it, it can float to the surface, sink, or remain “hanging” in the water, depending on whether the fluid density is larger than, smaller than, or equal to the object’s average density . These conditions are summarized in this Tactics Box. Yes No f avg TACTICS BOX 15.2 Finding whether an object floats or sinks Object sinks Object floats Object has neutral buoyancy An object sinks if it weighs more than the fluid it displaces, that is, if its average density is greater than the density of the fluid: . An object floats on the surface if it weighs less than the fluid it displaces, that is, if its average density is less than the density of the fluid: . An object hangs motionless in the fluid if it weighs exactly the same as the fluid it displaces. It has neutral buoyancy if its average density equals the density of the fluid: . Part A Ice at 0.0 has a density of 917 . A 3.00 ice cube is gently released inside a small container filled with oil and is observed to be neutrally buoyant. What is the density of the oil, ? Express your answer in kilograms per meter cubed to three significant figures. ANSWER: Part B Once the ice cube melts, what happens to the liquid water that it produces? You did not open hints for this part. ANSWER: avg > f avg < f avg = f 'C kg/m3 cm3 oil oil = kg/m3 Part C What happens if some ethyl alcohol of density 790 is poured into the container after the ice cube has melted? ANSWER: Score Summary: Your score on this assignment is 0%. You received 0 out of a possible total of 0 points. The liquid water sinks to the bottom of the container. The liquid water rises to the surface and floats on top of the oil. The liquid water is in static equilibrium at the location where the ice cube was originally placed. kg/m3 A layer of ethyl alcohol forms between the oil and the water. The layer of ethyl alcohol forms at the bottom of the container. The layer of ethyl alcohol forms on the surface.

Chapter 15 Practice Problems (Practice – no credit) Due: 11:59pm on Friday, May 16, 2014 You will receive no credit for items you complete after the assignment is due. Grading Policy Fluid Pressure in a U-Tube A U-tube is filled with water, and the two arms are capped. The tube is cylindrical, and the right arm has twice the radius of the left arm. The caps have negligible mass, are watertight, and can freely slide up and down the tube. Part A A one-inch depth of sand is poured onto the cap on each arm. After the caps have moved (if necessary) to reestablish equilibrium, is the right cap higher, lower, or the same height as the left cap? You did not open hints for this part. ANSWER: Part B This question will be shown after you complete previous question(s). Part C This question will be shown after you complete previous question(s). Part D This question will be shown after you complete previous question(s). Pressure in the Ocean The pressure at 10 below the surface of the ocean is about 2.00×105 . Part A higher lower the same height m Pa Which of the following statements is true? You did not open hints for this part. ANSWER: Part B Now consider the pressure 20 below the surface of the ocean. Which of the following statements is true? You did not open hints for this part. ANSWER: Relating Pressure and Height in a Container Learning Goal: To understand the derivation of the law relating height and pressure in a container. The weight of a column of seawater 1 in cross section and 10 high is about 2.00×105 . The weight of a column of seawater 1 in cross section and 10 high plus the weight of a column of air with the same cross section extending up to the top of the atmosphere is about 2.00×105 . The weight of 1 of seawater at 10 below the surface of the ocean is about 2.00×105 . The density of seawater is about 2.00×105 times the density of air at sea level. m2 m N m2 m N m3 m N m The pressure is twice that at a depth of 10 . The pressure is the same as that at a depth of 10 . The pressure is equal to that at a depth of 10 plus the weight per 1 cross sectional area of a column of seawater 10 high. The pressure is equal to the weight per 1 cross sectional area of a column of seawater 20 high. m m m m2 m m2 m In this problem, you will derive the law relating pressure to height in a container by analyzing a particular system. A container of uniform cross-sectional area is filled with liquid of uniform density . Consider a thin horizontal layer of liquid (thickness ) at a height as measured from the bottom of the container. Let the pressure exerted upward on the bottom of the layer be and the pressure exerted downward on the top be . Assume throughout the problem that the system is in equilibrium (the container has not been recently shaken or moved, etc.). Part A What is , the magnitude of the force exerted upward on the bottom of the liquid? You did not open hints for this part. ANSWER: Part B What is , the magnitude of the force exerted downward on the top of the liquid? A  dy y p p + dp Fup Fup = Fdown You did not open hints for this part. ANSWER: Part C What is the weight of the thin layer of liquid? Express your answer in terms of quantities given in the problem introduction and , the magnitude of the acceleration due to gravity. You did not open hints for this part. ANSWER: Part D Since the liquid is in equilibrium, the net force on the thin layer of liquid is zero. Complete the force equation for the sum of the vertical forces acting on the liquid layer described in the problem introduction. Express your answer in terms of quantities given in the problem introduction and taking upward forces to be positive. You did not open hints for this part. ANSWER: Fdown = wlayer g wlayer = Part E This question will be shown after you complete previous question(s). Part F This question will be shown after you complete previous question(s). A Submerged Ball A ball of mass and volume is lowered on a string into a fluid of density . Assume that the object would sink to the bottom if it were not supported by the string. Part A  = = i Fy,i mb V f What is the tension in the string when the ball is fully submerged but not touching the bottom, as shown in the figure? Express your answer in terms of any or all of the given quantities and , the magnitude of the acceleration due to gravity. You did not open hints for this part. ANSWER: Archimedes’ Principle Learning Goal: To understand the applications of Archimedes’ principle. Archimedes’ principle is a powerful tool for solving many problems involving equilibrium in fluids. It states the following: When a body is partially or completely submerged in a fluid (either a liquid or a gas), the fluid exerts an upward force on the body equal to the weight of the fluid displaced by the body. As a result of the upward Archimedes force (often called the buoyant force), some objects may float in a fluid, and all of them appear to weigh less. This is the familiar phenomenon of buoyancy. Quantitatively, the buoyant force can be found as , where is the force, is the density of the fluid, is the magnitude of the acceleration due to gravity, and is the volume of the displaced fluid. In this problem, you will be asked several qualitative questions that should help you develop a feel for Archimedes’ principle. An object is placed in a fluid and then released. Assume that the object either floats to the surface (settling so that the object is partly above and partly below the fluid surface) or sinks to the bottom. (Note that for Parts A through D, you should assume that the object has settled in equilibrium.) Part A Consider the following statement: The magnitude of the buoyant force is equal to the weight of fluid displaced by the object. Under what circumstances is this statement true? T g T = Fbuoyant = fluidgV Fbuoyant fluid g V You did not open hints for this part. ANSWER: Part B Consider the following statement: The magnitude of the buoyant force is equal to the weight of the amount of fluid that has the same total volume as the object. Under what circumstances is this statement true? You did not open hints for this part. ANSWER: Part C Consider the following statement: The magnitude of the buoyant force equals the weight of the object. Under what circumstances is this statement true? for every object submerged partially or completely in a fluid only for an object that floats only for an object that sinks for no object submerged in a fluid for an object that is partially submerged in a fluid only for an object that floats for an object completely submerged in a fluid for no object partially or completely submerged in a fluid You did not open hints for this part. ANSWER: Part D Consider the following statement: The magnitude of the buoyant force is less than the weight of the object. Under what circumstances is this statement true? ANSWER: Now apply what you know to some more complicated situations. Part E An object is floating in equilibrium on the surface of a liquid. The object is then removed and placed in another container, filled with a denser liquid. What would you observe? You did not open hints for this part. ANSWER: for every object submerged partially or completely in a fluid for an object that floats only for an object that sinks for no object submerged in a fluid for every object submerged partially or completely in a fluid for an object that floats for an object that sinks for no object submerged in a fluid Part F An object is floating in equilibrium on the surface of a liquid. The object is then removed and placed in another container, filled with a less dense liquid. What would you observe? You did not open hints for this part. ANSWER: Part G Two objects, T and B, have identical size and shape and have uniform density. They are carefully placed in a container filled with a liquid. Both objects float in equilibrium. Less of object T is submerged than of object B, which floats, fully submerged, closer to the bottom of the container. Which of the following statements is true? ANSWER: The object would sink all the way to the bottom. The object would float submerged more deeply than in the first container. The object would float submerged less deeply than in the first container. More than one of these outcomes is possible. The object would sink all the way to the bottom. The object would float submerged more deeply than in the first container. The object would float submerged less deeply than in the first container. More than one of these outcomes is possible. Object T has a greater density than object B. Object B has a greater density than object T. Both objects have the same density. ± Buoyant Force Conceptual Question A rectangular wooden block of weight floats with exactly one-half of its volume below the waterline. Part A What is the buoyant force acting on the block? You did not open hints for this part. ANSWER: Part B W The buoyant force cannot be determined. 2W W 1 W 2 The density of water is 1.00 . What is the density of the block? You did not open hints for this part. ANSWER: Part C This question will be shown after you complete previous question(s). Part D This question will be shown after you complete previous question(s). Part E This question will be shown after you complete previous question(s). g/cm3 2.00 between 1.00 and 2.00 1.00 between 0.50 and 1.00 0.50 The density cannot be determined. g/cm3 g/cm3 g/cm3 g/cm3 g/cm3 Flow Velocity of Blood Conceptual Question Arteriosclerotic plaques forming on the inner walls of arteries can decrease the effective cross-sectional area of an artery. Even small changes in the effective area of an artery can lead to very large changes in the blood pressure in the artery and possibly to the collapse of the blood vessel. Imagine a healthy artery, with blood flow velocity of and mass per unit volume of . The kinetic energy per unit volume of blood is given by Imagine that plaque has narrowed an artery to one-fifth of its normal cross-sectional area (an 80% blockage). Part A Compared to normal blood flow velocity, , what is the velocity of blood as it passes through this blockage? You did not open hints for this part. ANSWER: Part B This question will be shown after you complete previous question(s). Part C v0 = 0.14 m/s  = 1050 kg/m3 K0 =  . 1 2 v20 v0 80v0 20v0 5v0 v0/5 This question will be shown after you complete previous question(s). For parts D – F imagine that plaque has grown to a 90% blockage. Part D This question will be shown after you complete previous question(s). Part E This question will be shown after you complete previous question(s). Part F This question will be shown after you complete previous question(s). ± Playing with a Water Hose Two children, Ferdinand and Isabella, are playing with a water hose on a sunny summer day. Isabella is holding the hose in her hand 1.0 meters above the ground and is trying to spray Ferdinand, who is standing 10.0 meters away. Part A Will Isabella be able to spray Ferdinand if the water is flowing out of the hose at a constant speed of 3.5 meters per second? Assume that the hose is pointed parallel to the ground and take the magnitude of the acceleration due to gravity to be 9.81 meters per second, per second. You did not open hints for this part. v0 g ANSWER: Part B This question will be shown after you complete previous question(s). Tactics Box 15.2 Finding Whether an Object Floats or Sinks Learning Goal: To practice Tactics Box 15.2 Finding whether an object floats or sinks. If you hold an object underwater and then release it, it can float to the surface, sink, or remain “hanging” in the water, depending on whether the fluid density is larger than, smaller than, or equal to the object’s average density . These conditions are summarized in this Tactics Box. Yes No f avg TACTICS BOX 15.2 Finding whether an object floats or sinks Object sinks Object floats Object has neutral buoyancy An object sinks if it weighs more than the fluid it displaces, that is, if its average density is greater than the density of the fluid: . An object floats on the surface if it weighs less than the fluid it displaces, that is, if its average density is less than the density of the fluid: . An object hangs motionless in the fluid if it weighs exactly the same as the fluid it displaces. It has neutral buoyancy if its average density equals the density of the fluid: . Part A Ice at 0.0 has a density of 917 . A 3.00 ice cube is gently released inside a small container filled with oil and is observed to be neutrally buoyant. What is the density of the oil, ? Express your answer in kilograms per meter cubed to three significant figures. ANSWER: Part B Once the ice cube melts, what happens to the liquid water that it produces? You did not open hints for this part. ANSWER: avg > f avg < f avg = f 'C kg/m3 cm3 oil oil = kg/m3 Part C What happens if some ethyl alcohol of density 790 is poured into the container after the ice cube has melted? ANSWER: Score Summary: Your score on this assignment is 0%. You received 0 out of a possible total of 0 points. The liquid water sinks to the bottom of the container. The liquid water rises to the surface and floats on top of the oil. The liquid water is in static equilibrium at the location where the ice cube was originally placed. kg/m3 A layer of ethyl alcohol forms between the oil and the water. The layer of ethyl alcohol forms at the bottom of the container. The layer of ethyl alcohol forms on the surface.

please email info@checkyourstudy.com Chapter 15 Practice Problems (Practice – no … Read More...
– 1 – Fall 2015 EECS 338 Assignment 2 Due: Oct. 1st, 2015 G. Ozsoyoglu Concurrent Programming with Semaphores; 140 points (100 pts) 1. Priority-based Searchers/Inserters/Deleters Problem without starvation. Three types of processes, namely, searchers, inserters, and deleters share access to a singly linked list L, and perform search, insert, or delete operations, respectively. The list L does not have duplicate values. a) Searchers merely search the list L, and report success (i.e., item searched is in L) or no-success (i.e., item searched is not in L) to a log file. Hence they can execute concurrently with each other. b) Inserters add new items to the end of the list L, and report success (i.e., item is not in L, and successfully inserted into L) or no-success (i.e., item is already in L, and no insertion takes place) to a log file. Insertions must be mutually exclusive to preclude two inserters from inserting new items at about the same time. However, one insert can proceed in parallel with any number of searches. c) Deleters remove items from anywhere in the list, and report success (i.e., the item is found in L and deleted) or no-success (i.e., item is not in L, and could not be deleted) to a log file. At most one deleter can access the list L at a time, and the deletion must be mutually exclusive with searches and insertions. d) Initial start. Searcher, inserter, and deleter processes are initially launched as follows. A user process that needs a search/insertion/deletion operation to the list L first forks a process, and then, in the forked process, performs an execv into a searcher/ inserter/deleter process. e) Log maintenance. Upon start, each searcher/inserter/deleter writes to a log file, recording the time of insertion, process id, process type (i.e., searcher, inserter, or deleter), and the item that is being searched/inserted/deleted. f) Termination. Upon successful or unsuccessful completion, each searcher/inserter/deleter writes to the same log file, recording the time and the result of its execution. g) Priority-based service between three types. Searchers, inserters, and deleters perform their search, insert, delete operations, respectively, on a priority basis (not on a first-come-first-serve (FCFS) basis) between separate process types (i.e., searchers, inserters, deleters) as follows. Searchers search with the highest priority; inserters insert with the second highest priority (except that one inserter can proceed in parallel with any number of searchers), and deleters delete with the lowest priority. h) FCFS service within a single type. Processes of the same type are serviced FCFS. As an example, among multiple inserters, the order of insertions into L is FCFS. Similarly, among multiple deleters, the order of deletions into L is FCFS. Note that, among searchers, while the start of search among searchers is FCFS, due to concurrent searcher execution, the completions of multiple searchers may not be FCFS. i) Starvation avoidance. In addition to the above priority-based search/insert/delete operations, the following starvation-avoidance rule is enforced. o After 10 consecutive searchers search the list L, if there is at least one waiting inserter or deleter then newly arriving searchers are blocked until (a) all waiting inserters are first serviced FCFS, and, then (b) all waiting deleters are serviced FCFS. Then, both the standard priority-based service between process types and the FCFS service within a process type resume. You are to specify a semaphore-based algorithm to synchronize searcher, inserter and deleter processes. Note:  Explain your algorithm.  Make sure to state any assumptions you make in your solution.  Specify the initial states of your variables and semaphores.  Specify whether your semaphores are binary or nonbinary.  Do not bother specifying algorithms for sequential tasks: simply specify a well-defined function/procedure (i.e., one with well-defined input/output/functional specification). – 2 – (40 pts) 2. Four-of-a-Kind Problem is defined as follows.  There is a deck of 24 cards, split into 6 different kinds, 4 cards of each kind.  There are 4 players (i.e., processes) ??,0≤?≤3; each player can hold 4 cards.  Between each pair of adjacent (i.e., seated next to each other) players, there is a pile of cards.  The game begins by o someone dealing four cards to each player, and putting two cards on the pile between each pair of adjacent players, and o ?0 starting the game. If ?0 has four-of-a-kind, ?0 wins. Whoever gets four-of-a-kind first wins.  Players take turns to play clockwise. That is, ?0 plays, ?1 plays, ?2 plays, ?3 plays, ?0 plays, etc.  Each player behaves as follows. o So long as no one has won, keep playing. o If it is my turn and no one has won:  Check for Four-of-a-Kind. If yes, claim victory. Otherwise discard a card into the pile on the right; pick up a card from the pile on the left; and, check again: If Four-of-a-Kind, claim victory; otherwise revise turn so that the next player plays and wait for your turn.  There are no ties; when a player has claimed victory, all other players stop (when their turns to play come up). You are to specify a semaphore-based algorithm to the Four-of-a-Kind problem. Note:  Explain your algorithm.  Make sure to state any assumptions you make in your solution.  Specify the initial states of your variables and semaphores.  Specify whether your semaphores are binary or nonbinary.  Do not bother specifying algorithms for sequential tasks: simply specify a well-defined function/procedure (i.e., one with well-defined input/output/functional specification). P1 P0 P2 P3 pile 1 pile 2 pile 3 pile 0

– 1 – Fall 2015 EECS 338 Assignment 2 Due: Oct. 1st, 2015 G. Ozsoyoglu Concurrent Programming with Semaphores; 140 points (100 pts) 1. Priority-based Searchers/Inserters/Deleters Problem without starvation. Three types of processes, namely, searchers, inserters, and deleters share access to a singly linked list L, and perform search, insert, or delete operations, respectively. The list L does not have duplicate values. a) Searchers merely search the list L, and report success (i.e., item searched is in L) or no-success (i.e., item searched is not in L) to a log file. Hence they can execute concurrently with each other. b) Inserters add new items to the end of the list L, and report success (i.e., item is not in L, and successfully inserted into L) or no-success (i.e., item is already in L, and no insertion takes place) to a log file. Insertions must be mutually exclusive to preclude two inserters from inserting new items at about the same time. However, one insert can proceed in parallel with any number of searches. c) Deleters remove items from anywhere in the list, and report success (i.e., the item is found in L and deleted) or no-success (i.e., item is not in L, and could not be deleted) to a log file. At most one deleter can access the list L at a time, and the deletion must be mutually exclusive with searches and insertions. d) Initial start. Searcher, inserter, and deleter processes are initially launched as follows. A user process that needs a search/insertion/deletion operation to the list L first forks a process, and then, in the forked process, performs an execv into a searcher/ inserter/deleter process. e) Log maintenance. Upon start, each searcher/inserter/deleter writes to a log file, recording the time of insertion, process id, process type (i.e., searcher, inserter, or deleter), and the item that is being searched/inserted/deleted. f) Termination. Upon successful or unsuccessful completion, each searcher/inserter/deleter writes to the same log file, recording the time and the result of its execution. g) Priority-based service between three types. Searchers, inserters, and deleters perform their search, insert, delete operations, respectively, on a priority basis (not on a first-come-first-serve (FCFS) basis) between separate process types (i.e., searchers, inserters, deleters) as follows. Searchers search with the highest priority; inserters insert with the second highest priority (except that one inserter can proceed in parallel with any number of searchers), and deleters delete with the lowest priority. h) FCFS service within a single type. Processes of the same type are serviced FCFS. As an example, among multiple inserters, the order of insertions into L is FCFS. Similarly, among multiple deleters, the order of deletions into L is FCFS. Note that, among searchers, while the start of search among searchers is FCFS, due to concurrent searcher execution, the completions of multiple searchers may not be FCFS. i) Starvation avoidance. In addition to the above priority-based search/insert/delete operations, the following starvation-avoidance rule is enforced. o After 10 consecutive searchers search the list L, if there is at least one waiting inserter or deleter then newly arriving searchers are blocked until (a) all waiting inserters are first serviced FCFS, and, then (b) all waiting deleters are serviced FCFS. Then, both the standard priority-based service between process types and the FCFS service within a process type resume. You are to specify a semaphore-based algorithm to synchronize searcher, inserter and deleter processes. Note:  Explain your algorithm.  Make sure to state any assumptions you make in your solution.  Specify the initial states of your variables and semaphores.  Specify whether your semaphores are binary or nonbinary.  Do not bother specifying algorithms for sequential tasks: simply specify a well-defined function/procedure (i.e., one with well-defined input/output/functional specification). – 2 – (40 pts) 2. Four-of-a-Kind Problem is defined as follows.  There is a deck of 24 cards, split into 6 different kinds, 4 cards of each kind.  There are 4 players (i.e., processes) ??,0≤?≤3; each player can hold 4 cards.  Between each pair of adjacent (i.e., seated next to each other) players, there is a pile of cards.  The game begins by o someone dealing four cards to each player, and putting two cards on the pile between each pair of adjacent players, and o ?0 starting the game. If ?0 has four-of-a-kind, ?0 wins. Whoever gets four-of-a-kind first wins.  Players take turns to play clockwise. That is, ?0 plays, ?1 plays, ?2 plays, ?3 plays, ?0 plays, etc.  Each player behaves as follows. o So long as no one has won, keep playing. o If it is my turn and no one has won:  Check for Four-of-a-Kind. If yes, claim victory. Otherwise discard a card into the pile on the right; pick up a card from the pile on the left; and, check again: If Four-of-a-Kind, claim victory; otherwise revise turn so that the next player plays and wait for your turn.  There are no ties; when a player has claimed victory, all other players stop (when their turns to play come up). You are to specify a semaphore-based algorithm to the Four-of-a-Kind problem. Note:  Explain your algorithm.  Make sure to state any assumptions you make in your solution.  Specify the initial states of your variables and semaphores.  Specify whether your semaphores are binary or nonbinary.  Do not bother specifying algorithms for sequential tasks: simply specify a well-defined function/procedure (i.e., one with well-defined input/output/functional specification). P1 P0 P2 P3 pile 1 pile 2 pile 3 pile 0

– 1 – Fall 2015 EECS 338 Assignment 2 Due: … Read More...
The Agawam High School band is playing some lively marches while the coaches are giving pep talks to their respective football squads. Although it is September, it is unseasonably hot (88°F/31°C) and the band uniforms are wool. Suddenly, Harry the tuba player becomes light-headed and faints. Explain his fainting in terms of vascular events

The Agawam High School band is playing some lively marches while the coaches are giving pep talks to their respective football squads. Although it is September, it is unseasonably hot (88°F/31°C) and the band uniforms are wool. Suddenly, Harry the tuba player becomes light-headed and faints. Explain his fainting in terms of vascular events

Harry’s condition suggests that this is a case of transient … Read More...
Essay – Athlete’s high salaries. Should they be paid that amount or not?

Essay – Athlete’s high salaries. Should they be paid that amount or not?

Athlete’s high salaries: Should they be paid that amount or … Read More...