Questions
XYZ Company has two good businesses. Each has an initial investment of $ 25,000 with each...

XYZ Company has two good businesses. Each has an initial investment of $ 25,000 with each cash flow as follows:

Year Business 1 Cash Flow Business 2 Cash Flow
1                                      7,500                                       7,500
2                                      7,000                                       7,500
3                                      6,000                                       7,500
4                                      5,000                                       7,500
5                                      3,500                                       7,500

If the cost of capital is 12.5%, calculate:

A. Payback Period and NPV

B. In your opinion, which business is better chosen? Business 1 and Business 2? And Why?

In: Finance

XYZ Company has two good businesses. Each has an initial investment of $ 25,000 with each...

XYZ Company has two good businesses. Each has an initial investment of $ 25,000 with each cash flow as follows:

Year Business 1 Cash Flow Business 2 Cash Flow
1 7,500 7,500
2 7,000 7,500
3 6,000 7,500
4 5,000 7,500
5 3,500 7,500

If the cost of capital is 12.5%, calculate:

A. Payback Period and NPV

B. In your opinion, which business is better chosen? Business 1 and Business 2? And Why?

In: Finance

Java Generic 2D Linked List Problem How to convert a 1D linked List into multiple linked...

Java Generic 2D Linked List Problem

How to convert a 1D linked List into multiple linked lists with sequential values together?

//Example 1: [1,1,2,3,3] becomes [[1,1],[2],[3,3]]
//Example 1: [1,1,2,1,1,2,2,2,2] becomes [[1,1],[2],[1,1],[2,2,2,2]]
//Example 3: [1,2,3,4,5] becomes [[1],[2],[3],[4],[5]]

public <T> List<List<T>> convert2D(List<T> list) {

// Given a 1D, need to combine sequential values together.

}

In: Computer Science

Flip all 3 coins 10 times. Each flip place a tally mark next to the number...

Flip all 3 coins 10 times. Each flip place a tally mark next to the number of heads in the following table

Experiment 1

Number of Heads

TallyMark

0

1

1

4

2

5

3

0

Total Tosses

10

Experiment 2

Number of Heads

TallyMark

0

7

1

17

2

16

3

10

Total Tosses

50

Experiment 3

Number of Heads

TallyMark

0

16

1

41

2

27

3

16

Total Tosses

100

For each of the tables on the previous side, make a frequency distribution and a relative distribution

10 Tosses

50 Tosses

100 Tosses

1. Draw a tree Diagram to represent the event of tossing three coins

2. What is the sample space for this event?                        

3. Using the random variable, X, that measures the number of heads when you toss three coins, write the theoretical probability distribution.

4. Write a few sentences that compare and contrast the relative frequencies between the three experiments. Why are they different or similar?

5. Write a few sentences that compare relative frequencies with the theoretical probabilities. Why would they be similar or different? What happens as the number of trials gets bigger?

In: Statistics and Probability

The random variable X can take on the values 1, 2 and 3 and the random...

The random variable X can take on the values 1, 2 and 3 and the random variable Y can take on the values 1, 3, and 4. The joint probability distribution of X and Y is given in the following table:

Y

1

3

4

X

1

0.1

0.15

0.1

2

0.1

0.1

0.1

3

0.1

0.2

a. What value should go in the blank cell?

b. Describe in words and notation the event that has probability 0.2 in the table.

c. Calculate the marginal distribution of X and the marginal distribution of Y.

d. Are X and Y independent events? Show why or why not with calculations.

e. Calculate the conditional distribution of X given Y=1.

f. Calculate E(X) and E(Y).

g. Calculate V(X) and V(Y).

h. Calculate E(X|Y=1).

In: Statistics and Probability

In a sample of families with 6 children each, the distribution of boys and girls is...

In a sample of families with 6 children each, the distribution of boys and girls is as shown in the following table:

Number offamilies 10 60 147 202 148 62 10
Number of girls 0 1 2 3 4 5 6
Number of boys 6 5 4 3 2 1 0

Part A) Calculate the chi-square value to test the hypothesis of a boy-to-girl ratio of 1:1. (Express your answer using three decimal places)

Part B) Are the numbers of boys to girls in these families consistent with the expected 1:1 ratio? Yes or No

Part C) Calculate the chi-square value to test the hypothesis of binominal distribution in six-child families. (Express your answer using three decimal places)

Part D) Is the distribution of the numbers of boys and girls in the families consistent with the expectations of binomial probability? Yes or No

In: Biology

Bash scripting return output: Determine the output this code 1. #!/bin/bash Valid = true count=1 while...

Bash scripting return output: Determine the output this code

1. #!/bin/bash

Valid = true

count=1

while [ $valid ]

do

echo $count

if [ $count -eq 5 ];

then

break

fi

((count++))

done

2. #!/bin/bash

num=100

for x in $(seq 1 5)

do

temp=$((num+x))

if [ $temp -1e 103]; then

echo $temp

else

echo "Too Big"

fi

done

3.#!/bin/bash

num=5

for x in $(seq 1 5)

do

echo $((num*x))

done

4. #!/bin/bash

for x in $(seq 1 10)

do

echo $x

done

5. line 1

line 2

line 3

line 4

line 5

head -n4 < data.txt > t1.txt

tail -n1 <t1.txt > out.txt

cat out.txt

In: Computer Science

It's Java; the code should be the same as the output sample below; please, thank you....

It's Java; the code should be the same as the output sample below; please, thank you.

Note: create a single-file solution that has multiple class definitions. Also, note that the static main() method should be a member of the Vehicle class.

