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
mihalych1998 [28]
3 years ago
7

what advantage is procided by using a boolean found variable in a compound condition for a search loop

Computers and Technology
1 answer:
padilas [110]3 years ago
5 0

Answer:

- the notation while(!found) { ... } is semantically very clear

- you can initialize the found boolean as false

Explanation:

Within the while loop you will assign the compound condition to the 'found' variable. By initializing the variable with 'false' you ensure that the values used in the compound condition are valid.

Simplified example: read user input until 'Y' is pressed:

found = false;

while(!found) {

   userInput = readUserInput();

   found = (userInput == 'Y');

}

You might be interested in
The basic building blocks of java is known as<br><br><br><br>Reply fast! plzzzzzzzzzzz!!!
Nadya [2.5K]

Answer:

A class is the basic building block in Java.

8 0
3 years ago
What does % find on edhesive??
statuscvo [17]

Answer:

Explanation: What is that word you typed?

3 0
3 years ago
What is your robloz?​
ira [324]

Answer:

my Ro.b.l.o.x is cookiefunny232

Explanation:

5 0
3 years ago
Encryption is an important topic in math and computer science. It keeps your personal information safe online.
lys-0071 [83]
Thus is true
Encryption helps to keep data virtually safe
4 0
3 years ago
Which presentation software element can you use to control the speed between slides in a presentation?
Ad libitum [116K]

The answer is the Transition element.

A slide transition in PowerPoint occurs when you move from one slide to another during a presentation. You can control the speed (time spend on a single slide before advancing to the next). We use set duration to set the transition speed. To set the transition speed to a shorter or a larger duration, select the slide and click on the Transitions tab in the Timing group. In the Duration box, type the number of seconds that you want.  


3 0
3 years ago
Read 2 more answers
Other questions:
  • Aubrey didnt like to use graphics or images on her slides. She preferred to use only a title for her slides and bullet-poinged t
    14·2 answers
  • A communications objective is
    15·1 answer
  • Protected base class members cannot be accessed by: a.friends of the base class.
    6·1 answer
  • The domain in an email message tells you what?
    11·1 answer
  • Given that n refers to a positive integer, use a while loop to compute the sum of the cubes of the first n counting numbers, and
    12·1 answer
  • PLEASE HELP FAST!!!!!!Color photographs often look better on which type of photo paper
    7·1 answer
  • When I press F3, F4, and any of my apps on my mac why wouldn't it do anything? Do you have a way to solve this problem? When I p
    10·2 answers
  • Justice wrote a program and forgot to put the steps in the correct order. Which step does she need to review?
    5·2 answers
  • Is a way og saving a file so it can be used by a different program​
    11·1 answer
  • While storms could be a cause, power______ are more likely to be caused by disturbances from high-demand equipment in a home or
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!