Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

maths query

  • 25-10-2011 08:23PM
    #1
    Registered Users, Registered Users 2 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