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

the sum of the ages of Nicole and Kristen and 32 in two years Nicole would be three times as old as Kristen how old are they now​
This is the second question...................huhuhuhuhuhuhjhj
Without actual division show that x^4+2x^3-2x^2+2x-3nis exactly divisible by x^2+2x-3.
What is a solution for both equations y=x+3 and -2x+y=1
The symbol 5! means 5* 4*3*2*1. What is the greatest odd integer that is a factor of 5!?
If 9999 = 4, 8888 = 8, 1816 = 6, 1212 = 0, then 1919=??
What does it mean to be “at risk” for developing a disease? A) You are likely to develop the disease and cannot prevent it. B) You are likely to develop the dis
State the maximum/minimum of the function H(x)=−1/2x^2+4x−5.
Leah loves chicken wings and is comparing the deals atThree different restaurants Buffalo Bills has eight wings for seven dollars Buffalo wild wings have 12 win
If you roll a number cube 30 times, how many times do you expect to roll a five