Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I\'m trying to generate truth tables. ------------------------------------------

ID: 3620396 • Letter: I

Question

I'm trying to generate truth tables.

----------------------------------------------------
Q1)
Generate " (aVb)--> (a and b) "



Answer)
is this the right answer?

a b (aVb)----> (a and b)
T T T
T F F
F T F
F F T


---------------------------------------------------------
Q2. Generate (a and b)---- > (aVb)

Answer)

a b (a and b) ---- > (aVb)
T T T
T F T
F T T
F F T





------------------------------------------------------------
Are these answers correct? I can see how to get the answer, but I don't know why and how any comments wold be appreciated. thank you have a good day

Explanation / Answer

For making the code, these functions can help you..sorry but i don't get your question perfectly(what do u want to say).. //for and if((a=='T')&&(b=='T')) aandb = 'T'; else aandb = 'F'; // for or if((a=='F')&&(b=='F')) aorb = 'F'; else aorb = 'T'; // for implication if((a=='T')&&(b=='F')) aimpb = 'F'; else aimpb = 'T';