Question: With intellij java IDE: Write a method called question05 method main will invoke question method Inside question05 method write the following code: create two boolean

With intellij java IDE: Write a method called question05

method main will invoke question method

Inside question05 method write the following code:

create two boolean variables, called bWindy, bSnowing and initialize both to true

create a double variable called dTemp and initialize it to 25.00

create a String that will return the following conditional statements result to main, initialize it to ""

create this conditional logic

when dTemp is greater than 25 have method question05 return this text -> "No need for a coat"

when dTemp is less than or equal to 25 and it is windy and it is not snowing have method question05 return this text -> "Just wear a coat"

when dTemp is less than or equal to 25 and it is windy or it is snowing have method question05 return -> "Wear a coat, boats, and gloves"

finally have main method print the String that was returned by question05 method.

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 Databases Questions!