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 AIDS in Africa considered by world health organizations? A. Epidemic B. Pandemic C. Plague D. Epicenter
W(t)=-2t+1 find w(-7)
During a head-on auto collision, causes a passenger in the front seat to continue moving
what is the mass number of Ce
Why in the mathemathic classes everythig must be perfect??
new combinations of genes may be produced by?
if a baking tray is 600mm by 500mm in diameter how many 25cm cupcakes can you fit on to the baking tray?
Amanda score on the last algebra quiz was to 11 points higher than tims. the total of their two quizzes what's 165.what score did the each person receive?
Identifying your audience will help you determine A. whether to support your claims. B. appropriate examples to use. C. where to place your thesis
Question 10 of 13 Multiple Choice: Please select the best answer and click "submit." Given the line of best fit for a set of data points with the equation y =