subject

Assignment: Create a program that can try out every possible logical combination of the variables A, B, and C, and determine which combinations will yield a true statement. A few things to take note of, first there are eight different possible combinations of the three variables. Make certain you test all eight of the combinations. The code itself will account for 50pts. Include the combinations of A, B, and C that cause the statement to be true for an additional 50pts. (1) (A and B) or (A and C)

(2) (A and C) and (B and !C)

(3) (A or B) and !(B or C)

(4) (A or (B and C)) and (!C and !B)

(5) ((B and C) or (C and A)) and (!(A or B) and C)

Please read each of the five carefully and make sure your code accurately reproduces the logical statement given for each problem. Note that the exclamation symbol indicates the logical "NOT" operator, and the parentheses indicate which order the statements are to be performed in. Keep in mind since you’re testing all possible combinations of input for all five logical statements, you’ll have forty answers generated by your program, in total.

Answer must be in C++

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 15:00
Convert the quartstogallons class to an interactive application. instead of assigning a value to the number of quarts, accept the value from the user as input.
Answers: 2
question
Computers and Technology, 22.06.2019 10:30
Auniversity wants to install a client-server network. which feature do you think is important for them as they set up the network? sending email blocking multiple people to use the same file low security low set up cost limited access to files
Answers: 1
question
Computers and Technology, 23.06.2019 11:30
Which excel file extension stores automated steps for repetitive tasks?
Answers: 1
question
Computers and Technology, 24.06.2019 03:00
What is one potential problem associated with an organization purchasing new technology early in its lifecycle
Answers: 1
You know the right answer?
Assignment: Create a program that can try out every possible logical combination of the variables A,...
Questions
question
History, 08.04.2020 05:00
Questions on the website: 13722360