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, 22.06.2019 19:20
How might the success of your campaign be affected if you haven’t carefully completed all field data or if you accidentally insert the wrong merge field in the document?
Answers: 2
question
Computers and Technology, 23.06.2019 02:00
Which software would you use to create a print design? a. illustrator b. audacity c. reaper d. dreamweaver
Answers: 2
question
Computers and Technology, 23.06.2019 19:40
Use a physical stopwatch to record the length of time it takes to run the program. calculate the difference obtained by calls to the method system.currenttimemillis() just before the start of the algorithm and just after the end of the algorithm. calculate the difference obtained by calls to the method system.currenttimemillis() at the start of the program and at the end of the program so that the elapsed time includes the display of the result. use the value returned by the method system.currenttimemillis() just after the end of the algorithm as the elapsed time.
Answers: 3
question
Computers and Technology, 23.06.2019 22:30
Lakendra finished working on her monthly report. in looking it over, she saw that it had large blocks of white space. what steps could lakendra take to reduce the amount of white space?
Answers: 3
You know the right answer?
Assignment: Create a program that can try out every possible logical combination of the variables A,...
Questions
question
Mathematics, 10.12.2020 16:30