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 does this pyramid tell us about the population?
which best describes the triangle or triangles, if any, that can be formed with two sides that can measure 5 inches and a angle that measures 60 degress 1. one
24 to 18 is the same as (ratio)​
what are the pros and Con's of human -computer interaction?​
Evaluate the expression when x = 6 and y = 2: 3x +4 y 22 11 8 18
a man borrowed $2500 from his wife. The next day,he borrowed another $2500 from his wife. He later asked the wife how much he is owing her and she made the foll
Find the amount or annuity of 10,00 paid yearly for three years at 8% per anum
A school is going on a field trip to a museum. The ratio of men to women to children is 1:3:20 and there are 216 people on this trip. What is the difference bet
Where is Abraham now
Michelle measured a restaurant and made a scale drawing. The scale of the drawing was 1 inch : 3 feet. A table in the restaurant is 2 inches in the drawing. How