Question: I need help with this code: Java Which Day Is The Coldest? Given three variables, fridayTemp, saturdayTemp, and sundayTemp, that represent a low temperature for

I need help with this code: Java
Which Day Is The Coldest?
Given three variables, fridayTemp, saturdayTemp, and sundayTemp, that represent a low temperature for Friday, Saturday, and Sunday. Write code that will determine which day is the coldest and print to the console which day it is: "Friday", "Saturday" or "Sunday".
This is what is imputted:
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class CodingQuestion {
static void coldestDay(double fridayTemp, double saturdayTemp, double sundayTemp){
//WRITE YOUR CODE HERE
//Write your conditional statements and appropriate print statements here
/***** DO NOT CHANGE THE CODE BELOW THIS LINE *****/
}
public static void main(String[] args){
Scanner in = new Scanner(System.in);
double fridayTemp, saturdayTemp, sundayTemp;
fridayTemp = in.nextDouble();
saturdayTemp = in.nextDouble();
sundayTemp = in.nextDouble();
coldestDay(fridayTemp, saturdayTemp, sundayTemp);
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!