Create a class called Vehicle that has the manufacturers name (type String), number of cylinders in the engine (type int), and owner (type Person given next). Then, create a class called Truck that is derived from Vehicle and has the following additional properties: the load capacity in tons (type double since it may contain a fractional part) and towing capacity in pounds (type int). Be sure your class has a reasonable complement of constructors, accessor and mutator methods, and suitably defined equals and toString methods. Write a program to test all your methods (see sample run).

The definition of the class Person follows. Completing the definitions of the methods is part of this programming project.

class Person{
private String name;
public Person()
{...}
public Person(String theName)
{...}
public Person(Person theObject)
{...}
public String getName()
{...}
public void setName(String theName)
{...}
public String toString()
{...}
public boolean equals(Object other)
{...}
}

Output sample: interactive session

Enter·manufacturar·name:Chevrolet↵ Enter·number·of·cylinders:8↵ Enter·owner·name:David↵ Enter·load:2800.0↵ Enter·towing·capacity:1000↵ Enter·1·to·change·vehicle·properties,·2·to·print·and·10·to·quit:2↵ main↵ Manufacturer:·Chevrolet·Cylinders:·8·Name:·David·Load·Capacity:·2800.0·lbs·Tow·Capacity:·1000·pounds↵ Enter·1·to·change·vehicle·properties,·2·to·print·and·10·to·quit:1↵ Enter·1·to·change·manufacturar,·2·to·change·cylinders,·3·to·change·owner,·4·to·change·load,·5·to·change·towing·capacity,·or·any·other·number·to·go·back·to·main·menu:4↵ Enter·load:50000↵ Enter·1·to·change·vehicle·properties,·2·to·print·and·10·to·quit:1↵ Enter·1·to·change·manufacturar,·2·to·change·cylinders,·3·to·change·owner,·4·to·change·load,·5·to·change·towing·capacity,·or·any·other·number·to·go·back·to·main·menu:5↵ Enter·towing·capacity:1000↵ Enter·1·to·change·vehicle·properties,·2·to·print·and·10·to·quit:2↵ main↵ Manufacturer:·Chevrolet·Cylinders:·8·Name:·David·Load·Capacity:·50000.0·lbs·Tow·Capacity:·1000·pounds↵ Enter·1·to·change·vehicle·properties,·2·to·print·and·10·to·quit:10↵ ↵

In: Computer Science

5. Which value of x, with −4 ≤ x ≤ 4, corresponds to the global (absolute)...

5.

Which value of x, with −4 ≤ x ≤ 4, corresponds to the global (absolute) maximum of the functions f(x) = x 2 (3x 2 − 4x − 36) + c, where c is some given real number?

(a) −2 (b) 2 (c) 3 (d) 0 (e) None of the above.

*

14. Find f(x) by solving the initial value problem. f 0 (x) = e x − 2x; f (0) = 2

(a) f (x) = e x − x 2 (b) f (x) = e x − x 2 + 1 (c) f (x) = e x − x 2 + 2 (d) f (x) = e x − x 2 + C (e) None of the above.

*

18. Let f(x, y) = 1 + x + y + x 2 + axy + y 2 be a function of two variables. Suppose it is always true that ∂f /∂x = ∂f /∂y . What is the value of a?

(a) Any value of a is possible since mixed partial derivatives are equal. (b) 0 (c) 2 (d) 1 (e) There is no such value of a since the partial derivatives must be different.

Please provide the correct solution for each problem for a thumbs up. thank you!

In: Math

The owner of a moving company typically has his most experienced manager predict the total number...

The owner of a moving company typically has his most experienced manager predict the total number of labor hours that will be required to complete an upcoming move. This approach has proved useful in the past, but the owner has the business objective of developing a more accurate method of predicting labor hours. In a preliminary effort to provide a more accurate method, the owner has decided to use the number of cubic feet moved as the independent variable and has collected data for 36 moves in which the origin and destination were within the borough of Manhattan in New York City and in which the travel time was an insignificant portion of the hours worked.

A B C D
1 Hours Feet Large Elevator
2 24 545 3 yes
3 13.5 400 2 yes
4 26.25 562 2 no
5 25 540 2 no
6 9 220 1 yes
7 20 344 3 yes
8 22 569 2 yes
9 11.25 340 1 yes
10 50 900 6 yes
11 12 285 1 yes
12 38.75 865 4 yes
13 40 831 4 yes
14 19.5 344 3 yes
15 18 360 2 yes
16 28 750 3 yes
17 27 650 2 yes
18 21 415 2 no
19 15 275 2 yes
20 25 557 2 yes
21 45 1028 5 yes
22 29 793 4 yes
23 21 523 3 yes
24 22 564 3 yes
25 16.5 312 2 yes
26 37 575 3 no
27 32 600 3 no
28 34 796 3 yes
29 25 577 3 yes
30 31 500 4 yes
31 24 695 3 yes
32 40 1054 4 yes
33 27 486 3 yes
34 18 442 2 yes
35 62.5 1249 5 no
36 53.75 995 6 yes
37 79.5 1397 7 no

A) Construct a scatter plot.

B) Assuming a linear relationship, use the least-squares method to determine the regression coefficients b0 and b1.

C) Interpret the meaning of the slope, b1, in this problem.

D) Predict the mean labor hours for moving 500 cubic feet.

E) What should you tell the owner of the moving company about the relationship between cubic feet moved and labor hours?

Please show all work in detail.

In: Statistics and Probability