1answer.
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]
3 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]3 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
400 passengers go on a coach trip.
Afina-wow [57]

Answer: <u>₹759407.56</u>

Step-by-step explanation: Total No. of passengers = 400

1 Coach = 50 passengers

∴Total No. of coaches= 400/50=8 coaches.

Cost for each passenger= £23

∴Total cost for 400 passengers= 400x£23

= £9200 ( 1£=82.5443 ₹) ∴ Total cost for passengers = <u>₹759407.56</u>

Money spent per mile= 70p

∴Money spent for 200 miles= 200x70p=14000p

(1₹=100p) thus, 14000p=<u>₹140</u>

<u><em>Total profit</em></u>= <em>Money from the passengers- Money spent for fuel</em>

∴<u>₹759407.56- ₹140=  ₹7,59,407.56</u>

<u>Actually I am a 9th grader and I have tried this question, so I am not sure for my answer, But I have tried my level best.</u>

4 0
3 years ago
Find the coefficient of x^2 in the expansion of (2x - 1)^5.
Mashcka [7]

Answer:

So, the coefficient of the x^2 -term is 80

Step-by-step explanation:

so we need to simplify it:

#10(x^2)(2^3) = 10(x^2)(8) = 80x^2

5 0
3 years ago
The value of m, if 3,18,m,42 are in proportion
Tom [10]

If its a proportion then

\\ \sf\longmapsto 42-m=m-18

\\ \sf\longmapsto 42+18=m+m

\\ \sf\longmapsto 2m=60

\\ \sf\longmapsto m=\dfrac{60}{2}

\\ \sf\longmapsto m=30

5 0
3 years ago
How do I make this bell curve
Zanzabum

The mean you found is correct, but the standard deviation is not. Recall that the standard deviation \sigma_s (s for sample) of n points is given by

\sigma_s=\sqrt{\dfrac1{n-1}\displaystyle\sum_{1\le i\le n}(x_i-\bar x)^2}

where n=10 is the sample size, \bar x=3740 is the sample mean, and x_i are the prices listed in the circled column. So

\sigma_s=\sqrt{\dfrac{(3640-3740)^2+(7595-3740)^2+\cdots+(3390-3740)^2}{10-1}}

\implies\sigma_s\approx1443.98\approx1444

I can't tell if you need to provide any more info beyond this, but given there's a plot of a generalized bell curve, I think you're also supposed to label the plot.

At the center of the bell-shaped/normal distribution is the mean. Notice there are three tick marks to either side of the mean - these are probably supposed to represent prices that fall exactly 1, 2, and 3 standard deviations from the mean. These are, from left to right,

\bar x-3\sigma_s\approx3740-3(1444)=-592

\bar x-2\sigma_s\approx3740-2(1444)=852

\bar x-\sigma_s\approx2296

\bar x+\sigma_s\approx5184

\bar x+2\sigma_s\approx6628

\bar x+3\sigma_s\approx8072

8 0
3 years ago
You are having a swimming pool installed. a. Find the perimeter of the swimming pool.
goblinko [34]
10x15=1500
 \sqrt{x}  \sqrt[n]{x}  x_{123}  \leq
4 0
3 years ago
Other questions:
  • The lines below are perpendicular. If the green line has a slope of 2, what is
    6·1 answer
  • Highly important giving a bunch of points, don’t understand homework nor feel like doing it. So I’m giving the most points I can
    10·1 answer
  • Suppose g(x) = 2^x and h(x) = x^2. Which is greater, g(15) or h(15)?
    9·1 answer
  • Which number line represents the number 0.7?
    9·2 answers
  • Which graph shows the solution set for -5/2 x -3
    5·2 answers
  • Destiny earns $0.75 for every 1/4 hour she spends doing chores. How long o points
    5·2 answers
  • PLEASE HELP!!!! Choose the best graph that represents the linear equation: 4x + y = 0 Graph A On a coordinate plane, a line goes
    11·1 answer
  • -5x2-(xty)use x =-2and y =5
    8·1 answer
  • The graph below shows the height of a hot air balloon during a trip. What are the variables? Describe how they are related at va
    9·2 answers
  • Find the slope of the line that goes through the points (12,-13) and (14,10)?
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!