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]
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
What is the square root of 293
andrezito [222]
The square root of 293 is 17.11.
8 0
3 years ago
On the first day that tickets to the school play were sold, 100 tickets were sold for $230. Regular tickets cost $3 and student
algol [13]
30 of the $3 tickets were sold
70 of the $2 tickets were sold.

(3*30) + (2*70) = 230
6 0
3 years ago
Read 2 more answers
One car travel 56 miles per hour and another travels 31 miles per hour. If they start from the same place at the same time and t
Vitek1552 [10]

After 3 hours, the faster car will be 75 miles ahead of the slower car.

Step-by-step explanation:

Given,

Speed of first car = 56 miles per hour

Speed of second car = 31 miles per hour

Let,

x be the number of hours.

Distance covered by first car = Speed * time = 56x

Distance covered by second car = 31x

According to given statement;

Difference between distance covered by both cars = 75 miles

Distance of faster car - Distance of slower car = 75 miles

56x-31x=75\\25x=75

Dividing both sides by 25

\frac{25x}{25}=\frac{75}{25}\\x=3

After 3 hours, the faster car will be 75 miles ahead of the slower car.

Keywords: subtraction, division

Learn more about subtraction at:

  • brainly.com/question/1329620
  • brainly.com/question/1332667

#LearnwithBrainly

4 0
3 years ago
The table shows the solution to the equation |2x − 5| − 2 = 3: Step 1 |2x − 5| = 3 + 2 Step 2 |2x − 5| = 5 Step 3 2x − 5 = 5 or
telo118 [61]
<span> |2x − 5| − 2 = 3
</span><span>1) |2x − 5|  = 3 +2
2)</span><span> |2x − 5| = 5  
3) 2x-5 = 5, or 2x-5= -5
4)2x=10, or 2x=0
5) x = 5 , or x = 0

Check:
</span> |2x − 5| − 2 = 3
 |2*5− 5| − 2 = 3 or  |2*0 − 5| − 2 = 3
|5|-2=3               or   |-5| -2 =3
3=3 (true)           or    3=3 (true)

All steps are correct.

     
3 0
3 years ago
Choose as many answers as apply.
alexandr1967 [171]

Answer:

  • multiplying a multi-digit number by itself several times (finding the power of a number)
  • finding a square root
  • statistical calculations

Step-by-step explanation:

We don't know what your introduction tells you, but the above-listed operations are ones I choose to use a calculator for. I also use a calculator for ordinary arithmetic, such as division by numbers with 2 digits or more. (It is simply faster and requires no scratch paper.)

If statistical calculations are not done with a calculator, they at least require the availability of suitable tables.

___

All of these operations can be done by hand without a calculator, and were in times passed. Lifetimes of effort were involved in generating some of the original math tables for statistics, trig, logarithms, and other functions readily evaluated using a modern calculator.

3 0
3 years ago
Other questions:
  • A simple random sample of size nequals17 is drawn from a population that is normally distributed. The sample mean is found to be
    6·1 answer
  • It is given that y is directly proportional to x raise to power n and write down the value of n when y metre square is area of a
    15·1 answer
  • HELP ASAP PLEASEEEE!
    12·1 answer
  • Which part of this graph shows a linear relationship?
    10·1 answer
  • A total of $8000 is invested: part at 8% and the remainder at 12%. How much is invested at each rate if the annual interest is $
    6·1 answer
  • (b) An angle measures 77º. What is the measure of its supplement?
    5·2 answers
  • Complete the chart below.​
    6·2 answers
  • What is the value of the expression -8 • 3.2?
    12·1 answer
  • Um yeah so ignore the blue circles. I need your helpp ty &lt;3
    5·2 answers
  • An expedition leader estimates that a group of hikers can carry less than 550 pounds of food and equipment.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!