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
Sergio [31]
3 years ago
15

Write a set of nested loops that display 10 rows of # characters. There should be 15 # characters in each row.

Computers and Technology
1 answer:
Andrews [41]3 years ago
5 0

Answer:

Following are the code to this question:

public class M//defining class M

{

public static void main(String[] as)//defining main method

{

    int i,j;//defining integer variable

for (i= 1; i <=10; i++)//defining for loop for print column    

{

for (j = 1; j<=15; j++)//defining for loop for print rows

{

System.out.print("#");//print # value

}

System.out.println();//print space

}

}

}

Output:

###############

###############

###############

###############

###############

###############

###############

###############

###############

###############

Explanation:

The code defines a class "M" and the main method is defined within a class and two integer variables I and j" are defined within the primary procedure, while the next step defines two for a loop.  

In the first loop, the column value is printed, and a further loop that prints the row value is declared inside the loop.  

You might be interested in
Choose the output result of the below code.
SIZIF [17.4K]

Answer:

B

Explanation:

When you initialize an instance of FunEvent(tags, year) and assign it to bc. The instance variables in this case are: self.tags = ["g", "ml"] and self.year = 2022. But then you alter tags, which will also change self.tags, since self.tags is a reference to the list you passed in as an argument. This is not the case when you do year=2023 because, first of all, integers are not mutable, and also because even if somehow integers were mutable, you're not changing the object in-place, you're simply changing the where the "variable" is pointing to. So for example if you did tags = ["g", "ml", "bc"] instead of tags.append("bc"), it would also not change the value of the instance variable "tags", because you wouldn't be changing the object in-place. So when you print(bc), the instance variables will be ["g", "ml", "bc"] and 2022. When you try to print an object, it call try to convert it into a string using the __str__  magic method. In this case it will return a string formatted as "Event(tags={self.tags}, year={self.year}) which will output "Event(tags=['g', 'ml', 'bc'], year=2022)" So the correct answer is B

4 0
3 years ago
Why is musical notation important? What benefits do musicians and others receive from being able to write down and note aspects
madreJ [45]
Most importantly, musicians can share their works with others.  Other people can see their musical ideas and can try and perform them too.   Nuances such as tempo, dynamics (loud soft, sweet, "harsh", are just some examples) can be understood even if the composer is not present and there is no recording to listen to.
Financial benefits can be realized from the sale of sheet music, scoring the piece, arranging the piece for bands, orchestras, etc. Conductors can lead an entire musical ensemble through the piece. 
4 0
4 years ago
5. How do vector graphics used with CRT technology work? List at least one of vector graphics’ advantages over raster graphics,
alekssr [168]
<span>Please see that Raster graphics are made up of pixels whereas Vector graphics are composed of paths, therefore the advantage of vector graphics is useful for creating images made up of line based components, such as Texts, polygons etc. Asteroids was a vector graphics based classic game.</span>
7 0
4 years ago
Mary’s computer is running slow and will not load programs or videos. She has tried restarting her computer yet it is still not
luda_lava [24]
She shall not reset her computer because she will have to load every thing again
8 0
4 years ago
Interview Questions for a game developer help needed
Katyanochek1 [597]

Answer:

just be truthful

Explanation:

8 0
4 years ago
Other questions:
  • Write a MASM program to calculate Fibonacci numbers:
    10·1 answer
  • Sami is creating a web page for her dog walking business. Which item will set the theme for her page? Background color Heading c
    11·2 answers
  • Which button should be utilized if a user is unsure whether or not they are the right person to reply to an email?
    6·2 answers
  • What is the capital of Peru?<br> A. <br> Brazil<br> B. <br> Lima<br> C. <br> Inca
    11·2 answers
  • What is unique about the TODAY and NOW functions?
    15·2 answers
  • Which are three possible text formatting actions in wordpad?
    6·1 answer
  • A typical day in programming and software development would involve
    12·1 answer
  • Last one, this is fashion marketing and I need to know the answer to get the 80%
    6·1 answer
  • which cyber protection condition establishes a protection priority focus on critical and essential functions only
    10·1 answer
  • What do you think that private information like passwords, PIN numbers, will be guarded or shared with the public? Why?​
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!