Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: quickly please

  1. #1
    Junior Member
    Join Date
    Jan 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default quickly please

    Write a program to simulate functions and relations as described below
    1. Enter the domain either as user defined set e.g. {1,2,4,7} or predefined set e.g. R,Z,
    2. Enter the codomain
    3. Enter a set of ordered pairs that map from the domain to the co-domain.
    4. Find if the input represents a function or a relation
    5. If it is a function:
    a. Indicate if the function is injective (one-to-one), surjective (onto), bijection, etc.
    b. Find the inverse function, if possible
    c. Bonus: Ask if the user wants to find the composition of two functions and allow her to enter another function and find the composition.
    6. If it is a relation:
    a. find the inverse of that relation
    b. Indicate if the relation is symmetric, reflexive, and/or transitive
    c. Find the transitive closure of the relation
    d. Bonus: Indicate if the relation is an equivalence relation and find the equivalence classes
    7. Bonus: use GUI
    8. Bonus: make it web based


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,262
    Thanks
    176
    Thanked 821 Times in 764 Posts
    Blog Entries
    5

    Default Re: quickly please

    We are neither a homework service or a code service, so...What have you tried?

  3. #3
    Junior Member
    Join Date
    Jan 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: quickly please

    i havenot tried , i donot know how

    --- Update ---

    please help me with the answer i will be thankful it is a bonus project and i have problem as it is difficult 4 me and i have an exam tomorrow

  4. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,262
    Thanks
    176
    Thanked 821 Times in 764 Posts
    Blog Entries
    5

    Default Re: quickly please

    Break the problem down into individual steps and tackle each one at a time. Perhaps reading the following might help:
    http://www.javaprogrammingforums.com...e-posting.html

  5. #5
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,105
    Thanks
    48
    Thanked 2,153 Times in 2,126 Posts

    Default Re: quickly please

    i have an exam tomorrow
    Then you should study for the exam and next time plan ahead better to allow time to do a project.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. I need help quickly
    By dan123 in forum AWT / Java Swing
    Replies: 3
    Last Post: September 19th, 2012, 04:58 PM
  2. Any one pls tell answer quickly....
    By thirumani in forum JavaServer Pages: JSP & JSTL
    Replies: 4
    Last Post: July 13th, 2012, 06:18 AM
  3. need help quickly plz!!!
    By computerfreak.7777 in forum What's Wrong With My Code?
    Replies: 6
    Last Post: February 11th, 2010, 01:32 AM