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
Reggie Means invested part of $31,000 in municipal bonds that earn 7.5% annual simple interest and the remainder of the money in
insens350 [35]

Answer:

Principal Invested in Municipal Bonds is $16,000

Principal Invested in Corporate Bonds is $15,000

Step-by-step explanation:

If;

Principal Invested in municipal bonds = a

Principal Invested in corporate bonds = b

then we have;

a + b = $31,000 --------------------------------Equation 1

0.075a + 0.085b = $2,475  ---------------Equation 2

From equation 1 we have;

a = 31,000 - b

By putting the values of a in Equation 2 we get;

0.075 (31,000 - b) + 0.085b = 2,475

2,325 - 0.075b + 0.085b = 2,475

0.01b = 150

b = $15,000

By putting the values of b in equation 1 we get;

a = $16,000

4 0
3 years ago
Alexander purchased a computer on sale. The original price was $1,200. The sale price was 5/6 of the original price. How much di
Alexxx [7]

Answer:

1000

Step-by-step explanation:

1200*5/6=1000

3 0
3 years ago
A merchant is sold at a loss of 15%. if he bought this article at birr 6000, how much he sold it ?​
zalisa [80]

Answer:

He sold it at 5100

Step-by-step explanation:

Find the 15% of 6000

6000 *15%

6000*.15

900

At a loss means subtract

6000-900

5100

He sold it at 5100

4 0
3 years ago
Select the 2 common denominators for 1/4 and 7/10 .
irina [24]

Answer:

B) 20 and E) 40

Step-by-step explanation:

4 = 2*2= 2²

10=2*5

Common denominators = 2²*5=4*5=20

20,40

5 0
3 years ago
PLSSSSSS HELPPPP PLSSSSS
Leviafan [203]

Answer:

C. 200 minutes, $260

Step-by-step explanation:

The equations would look like this

Lynn = y = 1.10x + 40

Heather = y = 1.15x + 30

Now just plug in.

Lynn

260 = 1.10(200) + 40

260 = 220 + 40

260 = 260

Heather

260 = 1.15(200) + 30

260 = 230 + 30

260 = 260

Hope this helps ya! Keep smiling!

5 0
3 years ago
Read 2 more answers
Other questions:
  • Which graph shows a plot of the complex number i - 2
    13·1 answer
  • How do i solve 6x=5x+7 by using solving systems by elimination?
    8·2 answers
  • The measure of major arc TBU is_degrees.
    11·1 answer
  • The pyramid shown has a square base that is 1212 centimeters on each side. The slant height is 1818 centimeters. What is the sur
    15·1 answer
  • a and b together can do a work in 10 days B and C together can do the same work in 15 days a b and c together can do the same wo
    9·1 answer
  • A pass to a water park is $58. A discount of 10% is given to customers at the end of the season.
    12·1 answer
  • 2.
    15·1 answer
  • 7-4????????????????????
    12·2 answers
  • DUE IN 2 MINTUES PLZZ HELP
    8·1 answer
  • Solve th simultaneous equations<br> 3x + y = 17<br> 2x +y = 12
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!