Assignment #1 Solution




  1. Late submissions receive zero credit.

  1. If you write only the correct answer without steps you get very low credit.

  1. Submit in hard form.

  1. Do not knock at the door. Just slide beneath the door.

  1. Total marks are 40


Q:- 1 Write a program that will accept a proposition in one of the following forms [Points 40]

  1. Implication

  1. Converse

  1. Inverse

  1. Contrapositive.

And then convert it into its corresponding other three forms. For instance, If I provide the proposition in implication form ¬p q then it should compute the remaining three forms. Your program should have two inputs. One for the input proposition and another one for the types of the proposition which can be either implication, converse, inverse or contrapositive.

Test your program with the following.

  1. ¬pq (Contrapositive)

2. ¬pq (Inverse)

    1. ¬pq (Converse)

    1. ¬pq (Implication) Submit to me:

  1. Your program source code

  1. Run all the test cases showing clearly all the output from your program. For each test case, there should be three outputs. (If you took a print and I am unable to see the output then you will not receive any marks)

Good luck

error: Content is protected !!