Extend the program above to include boolean expressions that meet the criteria in each item below. for these programs, simply hard-code the values of the variables in the code rather than asking the user for input from the keyboard. 1. given values for two boolean variables a and b, the expression evaluates to true if just one of a or b is true, but not if both are true or both or false i. (note: this is also called an "exclusive or" between a and b.) 2. given values for three boolean variables a, b, and c, the expression evaluates to true if an odd number (i.e. exactly 1 or 3) of the variables a, b, and c is true, and is false otherwise.

Solved
Show answers

Ask an AI advisor a question