Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

maths query

Options
  • 25-10-2011 8:23pm
    #1
    Registered Users Posts: 43


    Hi everyone, Maths is a bit hard for me , i need a helping hand pls:

    Write a program that accepts 2 integer inputs from the user, where 'true' is represented by 1 and 'false' is represented by 0. The true and false values are used in a truth table. The program should then computer the conjunction, disjunction and conditional statement of these values. In the same program, then accept one more value n, between 1 and 10. Using the predicates supplied, P and Q, determine if the value is an element of the set described by the statement formed by P and Q. P : n is not a member of D if n / 2 > 5 Q : n is a member of D if (n+1) % 2 = 0


Advertisement