Complete the following if-else statement that assigns true to a boolean variable fever if the double variable temp is greater than 98.6. Otherwise it assigns false to fever. Just enter the syntax needed to fill in the blank line. Note: You are expected to follow the Java style guide for spacing. 98.6) { fever = true; } else { fever - false;

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter5: Making Decisions
Section: Chapter Questions
Problem 19RQ
icon
Related questions
Question

I have a problem with Java. Please assist 

Complete the following if-else statement that assigns true to a boolean variable fever if the double variable temp is greater than 98.6. Otherwise it assigns false to fever. Just
enter the syntax needed to fill in the blank line.
Note: You are expected to follow the Java style guide for spacing.
98.6) {
fever = true;
} else {
fever = false;
}
Transcribed Image Text:Complete the following if-else statement that assigns true to a boolean variable fever if the double variable temp is greater than 98.6. Otherwise it assigns false to fever. Just enter the syntax needed to fill in the blank line. Note: You are expected to follow the Java style guide for spacing. 98.6) { fever = true; } else { fever = false; }
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Algebraic Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT