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
Consider the equation an^2 = 182 where a is any number between 2 and 5 and n is a positive interger. What are the possible value
vodka [1.7K]

Step-by-step explanation:

an² = 182

When a = 2, n² = 182/2 = 91, n = 9.539...

When a = 5, n² = 182/5 = 36.4, n = 6.033...

Since 2 <= a <= 5, we have 6.033 <= n <= 9.539.

Therefore our possible values of n are 7, 8 and 9.

6 0
2 years ago
For number one I need help
bezimeni [28]
2/4 of orange paint, he took 1/4 off red so he has to take 1/4 off yellow as well
3 0
2 years ago
The tuition costs, C, for a local community college are modeled by C(h) = 250 + 200h, where h represents the number of credit ho
pochemuha

Answer:

2.5

Step-by-step explanation: i just solved it and it was correct. 300-250=50 50 divided by 20 is 2.5. you divide it by 20 because you have to isolate h in 20h by itself. and to do that you divide 20h by 20

7 0
2 years ago
Chris tried to rewrite the expression \left( 4^{-2} \cdot 4^{-3} \right)^{3}(4
crimeas [40]

We have been given an expression \left( 4^{-2} \cdot 4^{-3} \right)^{3}. We have been given steps how Chris tried to solve the given expression. We are asked to choose the correct option about Chris's work.

Let us simplify our given expression.

Using exponent property, a^m\cdot a^n=a^{m+n}, we cab rewrite our given expression as:

\left( 4^{-2+(-3)} \right)^{3}

\left( 4^{-5} \right)^{3}

Now we will use exponent property (a^m)^n=a^{m\cdot n}to further simplify our expression.

\left( 4^{-5} \right)^{3}= 4^{-5\cdot 3}

\left( 4^{-5} \right)^{3}= 4^{-15}

Therefore, Chris made mistake in step 2.

8 0
2 years ago
One weekend 5780 people saw a new movie at 17 different theaters each theater sold tickets at $7.50 a piece. Assuming that each
levacccp [35]
They are trying to fool you by saying 17 movie theaters, ignore that number.
5780 x 7.50 = $54,350

If this helped make sure to mark as the brainliest!
-procklown
3 0
2 years ago
Read 2 more answers
Other questions:
  • A city water department is proposing the construction of a new water pipe, as shown. the new pipe will be perpendicular to the o
    8·1 answer
  • Solve for z a(t+z)=45z+67
    13·2 answers
  • Assume that triangle GHI is congruent to LMN. Which of the following congruence statement are correct? check all that apply
    6·2 answers
  • Find f(6) if f(x)=x squared divided 3+x
    11·1 answer
  • A 15-foot flagpole leans slightly, such that it makes an 80° angle with the ground. The shadow of the flagpole is 10 feet long w
    5·2 answers
  • 2m - 6 = 8m then 3m =
    8·1 answer
  • On a game show, contestants shoot a foam ball toward a target. The table includes points along OnePath the ball can take to hit
    5·1 answer
  • Credit cards place a three-digit security code on the back of cards. What is the probability that a code starts with the number
    15·1 answer
  • The table represents the function f(x). A 2-column table with 7 rows. The first column is labeled x with entries negative 3, neg
    14·1 answer
  • A student has to take two quizzes tomorrow. He has only enough time to study for one of them. The history quiz has 5 true or fal
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!