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
charle [14.2K]
4 years ago
12

In a situation where you want to perform one action when a Boolean expression evaluates as true and an alternate action when it

evaluates as false, otherwise known as a dual-alternative decision, what sort of statement should you use?
Social Studies
1 answer:
Ghella [55]3 years ago
8 0

Answer:

if-else

Explanation:

Based on the information provided within the question it can be said that the best statement to use in this situation is an if-else statement. Like mentioned, this is a statement that outputs two different results depending on whether or not the input meets a predefined set of rules.

For Example: Input is 17

if (hour < 18) {

 greeting = "Good day";

} else {

 greeting = "Good evening";

}

Output would be "Good evening" in this situation

You might be interested in
17. Over the past century, the population of the world has been:
miss Akunina [59]

Answer:

growing even though the fertility rate is decreasing

Explanation:

we know about our past all over people had not be educated even their fertility rate ll

8 0
3 years ago
The first part of the state settled by the Europeans was what?
sesenic [268]

Answer:

The first colony was founded at Jamestown, Virginia I'm pretty sure

8 0
3 years ago
Read 2 more answers
Hiding a loaded gun is the best way to prevent children from gaining access to it.
Ulleksa [173]

Answer: false

Explanation:

there are better ways to prevent children from accessing the gun

6 0
3 years ago
Read 2 more answers
Where is the Amazon rainforest located?<br> A. Peru<br> B. Mexico<br> C. Brazil<br> D. Cuba
VARVARA [1.3K]
The best answer is
The amazon rainforest located in a brazil and its cover the northwestern part of brazil
6 0
3 years ago
Read 2 more answers
An ideology that encourages a nation to "mind their own business" is
Vsevolod [243]

Answer:

isolationist

Explanation:

8 0
3 years ago
Other questions:
  • A basketball rolled 300 m down a hill in 25 s. What was it’s average speed down the hill?
    8·2 answers
  • ​rashid's indifference curves​ ______ display diminishing marginal rate of substitution because​ _______.
    10·1 answer
  • In the context of treating children who suffer from bipolar disorder, _____, included by the dsm-5 as a new diagnosis, is consid
    11·1 answer
  • How did the black codes affect African Americans
    9·2 answers
  • This is an area in which an organism lives and that will provide the organism with the resources it needs to survive is called
    11·1 answer
  • Most of Southwest Asia can be classified as having a ___ Climate.
    15·2 answers
  • Which social scientist has identified three functions in which racially prejudiced beliefs serve the dominant group (e.g., they
    13·1 answer
  • Agree or Disagree: The government should act to limit how much business can earn each year
    9·2 answers
  • Arnold had difficulty recognizing that bullfighting was a sport because it failed to resemble his ________ of a sport.
    15·1 answer
  • Psychology attempts to understand human nature using the method of A) science. B) literature. C) intuition. D) philosophy.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!