C# PROGRAM (INHERITANCE)

Write a C# console application named Tape that includes fields for length and width in inches and properties for each field.  Also include a ToString()method that returns a string constructed from the return value of the object’s GetType() method and the values of the length and width fields.  Derive two subclasses – VideoCassetteTape and AdhesiveTape.  The VideoCassetteTape  class includes an integer field to hold playing time in minutes – a value from 1 to 180 – and a property for the field.  The AdhesiveTape  class includes an integer field that holds a stickiness factor – a value from 1 to 10 – and a property for the field.  Write a program that instantiates one object of each of the three classes, and demonstrate that all of each class’s methods work correctly.  Be sure to use valid and invalid values when testing the numbers you can use to set the properties of each class.

 

  1. State, in non-mathematical form, and briefly explain each of the assumptions of the general (multivariate) linear regression model. (6 pts)

 

  1. Explain why the concept of a sampling distribution is important in understanding the properties (i.e., BLUE) of regression parameter estimates. (6 pts)

 

  1. Using intermediate results (sum of squares), carry out a one-way ANOVA, state and test hypothesis, and interpret results. (10 pts)

 

  1. The Director-General of the World Health Organization is concerned with the rising level of traffic fatalities due to drunk driving in developed countries. She wants to determine if developed countries that have adopted mandatory jail sentencing for drunk driving have done so in response to higher vehicle mortality rates. Data was collected via a sample of 47 countries for 2008. The following SAS output from an independent samples t-test was obtained.  VMRPC is the vehicle mortality rate per capita. The classification variable, MJS, is given a value of one to indicate that a country has a mandatory sentence for an individual convicted of drunk driving.  Otherwise, MJS is given a value of zero.  Note that the reported p-values for the t-statistics are two-tailed.

 

The TTEST Procedure

Variable:  VMRPC

 

MJS           N      Mean        Std Dev       Std Err      Minimum     Maximum

0               33   0.000196    0.000050    8.729E-6    0.000123    0.000323

1               14   0.000233    0.000051    0.000014    0.000150    0.000324

Diff (1-0)           0.00004     0.000050    0.000016

 

Method             Variances        DF        t Value   Pr > |t|

Pooled               Equal             45           2.30      0.0259

Satterthwaite     Unequal       24.302       2.29       0.0308

 

Equality of Variances

Method      Num DF    Den DF    F Value    Pr > F

Folded F      13                32           1.02      0.9064

 

  1. State the null and alternative hypotheses. (2 pts)
  2. Which t-statistic (equal or unequal variance) is most appropriate to use for this test? Why? (3 pts)
  3. Carry out the hypothesis test using alpha=.05. (3 pts)
  4. Report and interpret the appropriate p-value. (1 pt)
  5. What would you tell the Director-General concerning the adoption of mandatory jail sentencing for drunk driving by developed countries? (3 pts)

 

  1. Using parameter estimates, standard errors, R-squared, adj R-squared, VIFs, standardized estimates, and n from a multivariate regression, state and test all null hypotheses, interpret results, determine near multicollinearity status and potential impacts, write a paragraph interpreting the overall results for a decision-maker, and derive a projection of the dependent variable given a specific set of values for the independent variables.  (26 pts)