Questions
can you assist me in getting the desired output? Homework 5-3 Write a Java program that...

can you assist me in getting the desired output?

Homework 5-3

Write a Java program that prompts the user for an int n. You can assume that 1 ≤ n ≤ 9. You program should use two embedded for loops that produce the following output:

    1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
.
.
.

This is the code:

import java.util.Scanner;

public class PatternOne {

   public static void main(String[] args) {
       // TODO Auto-generated method stub

Scanner scnr = new Scanner(System.in);
  
//Taking rows value from the user

System.out.println("Please enter a number 1...9 ");

int rows = scnr.nextInt();

System.out.println(" ");

for (int i = 1; i <= 9; i++)
{
for (int j = 1; j <= i; j++)
{
System.out.print(j+" ");
}

System.out.println();
}  
      
   }
      
}

In: Computer Science

QUESTION 1 (15 marks) Studd Enterprises sells big-screen televisions. A concern of management is the number...

QUESTION 1

Studd Enterprises sells big-screen televisions. A concern of management is the number of televisions sold each day. A recent study revealed the number of days that a given number of televisions were sold.

                        # of TV units sold      # of days

                                       0                             2

  1.                         4

  1.                       10
  1.                       12
  1.                         8
  1.                         4

Answer the questions below. For each part, show your calculations and/or explain briefly how you arrived at your answer, as appropriate or needed.

Required:

  1. Convert the frequency distribution above into a probability distribution (or relative frequency distribution) showing the proportion of days (rather than the number of days) that the number of televisions sold was 0, 1, 2, 3, 4, and 5 respectively. and Compute the mean of this general discrete probability distribution. ( 6 marks)
  2. Compute the standard deviation of this general discrete probability distribution. ( 5 marks)
  3. What is the probability that exactly 4 televisions will be sold on any given day? and What is the probability that 2 or more televisions will be sold on any given day? ( 2 mark)
  4. What is the probability that less than 2 televisions will be sold on any given day? and What is the probability that between 1 and 4 televisions inclusive will be sold on any given day? (2 mark)

In: Statistics and Probability

a) Use the following data from eight individuals who were measured on variables X and Y,...

a) Use the following data from eight individuals who were measured on variables X and Y, to calculate the requested sums, below.       

i

X

Y

A

2

4

B

2

1

C

5

3

D

6

7

E

1

2

F

3

4

G

1

2

H

1

7

a. ΣX        b. Σ(X - Y)         c. ΣX2        d. Σ(X)2

e. (ΣX)2        f. Σ(Y - X)3        g. ΣXY        h. ΣX - ΣY

b) Use the following data from eight individuals who were measured on variables X and Y, to calculate the requested sums, below.

i

   X   

   Y   

A

5

3

B

2

9

C

3

8

D

5

7

E

7

6

F

8

5

G

8

4

H

2

3

a. ΣX            b. ΣY            c. ΣXY            d. ΣX2

e. (ΣX)2            f. (ΣXY)2        g. (ΣX)(ΣY)        h. Σ(X - 3)

i. Σ(X - 2)(Y - 3)        j. Σ(Y - 3)2

In: Math

Suppose you have the following 4 option contracts that expire in exactly 1 year from today....

  1. Suppose you have the following 4 option contracts that expire in exactly 1 year from today.

Premium

Strike Price

Call 1

$9.89

$75

Call 2

$4.98

$85

Put 1

$3.41

$75

Put 2

$8.30

$85

You establish an option position combining the purchase of Call 1 and Put 2 and the simultaneous sale of Call 2 and Put 1.

  1. What is the cost of establishing this position?

  1. Complete the following table, calculating the payoffs of the 4 options, the net cost of the position, and the profit of the overall combination.

Stock Price

$65

$70

$75

$80

$85

$90

$95

Payoff Long Call 1

Payoff Short Call 2

Payoff Long Put 2

Payoff Short Put 1

Terminal Value

Net Premium Paid

Profit

  1. What must be the risk-free rate of return given what you found in part (b)?

In: Finance

1. Explain how 2 determinants of health influence hygiene practices. (2 marks) 2.The nurse is instructed...

1. Explain how 2 determinants of health influence hygiene practices. (2 marks)

2.The nurse is instructed to wash a patient’s arms and legs from distal to proximal. What does this mean and what is the rationale for this? (2 marks)
3. When providing perineal care for a female why do we wash from front to back? (2 marks)

4. Why should people with diabetes or peripheral vascular disease not soak their feet for long periods of time? (2 marks)

5. Describe 3 age related changes that will impact a person’s hygiene. (6 marks)

CAN SOMEONE PLEASE ANSWER THESE USING A CLEAR HAND WRITTING IVE POSTED THIS QUESTION 2 TIMES BEFORE THIS IS THE 3 AND THE HAND WRITTING WAS VERY HORRIBLE...

In: Nursing

1. Explain how 2 determinants of health influence hygiene practices. (2 marks) 2.The nurse is instructed...

1. Explain how 2 determinants of health influence hygiene practices. (2 marks)

2.The nurse is instructed to wash a patient’s arms and legs from distal to proximal. What does this mean and what is the rationale for this? (2 marks)

3. When providing perineal care for a female why do we wash from front to back? (2 marks)

4. Why should people with diabetes or peripheral vascular disease not soak their feet for long periods of time? (2 marks)

5. Describe 3 age related changes that will impact a person’s hygiene. (6 marks)

In: Nursing

The expected dividends for a stock are: Year 1=$2, Year 2=$3, after Year 2, we expect...

The expected dividends for a stock are: Year 1=$2, Year 2=$3, after Year 2, we expect dividends to grow by 6% forever. If we require an annual return of 8% from this stock, what would be the value of the stock to us? If it sells for $30 in the market, should we buy it?

In: Finance

Complete parts​ (a) through​ (c) using the following data. Row 1 Row 2 2 93 2...

Complete parts​ (a) through​ (c) using the following data.

Row 1 Row 2

2 93

2 87

2 79

5 78

5 95

5 66

6 74

6 84

7 56

8 62

(a) Find the equation of the regression line for the given​ data, letting Row 1 represent the​ x-values and Row 2 the​ y-values. Sketch a scatter plot of the data and draw the regression line.

Input the values of the slope and intercept for the regression line when Row 1 represents the​ x-values.

y =_____x+ ( _____ )

​(Round to three decimal places as​ needed.)

Construct a scatter plot of the data and draw the regression line. Plot Row 1 on the horizontal axis and Row 2 on the vertical axis.

​(b) Find the equation of the regression line for the given​ data, letting Row 2 represent the​ x-values and Row 1 the​ y-values. Sketch a scatter plot of the data and draw the regression line.

Input the values of the slope and intercept for the regression line when Row 2 represents the​ x-values.

y = ______ x+ ( _____ )

​(Round to three decimal places as​ needed.)

Construct a scatter plot of the data and draw the regression line. Plot Row 2 on the horizontal axis and Row 1 on the vertical axis. Choose the correct graph below.

​(c) What effect does switching the explanatory and response variables have on the regression​ line? Choose the right answer below

A.The sign of m is​ unchanged, but the values of m and b change.

B.The sign and value of m is​ unchanged, but the value of b changes.

C.The value of b is​ unchanged, but the sign and value of m change.

D.The value of m is​ unchanged, but the sign of m and value of b change.

E.The sign and value of m and the value of b all change.

F.Nothing changes.

In: Finance

I = ∫sqrt(4x^2+20) dx I = ∫(1)/(x^2*sqrt(x^2-a)) dx

I = ∫sqrt(4x^2+20) dx

I = ∫(1)/(x^2*sqrt(x^2-a)) dx

In: Math

1. What does Stanton mean when he refers to the “element of 2+2?” 2. What does...

1. What does Stanton mean when he refers to the “element of 2+2?”
2. What does Stanton say about temperament?

In: Economics