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
labwork [276]
2 years ago
7

How to use boolean to check if math answer is correct java

Computers and Technology
2 answers:
allsm [11]2 years ago
7 0

Boolean can be use to check math as follows;

  • 6 < 5
  • 8 > 7
  • 6 == 9

<h3>What are Booleans?</h3>

Booleans is a datatype with two possible values namely True and False.

The Boolean can be denoted as bool.

In programming its often use to check if a mathematical expression or statement are True or False.

Therefore, let's use it in mathematical expression;

6 < 5

8 > 7

6 == 9

The first expression will return False.

The second expression will return True.

The third expression will return False.  

learn more on Booleans here: brainly.com/question/14120893

#SPJ11

Lubov Fominskaja [6]2 years ago
4 0

Answer:

You can use an if statement since it is a Boolean type of function.

An if statement has to be true to be used. A double == is the best when checking.

These are all the possible symbols you can use to check if the math answer is correct: || , &&, <, >, <=, >=, ^, != , ==

As seen in the images, if x is the same value as y it is correct. However if it is not, it is wrong.

You might be interested in
Hooollaaaa , todos absolutamente todos quieren borrar esta tarea por que no tiene nada que ver con la materias del colegiooo per
Andreas93 [3]

Answer:

JAJAJSJJS XD PERO SI SOY

7 0
2 years ago
Read 2 more answers
Who uses super computer
Delvig [45]
Aerospace, petroleum, and automotive industries
3 0
2 years ago
Which was the first console with a programmable microprocessor and a ROM chip?
Mazyrski [523]
I believe it was Nintendo hope this helps 
5 0
3 years ago
Read 2 more answers
What does the W in WAN represent
Ilya [14]
WAN stands for Wide Area Network.
7 0
3 years ago
Read 2 more answers
Jason is working on a video image. He wants to add a small blur effect in a part of the video, but does not want to damage the v
romanna [79]
<span> Jason can use the filter tool to edit while maintaining the original content of the file.</span>
6 0
3 years ago
Other questions:
  • A reaction between an acid and a base is both a neutralization reaction and what other kind of reaction?
    10·1 answer
  • A project manager is working with a software development group to collect and evaluate user stories related to the organization’
    7·1 answer
  • Vivian wants to increase the storage capacity of her computer. Which components should she upgrade?
    7·1 answer
  • An array subscript can be an expression, but only as long as the expression evaluates to what type?
    7·1 answer
  • If you want to track users and sessions across multiple domains, what must you set up?
    11·1 answer
  • A variation of pronounce is a. Proclaim c. Produce b. Profound d. Pronunciation Please select the best answer from the choices p
    11·1 answer
  • Counter-controlled repetition is also known as:
    8·1 answer
  • A recommended cleaner for the bowls of coffee brewers is
    7·1 answer
  • What is the use of an NDP?
    13·1 answer
  • Define print_shape() to print the below shape. Example output:
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!