blackshadowhawk19641 blackshadowhawk19641
  • 21-06-2022
  • Computers and Technology
contestada

write an if/else statement that assigns true to the variable fever if the v ariable temperature is greater than 98.6

Respuesta :

ra7857 ra7857
  • 23-06-2022

Answer:

import java.util.Scanner;

class Main{

   public static void main(String[] args){

     double temp;

     Scanner scan = new Scanner (System.in);

     System.out.println("Enter the temperature, please: ");

     temp= scan.nextDouble();

     

     if (temp>=98.6){

       System.out.println("Fever.");

     }else{

       System.out.println("No Fever.");

     }      

   }

Answer Link

Otras preguntas

What is an invasive species?
The Korean War was a result of: A. North and South Korea taking different sides in the Cold War B. The United States conflict with Korea after WWII C. A revolut
In "The Bat-Poet," what does the little brown bat learn from writing his poem about bats? A. Works have already been written that do a better job of capturing w
Explain why trees are a renewable resource and how this resource can be maintained.
What is the solution to 11 = x – 4?
5 1/2 times 1 1/6 multiply write answer in simplest form
Summarize the Theory of Natural Selection
Most people of West and Central Africa support themselves through which means?
Mark the statement if it describes a characteristic that pulled the Greek city-states together. A. worship of the same gods B. common language C. the governmen
CALCULATE: Determine the volume occupied by 0.582 mol of a gas at 15 degrees Celsius if the pressure is 81.8 KPA?