answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
den301095 [7]
2 years ago
14

Given an int variable n that has already been declared and initialized to a positive value, and another int variable j that has

already been declared, use a for loop to print a single line consisting of n asterisks. Thus if n contains 5, five asterisks will be printed. Use no variables other than n and j.
Mathematics
1 answer:
Inessa05 [86]2 years ago
7 0

Answer:

for(j = n; j > 0; j--)

System.out.print(\"*\");

Step-by-step explanation:

-A for loop is a repetition control structure.

-It allows the efficiency to write a loop that would otherwise be written a couple of times.

-The output is a single line comprising n asterisks,

-The number of asterisks printed will be equivalent to the n-value declared.

You might be interested in
A researcher is investigating variables that might be associated with the academic performance of high school students. She exam
zloy xaker [14]

Answer:

Check the explanation

Step-by-step explanation:

Kindly check the attached images below to see the step by step explanation to the question above.

5 0
2 years ago
Suppose the weights of fish caught from pier 1 and pier 2 are normally distributed with equal population standard deviations. Th
madreJ [45]

Answer:

<em>H₀</em>: <em>μ</em>₁ = <em>μ</em>₂ vs, <em>Hₐ</em>: <em>μ</em>₁ > <em>μ</em>₂.

Step-by-step explanation:

A two-sample <em>z</em>-test can be performed to determine whether the claim made by the owner of pier 1 is correct or not.

It is provided that the weights of fish caught from pier 1 and pier 2 are normally distributed with equal population standard deviations.

The hypothesis to test whether the average weights of the fish in pier 1 is more than pier 2 is as follows:

<em>H₀</em>: The weights of fish in pier 1 is same as the weights of fish in pier 2, i.e. <em>μ</em>₁ = <em>μ</em>₂.

<em>Hₐ</em>: The weights of fish in pier 1 is greater than the weights of fish in pier 2, i.e. <em>μ</em>₁ > <em>μ</em>₂.

The significance level of the test is:

<em>α</em> = 0.05.

The test is defined as:

z=\frac{(\bar x_{1}-\bar x_{2})-(\mu_{1}-\mu_{2})}{\sqrt{\frac{\sigma_{1}^{2}}{n_{1}}+\frac{\sigma_{2}^{2}}{n_{2}}}}

The decision rule for the test is:

If the <em>p</em>-value of the test is less than the significance level of 0.05 then the null hypothesis will be rejected and vice-versa.

6 0
2 years ago
=
SOVA2 [1]

Answer:

Tn=13n-18

Step-by-step explanation:

Tn=-5(n-1)13

Simplify

this is using the a+(n-1)d

8 0
2 years ago
Read 2 more answers
Nour drove from the Dead Sea up to Amman, and her altitude changed at a constant rate. When she began driving, her altitude was
attashe74 [19]

Answer:

y = 700x - 400

Step-by-step explanation:

A negative number represents an altitude below sea level.

Beginning: -400

y = mx + b

y = mx - 400

In 2 hours the altitude was now 1000 m.

1000 m - (400 m) = 1400 m

The altitude went up 1400 m in 2 hours. The rate of change is

1400/2 m/h = 700 m/h

The rate of change is the slope.

y = 700x - 400

3 0
2 years ago
Addison wants to cut 21 centimeters of lace, but her ruler is only calibrated in millimeters. How many millimeters of lace shoul
serg [7]
1 cm = 10 mm

(21 cm)(10) = 210 mm
5 0
2 years ago
Other questions:
  • Using only the values given in the table for the function f(x) = –x3 + 4x + 3, what is the largest interval of x-values where th
    9·2 answers
  • 50 points if you answer question and show work.
    11·2 answers
  • Tony wants to plant no more than 400 acres of corn and soybeans. He earns $300 per acre of soybeans and $200 for corn. He needs
    5·1 answer
  • If x=6 is the only x-intercept of the graph of a quadratic equation, which statement best describes the discriminant of the equa
    6·1 answer
  • A conical cup is made from a circular piece of paper with radius 10 cm by cutting out a sector and joining the edges as shown be
    10·1 answer
  • An element with mass 730 grams decays by 27.6% per minute. How much of the element is remaining after 12 minutes, to the nearest
    11·2 answers
  • If 40 percent of a movie ticket costs $5.00 what is 20 percent of the cost of two tickets
    8·1 answer
  • Ahmad just put some money into a cd that pays 11.3% interest compounded semiannually according to the rule of 72 in approximatel
    10·1 answer
  • A= 49 sq. in.<br><br> Find the value of x. If necessary, round to the nearest tenth.
    10·2 answers
  • A researcher takes a random sample of 2,496 drivers and finds that 1,603 put their phone in "drive mode” to not be distracted wh
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!