Questions
The questions in this assessment use the following. class R { ... } class A extends...

The questions in this assessment use the following.

      class R { ... }
      class A extends R { ... }
      abstract class B extends R { ... }
      final class C extends R { ...}
      class D extends A { ... }
      class E extends B { ... }
      class F extends B { ... }
      // none of the classes implement a toString() method

[0] Draw a class hierarchy for the classes defined above.

[1] No or Yes:  class R extends Object

[2] class G extends C   does not compile. Why?

[3] class G extends E, F   does not compile. Why?

[4] B doh = new B();   does not compile. Why?

[5] System.out.println(new R());   prints: R@6bc7c054   Why?

[6] No or Yes:  class D can have subclasses (children).

[7] If  public String toString() { return "Arizona"; }  
    is added to class A, then System.out.println(new D()); 
    prints what?
[8] Assume the following is added to class C.

    public String toString() { 
       int azAgeIn2018 = 2018 - 1912;
       return "Arizona is " + azAgeIn2018 + " years young!";
    }

    What does System.out.println(new C()); print?

[9] System.out.println(new R().hashCode());  prints: 1808253012.
    No  public int hashCode()  method is implemented in class R.
    Briefly explain why this compiles and runs?

[10] If  public int hashCode() { return 48; }  is added to 
     class R, then what does the following statement print?

     System.out.println("Arizona is state# " + new R().hashCode());

In: Computer Science

State whether you believe fantasy sports in cricket is skills-based or chance-based and why using the...

State whether you believe fantasy sports in cricket is skills-based or chance-based and why using the information and data within this case.   

In: Statistics and Probability

Cushing's disease is characterized by muscular weakness due to adrenal or pituitary dysfunction. To provide effective...

Cushing's disease is characterized by muscular weakness due to adrenal or pituitary dysfunction. To provide effective treatment, it is important to detect childhood Cushing's disease as early as possible. Age at onset of symptoms and age at diagnosis (months) for 15 children suffering from the disease were given in an article. Here are the values of the differences between age at onset of symptoms and age at diagnosis. −70 −33 −44 −27 −35 −52 −15 −23 −62 −8 −80 −8 −58 −48 −19

(b) Calculate a lower 95% confidence bound for the population mean difference. (Use age at onset of symptoms − age at diagnosis. Round your answer to two decimal places.) months

(c) Suppose the (age at diagnosis) − (age at onset) differences had been calculated. What would be a 95% upper confidence bound for the corresponding population mean difference? (Round your answer to two decimal places.) months

In: Statistics and Probability

In all parts of this problem, assume that we are using fair, regular dice (six-sided with...

In all parts of this problem, assume that we are using fair, regular dice (six-sided with values 1, 2, 3, 4, 5, 6 appearing equally likely). Furthermore, assume that all dice rolls are mutually independent events.

(a) [4 pts] You roll two dice and look at the sum of the faces that come up. What is the expected value of this sum? Express your answer as a real number.

(b) [7 pts] Assuming that the two dice are independent, calculate the variance of their sum. Express your answer as a real number.

(c) [7 pts] You repeatedly roll two fair dice and look at the sum. What is the probability that you will roll a sum of 4 before you roll a sum of 7? Express your answer as a real number.

(d) [7 pts] What is the expected number of rolls until you get a sum of 4 or a sum of 7? (For example, if you get 7 on the first roll, the number of rolls is 1.) Express your answer as a real number.

(e) [7 pts] You roll 10 dice. Using the Chernoff Bound, give an upper bound for the probability that 8 or more of them rolled a 1 or a 2? You don’t need to calculate the value with a calculator (since you do not have one), but please write it in simplest terms.

In: Advanced Math

Assume that you have a sample of n 1 equals 8​, with the sample mean Xbar1...

Assume that you have a sample of n 1 equals 8​, with the sample mean Xbar1 equals 50​, and a sample standard deviation of S1 equals 7​, and you have an independent sample of n2 equals 15 from another population with a sample mean of Xbar2 equals 33​, and the sample standard deviation S2 equals 5. Construct a 95​% confidence interval estimate of the population mean difference between mu 1 and mu 2. Assume that the two population variances are equal. (blank) is less than or equal to mu1 minus mu2 which is less than (blank). What is the 95% confidence interval

In: Statistics and Probability

Using a cost of capital of 11​%, calculate the net present value for the project shown...

Using a cost of capital of 11​%, calculate the net present value for the project shown in the following table and indicate whether it is​ acceptable

Initial investment

​(CF 0CF0​)

-$1149

Year

​(t​)

Cash inflows

​(CF Subscript tCFt​)

in thousands

1

​$80

2

​$130

3

​$189

4

​$256

5

​$312

6

​$376

7

​$280

8

​$102

9

​$42

10

​$20

In: Finance

You extracted DNA and recorded the absorbance at two wavelengths. A260= .7 and A280= .39. A)...

You extracted DNA and recorded the absorbance at two wavelengths. A260= .7 and A280= .39.

A) is your DNA pure?

B) Determine the concentration of your DNA, knowing that 50 ug/ml DNA has an absorbance of 1 at 260nm.

In: Biology

The beginning inventory at Dunne Co. and data on purchases and sales for a three-month period...

The beginning inventory at Dunne Co. and data on purchases and sales for a three-month period ending June 30 are as follows:

