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
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