Question: 2. ( 10 points) Implement the following decision table using a multiple-alternative if statement. Assume that the humidity is given as an integer. Use a

2. ( 10 points) Implement the following decision table using a multiple-alternative if statement. Assume that the humidity is given as an integer. Use a string variable to store the correct value in Category: int humidity; string Category; For example, if the temperature were 26, you would assign "dry" to Category. Now assume you are given humidity (i.e., your program reads the humidity into the variable humidity). Complete a code fragment to assign Category the correct value based on the reading. Do not output anything...just write code so that the variable Category contains the correct string at the end of your code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