Date Transaction Number
of Units
Per Unit Total
Apr. 3 Inventory 78 $300 $23,400
8 Purchase 156 360 56,160
11 Sale 104 1,000 104,000
30 Sale 65 1,000 65,000
May 8 Purchase 130 400 52,000
10 Sale 78 1,000 78,000
19 Sale 39 1,000 39,000
28 Purchase 130 440 57,200
June 5 Sale 78 1,050 81,900
16 Sale 104 1,050 109,200
21 Purchase 234 480 112,320
28 Sale 117 1,050 122,850

Required:

1. Record the inventory, purchases, and cost of merchandise sold data in a perpetual inventory record similar to the one illustrated in Exhibit 3, using the first-in, first-out method. Under FIFO, if units are in inventory at two different costs, enter the units with the LOWER unit cost first in the Cost of Goods Sold Unit Cost column and in the Inventory Unit Cost column.

Dunne Co.
Schedule of Cost of Goods Sold
FIFO Method
For the Three Months Ended June 30
Purchases Cost of Goods Sold Inventory
Date Quantity Unit Cost Total Cost Quantity Unit Cost Total Cost Quantity Unit Cost Total Cost
Apr. 3 fill in the blank 1 $fill in the blank 2 $fill in the blank 3
Apr. 8 fill in the blank 4 $fill in the blank 5 $fill in the blank 6 fill in the blank 7 fill in the blank 8 fill in the blank 9
fill in the blank 10 fill in the blank 11 fill in the blank 12
Apr. 11 fill in the blank 13 $fill in the blank 14 $fill in the blank 15 fill in the blank 16 fill in the blank 17 fill in the blank 18
fill in the blank 19 fill in the blank 20 fill in the blank 21
Apr. 30 fill in the blank 22 fill in the blank 23 fill in the blank 24 fill in the blank 25 fill in the blank 26 fill in the blank 27
May 8 fill in the blank 28 fill in the blank 29 fill in the blank 30 fill in the blank 31 fill in the blank 32 fill in the blank 33
fill in the blank 34 fill in the blank 35 fill in the blank 36
May 10 fill in the blank 37 fill in the blank 38 fill in the blank 39 fill in the blank 40 fill in the blank 41 fill in the blank 42
fill in the blank 43 fill in the blank 44 fill in the blank 45
May 19 fill in the blank 46 fill in the blank 47 fill in the blank 48 fill in the blank 49 fill in the blank 50 fill in the blank 51
May 28 fill in the blank 52 fill in the blank 53 fill in the blank 54 fill in the blank 55 fill in the blank 56 fill in the blank 57
fill in the blank 58 fill in the blank 59 fill in the blank 60
June 5 fill in the blank 61 fill in the blank 62 fill in the blank 63 fill in the blank 64 fill in the blank 65 fill in the blank 66
June 16 fill in the blank 67 fill in the blank 68 fill in the blank 69 fill in the blank 70 fill in the blank 71 fill in the blank 72
June 21 fill in the blank 73 fill in the blank 74 fill in the blank 75 fill in the blank 76 fill in the blank 77 fill in the blank 78
fill in the blank 79 fill in the blank 80 fill in the blank 81
June 28 fill in the blank 82 fill in the blank 83 fill in the blank 84 fill in the blank 85 fill in the blank 86 fill in the blank 87
fill in the blank 88 fill in the blank 89 fill in the blank 90
June 30 Balances $fill in the blank 91 $fill in the blank 92

2. Determine the total sales and the total cost of goods sold for the period. Journalize the entries in the sales and cost of goods sold accounts. Assume that all sales were on account.

Record sale fill in the blank 94
fill in the blank 96
Record cost fill in the blank 98
fill in the blank 100

3. Determine the gross profit from sales for the period.
$fill in the blank 101

4. Determine the ending inventory cost as of June 30.
$fill in the blank 102

In: Accounting

A local manufacturing company builds two products on the same production line that consists of seven...

A local manufacturing company builds two products on the same production line that consists of seven workstations. The times in hours and process stations are listed below. Process 1 Process 2 Process 3 Process 4 Process 5 Process 6 Process 7 Product A 0.25 1.75 1.0 1.5 1.5 2.75 0.25 Product B 0.25 0.75 0.5 1.5 0.5 0.75 0.25 The standard times for Product A is 9.0 hours and Product B is 4.5 hours. The company averages 22 units of Product A and 55 units of Product B per month. The company’s typical month is 22 days. Currently the production line is in a straight line configuration but management read a study that said cellular manufacturing is a better solution. Specifically they are interested in a U-shaped cell. They have approached you to setup the cellular work cell and determine how many workers will be needed. Before they implement this U-shaped cell, write a memo that explains the benefits of the cellular design over the current straight line layout and whether or not they should implement the cellular layout. Include how many employees are needed including the calculations, which processes would be worked by each employee, how many workstations are needed, and how the workstations should be arranged.

In: Accounting

The amount of oxygen consumption was measured in seven individuals over two periods of time while...

The amount of oxygen consumption was measured in seven individuals over two periods of time while sitting with their eyes closed. During the first period, they listened to an exciting adventure story; during the second period of time, they heard restful music. The researcher is not sure whether participants will consume more or less oxygen during the story compared with the music. Here are their results:

Subject

Story

Music

1

5.8

5.3

2

8.1

7.2

3

6.4

6.3

4

7.8

6.1

5

4.6

5.1

6

5.1

4.8

7

6.6

6.1

  1. Use the 5 steps of hypothesis testing
    1. Use excel (include populations & hypotheses in excel document)
  2. Sketch the distribution with cut-off value (s) and sample score, and regions of acceptance and rejection labeled.
  3. Summarize what you found.

In: Statistics and Probability