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
stiv31 [10]
3 years ago
6

Assume you are given a boolean variable named isSquare and a 2-dimensional array that has has been created and assigned to a2d.

Write some statements that assign true to isSquare if the entire 2-dimensional array is square meaning every row and column has the same number of elements as every other row and column.
Computers and Technology
1 answer:
slamgirl [31]3 years ago
3 0

Answer:

isSquare = true;

for (int i = 0; i < a2d.length && isSquare; i++)

if (a2d[i].length != a2d.length)

isSquare = false;

Explanation:

You might be interested in
In the sentence below, identify the proofreader's marks used.<br><br>Check my answer please :)
Ulleksa [173]
The answer is (A) Close up or Close space


Basically, the best way to learn proofreading marks is to constantly use them and to try and memorize them. In the example above, the marks are categorized as those for inserting, deleting and changing text. In this case the marks represent delete character and close up. The numbers after correction would be (333-1122)
3 0
3 years ago
State Newton’s second law of motion. Show that Newton’s first and third laws of motion are contained in the second law​
mixer [17]

Answer:

Every physics student learns Newton's three laws of motion. It's tempting to consider that these are three separate and independent laws. That's not so. Both the first and third laws may be mathematically derived from the second law, as we will show.

The fact that the first law may be derived from the second has long been known. The second law,Fnet=ma, tells us that the net (vector sum) of all forces acting on a body is equal to the product of the body's mass and its vector acceleration. When the acceleration is zero, the net force must be zero. This is exactly the content of the first law.

Let's first consider the case of two bodies in contact. Each exerts a force on the other at the interface, or point of contact, where the bodies touch. If that point or interface is treated as a "body" of mass zero, then Newton's second law tells us thatFnet=0a, soFnet= 0. So the net force on a body of zero mass is always zero, whatever forces act upon it. Therefore if only two forces act on a body, they must add to zero, and therefore must be equal size and oppositely directed. This establishes Newton's third law.

Explanation:

Hope this helps

6 0
3 years ago
Which devices are likely to include a computer? Select 3 options.
Veronika [31]

Answer:

Cell Phone, ATM Cash Machine, and a GPS Mapping Device

5 0
3 years ago
Sharon has multiple tables in her database. she wants to view related records in those tables. what should sharon do to view the
den301095 [7]

according to plato she should create relationships between the tables

3 0
3 years ago
Given : an int variable k, an int array currentMembers that has been declared and initialized, an int variable nMembers that con
atroni [7]

Answer:

The following are the code in the Java Programming Language.

//set the for loop

for (k = 0; k < nMembers; k++)

{

//check that currentMembers[k] is equal to the memberID

if (currentMembers[k] == memberID)

{

//then, initialize isAMember to true

isAMember = true;

//and initialize the value of nMembers in k

k = nMembers;

}

//otherwise

else

{

//initialize isAMember to false

isAMember = false;

}

}

Explanation:

<u>The following are the description of the program</u>.

  • Set the for loop statement that iterates from 0 and stops at the variable 'nMembers'.
  • Set the if conditional statement that checks the variable 'currentMembers[k]' is equal to the variable 'memberID' then, initialize 'true' boolean value in the variable 'isAMember' and also initialize the value of the variable 'nMembers' in the variable 'k'.
  • Otherwise, initialize 'false' boolean value in the variable 'isAMember'.
6 0
3 years ago
Other questions:
  • The email administrator has suggested that a technique called SPF should be deployed. What issue does this address?
    5·1 answer
  • does someone know how to change G,o,o,g,l,e and utube location or choose what ads I wanna see, the ads and info that pops out on
    6·1 answer
  • What is the information age?
    12·1 answer
  • What is a wireless network that provides communication over a short distance that is intended for use with devices that are owne
    14·2 answers
  • When the ____ property of an object is set to False, the object will not appear on the form when the program starts.
    6·1 answer
  • Various units used to measure computer memory
    13·1 answer
  • Guys help—How do you start a conversation with someone on brainly if that is a thing?
    6·1 answer
  • An input value has to be greater than 18 and less than 65 if a driving license is to be approved for issue. What type of input c
    11·1 answer
  • These are templates or patterns that make it easier for users to enter data
    8·1 answer
  • Dates of birth were entered into a computer program . The data was stored in the format DAY/MONTH/YEAR.The program rejected this
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!