Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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