Question: Follow the instructions. Finish the java code The goal of this assignment is to create a Java program that will provide a clothing recommendation based

Follow the instructions. Finish the java code
The goal of this assignment is to create a Java program that will provide a clothing recommendation based on the temperature, in Fahrenheit, and whether or not it is raining outside.
Successful completion of this program requires the ability to take in user input, assign and use variables, use decision structures with relational/logical operators, and output information.
This assignment can be split up into three key sections: input, using a decision structure and output Input
In this section we will prompt the user information about the current temperature and if is raining:
Prompt the user for the temperature and store it in the variable temperature. This should be done using the prompt "Please enter the current temperature in Fahrenheit" "NOTE: This value should be a float Prompt the user for whether or not it is raining and store it in the variable isRaining. This should be done using the prompt "Is it raining (Yes/No)? "NOTE: This value should be a boolean, true or false, based on if the user inputted Yes or No respectively. A decision structure should be used to determine the value of isRaining
The user should be prompted for the above input in the exact order as shown above, using the provided variable names and the provided prompts. Fallure to do so will result in a loss of points.
Note: input validation is not mandatory here
Processing with Decision Statements:
Now that both the temperature and isRaining have been set, the recommendation must be determined. The recommendation is split up into two parts, the intitial recommendation and the additional recommendation. They are determined by the following:
For the initial recommendation use temperature:
If the temperature is above 80 degrees (exclusive) then the initial recommendation should be: "Wear at-shirt and shorts"
If the temperature is between 60 and 80 degrees (both inclusive) then the initial recommendation should be: "Wear a light jacket or a sweater"
If the temperature is between 45(inclusive) and 60(exclusive) then the initial recommendation should be: "Wear a jacket":
If the temperature is less than 45 degrees (exclusive) then the initial recommendation should be: "Wear a heayy coat"
For the addlitional recommendation use isRaining:
If ispaining is true, then the additional recommendation should be: "Also, carry an umbrello or take a raincoat"
If ispaining is false, then there should not be an additional recommendation
Hint string concatenation can be useful here to append the additional recommendation to the initial as needed.
The recommendation should be stored in a variable named recommendation which is provided.
Output
Now that the recommendation has been determined and is stored in the recommendation variable, display the information to the user. The expected output prompt is: "Recommendation: "followed by the determined recommendation.
Notes Do not include unrequested output in your code, it may result in a loss of points or fallure of final output test cases
Implementation Notes
All prompts should be the same as those provided in the directions exactly as they are provided in the directions
All variable names should be the same as those provided in the directions exactly as they are provided in the directions
All changes should happen in the Recommendations.java file ONLY
Grading Breakdown
Full name in header comments: 2pts
Proper assignment of input variables temperature and ispainings 4pts
Properly formatted input prompts:2pts
Proper use of decision structures to determine the recommendation: 5pts
Properly formatted final output: 2 pts
Follow the instructions. Finish the java code The

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!