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 limited-edition poster increases in value each year with an initial value of $18. After 1 year and an increase of 15% per year
Roman55 [17]

Answer:

The required equation is y = 18(1.15)^x.

Step-by-step explanation:

Consider the provided information.

The Initial value of poster = $ 18

After 1 year amount of increase = $ 20.70

With the rate of 15% = 0.15

Let future value is y and the number of years be x.

y = 18(1.15)^x

Now verify this by substituting x=1 in above equation.

y = 18(1.15)^1=20.7

Which is true.

Hence, the required equation is y = 18(1.15)^x.

7 0
2 years ago
Read 2 more answers
a hockey team ordered 12 wooden pedestals to mount their brass trophies on. The design pedestal is shown below. The teal is char
yKpoI14uk [10]

56 cause u need 12 divide by 0.08 12 times

8 0
2 years ago
Read 2 more answers
How is the graph of the parent function of y = 3√x transformed to produce the graph y = 3√1/2x? It is horizontally stretched by
inna [77]

The graph of the parent function is horizontally stretched by a factor of \frac{1}{2} ⇒ 1st answer

Step-by-step explanation:

Let us revise some transformation

A horizontal compression (or shrinking) is the squeezing of the graph toward the y-axis.  

A horizontal stretching is the stretching of the graph away from the y-axis  

  • If k > 1, the graph of y = f(k•x) is the graph of f(x) horizontally shrunk (or compressed) by dividing each of its x-coordinates by k.
  • If 0 < k < 1 (a fraction), the graph of y = f(k•x) is the graph of f(x) horizontally stretched by dividing each of its x-coordinates by k
  • If k should be negative, the horizontal stretch or shrink is followed by a reflection across the y-axis

A vertical stretching is the stretching of the graph away from the

x-axis  

A vertical compression (or shrinking) is the squeezing of the graph toward the x-axis.  

  • If k > 1, the graph of y = k•f(x) is the graph of f(x) vertically stretched by multiplying each of its y-coordinates by k.
  • If 0 < k < 1 (a fraction), the graph of y = k•f(x) is the graph of f(x) vertically shrunk (or compressed) by multiplying each of its y-coordinates by k
  • If k should be negative, the vertical stretch or shrink is followed by a reflection across the x-axis.  

∵  y=3\sqrt{x} is a parent function

∵ Its graph transformed to produce the graph of y=3\sqrt{\frac{1}{2} x}

- That means x is multiplied by a factor k, then it is compressed

   or stretched horizontally

∵ k = \frac{1}{2}

- The factor \frac{1}{2} is between 0 and 1, then it is

   stretched horizontally as the second rule above

∴ The graph of the parent function is stretched horizontally by a

   factor of \frac{1}{2}

The graph of the parent function is horizontally stretched by a factor of \frac{1}{2}

Look to the attached figure for more understand

Learn more:

You can learn more about transformation in brainly.com/question/9381523

#LearnwithBrainly

4 0
2 years ago
Mark has a 25 ounce drink. He drinks 5 ounces. What percent of the drink does he have left?
valina [46]

Answer: 80\%

Step-by-step explanation:

This problem can be solved by the <u>Rule of Three</u>, which is a mathematical rule to find out an amount that is with another quantity given in the same relation as other two also known.

In this case, the 25 ounce drink represents the 100 \% . So, if Mark drinks 5 ounces, this means he has 20 ounces left and we have to find the percent this represents:

25 oz ------- 100\%

20 oz -------- ?

?=\frac{(20 oz)(100\%)}{25 oz}

?=80\% This is the percent of the drink Mark has left

4 0
2 years ago
A survey of a group’s viewing habits over the last year revealed the following information: (i) 28% watched gymnastics (ii) 29%
almond37 [142]

Answer: D) 52%

Step-by-step explanation:

G = gymnastics

B = baseball

S = soccer

G = 28%

BA = 29%

S = 19%

G and BA = 14%

BA and S = 12%

G and S = 10%

GBS = 8%

So, as we can see at the Venn diagram attached (consider every number in %)

GBS = 8

A = G and S - GBS = 10 - 8 = 2

B = G and BA - GBS = 14 - 8 = 6

C = BA and S - GBS = 12 - 8 = 4

Only G = G - A - B - GBS = 28 - 2 - 6 - 8 = 12

Only BA = BA - B - C - GBS = 29 - 6 - 4 - 8 = 11

Only S = S - A - C - GBS = 19 - 2 - 4 - 8 = 5

So, 2+6+4+12+11+5+8 = 48

100 - 48 = 52%

3 0
2 years ago
Other questions:
  • Which of the following functions has the greatest y-intercept? f(x) x y −3 −27 −2 8 −1 −1 0 0 1 1 2 8 ,g(x) = 4 sin(4x) − 3
    13·1 answer
  • the parent function f(x) = x^3 and a translation, g(x), are shown on the graph. which represents g(x), the translated function?
    13·1 answer
  • Find all points of intersection of the given curves. (Assume 0 ≤ θ ≤ 2π and r ≥ 0. Order your answers from smallest to largest θ
    15·1 answer
  • Consider the following discrete probability distribution. x 15 22 34 40 P(X = x) 0.14 0.40 0.26 0.20 a. Is this a valid probabil
    11·1 answer
  • ©<br>By rounding to 1 significant figure, estimate<br>142.75 x 9.56​
    12·2 answers
  • Find the geometric mean of 16 and 25. Round your answer to the nearest tenth
    9·1 answer
  • Each summer Primo Pizza and Pizza Supreme compete to see who has the larger summer profit. Let p(x) represent Primo Pizza's prof
    13·1 answer
  • Gabriel determined that his total cost would be represented by 2.5x + 2y – 2. His sister states that the expression should be x
    15·1 answer
  • A hot air balloon is released at ground level, and it rises into the air at a constant rate. After 5 seconds the height of the b
    15·2 answers
  • The table shows the percent of successful unmanned missions to Mars by each country or agency to the nearest tenth of a percent.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!