Write a class called AssignmentFive with the following methods. All input and output on the command line NO dialog boxes. Remember to use the most efficient logic when you write the program.
- main method: do exactly the following, no more and no less
- hotOrColdOutside methodthis method takes no arguments and has no return valueinside this methodask the user what the temperature is outsideif it is 80 or above, say “It is very hot outside.”if it is greater than or equal to 60 and less than 80 say “It is very nice outside”if it is below 60 say “It is very cold outside.”
- determineFever methodthis method has two parametesr: a String called yourName and a double, named bodyTemperaturethis method returns nothingthis method says “Hello ____, you have a fever. Take some aspirin.” if the value of the variable bodyTemperature is above 98.6Fill in the blank with the value of the variable yourNameif the bodyTemperature is less than or equal to 98.6, say “Hello ___, you have no fever. You may go to the movies.”Fill in the blank with the value of the variable yourName
- isBoiling methodthis method has one parameter: an int, named waterTemperaturethis method returns a booleanthis method determines if the value of the variable waterTemperature is boilingif the water is boiling, the method returns trueif the water is not boiling, the method returns falsewater boils at 212 (so 212 or greater is boiling)
- Test your program thoroughly
- Draw memory for the entire program, showing memory for all variables useduse whatever user input you would likeBe sure to draw the “chinese wall” between the parts of memory for each methoddraw memory using the methodology we have been using in class
say hi from your full nameskip a line, say PART ONE, then skip a linecall the hotOrColdOutside methodskip a line, say PART TWO, then skip a lineask the user what his name isassign the user’s name to variable of type String called myNameask the user what his body temperature isassign the number entered by the user to a variable of type double named myTemperaturecall the determineFever method, sending it the value of the variables myName and myTemperatureskip a line, say PART THREE, then skip a lineask the user what the water temperature is (whole numbers only)assign the number entered by the user to a variable of type int named liquidTemperaturecall the isBoiling method, sending it the value of the variable liquidTemperatureassign the boolean value returned from isBoiling method to a variable named boilingif boiling is true, say “The water is boiling. Be careful.”if boiling is false, say “The water is not boiling. A watched pot never boils.”skip a line, say bye from your full name, then skip a line