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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started