Question: using python language, write a program titled COMPLEX PROPOSITION CREATOR. This program has two truth tables, one for or and the other for and (like

using python language, write a program titled COMPLEX PROPOSITION CREATOR.

This program has two truth tables, one for "or" and the other for "and" (like a list or array)

OR

T T T

T F F

F T F

F F F

AND

T T T

T F T

F T T

F F F

This program takes two propositions from the user, then asks the user if the connector is ^ (and), v (or). Depending on what the user entered, connect the two propositions with an "or" or "and" making sure the second proposition following the first is not capitalized but has its first index lowercase and print the new sentence. Next, have the program ask the user if the first and second proposition entered is true or false. Depending on the proposition 1 and 2 truth values, the program will output "the complex proposition is " and return a truth value from the truth tables above corresponding to the user's input. Then the entire truth table the user indicated as their connector should be printed.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!