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
sasho [114]
4 years ago
14

What will this method call print? public void patternGrid(int rows, int columns, char symbol) { for(int m = 0; m < rows; m++)

{ for(int n = 0; n < columns; n++) { System.out.print(symbol); } System.out.println(); } } patternGrid(3,4,'#');
Computers and Technology
1 answer:
Agata [3.3K]4 years ago
4 0

Answer:

This method will print three rows and four columns of "#"

####

####

####

Explanation:

Given the method patternGrid() as follows:

  1.    public static void patternGrid(int rows, int columns, char symbol)
  2.    {
  3.        for(int m = 0; m < rows; m++)
  4.        {
  5.            for(int n = 0; n < columns; n++)
  6.            {
  7.                System.out.print(symbol);
  8.            }
  9.            System.out.println();
  10.        }
  11.    }

Inside the method, there is a two-layer for-loop (Lind 3 - 11). In a two-layer for loop, A single iteration of the outer loop (Line 3) will be accompanied with n-iterations of inner loop (Line 5).

By calling the function patternGrid(3, 4, "#"), the 3 will be used as the rows number while 4 used as the columns number. The two-layer for loop will run for 3 x 4 times. The symbol "#" will be printed four times within the inner loop (Line 7) before it exists from the inner loop and print a new line (Line 10). This process will be repeated for 3 times and eventually give

####

####

####

You might be interested in
Which type of account typically has low liquidity?
Gala2k [10]
The answer is checking account
3 0
4 years ago
The university computer lab’s director keeps track of lab usage, as measured by the number of students using the lab. This funct
Brut [27]

Answer:

to keep count of how many users there are in total.

Explanation:

all i had to do was read the question twice to understand the answer is pretty

much in the question.

4 0
4 years ago
Suppose that the following regular expression is used to recognize real numbers in scientific notation in a programming language
dlinn [17]

Answer:

1) 2.997 E+  Reject

2)E + 0005 Reject

Explanation:

The Explanation is attached below

5 0
3 years ago
Which model allows designers to use a graphical tool to examine structures rather than describing them with text?
Verdich [7]

A model which allow designers to use a graphical tool to examine structures rather than describe them by using text is called entity relationship.

<h3>What is an entity relationship?</h3>

An entity relationship can be defined as a data model with the highest level of abstraction and it is designed and develop to avail designers an ability to use a graphical tool to examine structures rather than describe them by using text.

This ultimately implies that, an entity relationship can be used to label the various relationship types based on connectivity, especially through the use of a graphical tool to examine structures rather than describe them with text.

Read more on entity relationship here: brainly.com/question/14530873

#SPJ1

3 0
2 years ago
The ____ feature automatically locates specific text and then replaces it with desired text. Find and Replace Locator Locate and
jekas [21]
The "Find and Replace" feature automatically locates specific text and then replaces it with desired text.
8 0
4 years ago
Other questions:
  • Boosting morale in a workplace through reorientation is accomplished by giving employees _____. a. snacks and drinks b. the same
    15·2 answers
  • What is the average reading rate for middle school students?
    12·1 answer
  • Dose the internet bring people together?
    15·1 answer
  • How would you declare an interface named Sports that has the following (show them in your answer as well): A method called jump
    5·1 answer
  • 2. Write a Python regular expression to replace all white space with # in given string “Python is very simple programming langua
    14·1 answer
  • In which step of web design is storyboarding helpful?
    10·1 answer
  • How do even do anything on Rblx Creator?? Will give branliest for whoever gives me the most info.
    13·1 answer
  • How to change the microsoft word pages to black background
    8·1 answer
  • Explain how you would set up a Demilitarized Zone on. You have 25 workstations and a server on your site. Explain what additiona
    5·1 answer
  • Please help!!!
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!