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 2 of 2

Thread: help me plz

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

    Smile help me plz

    hello guys im just new here..

    will anyone can help me!!

    here,s my problem:

    create a java program that will determine if the couple is legal to get married:
    cc-- Gender and Age should matter!
    this prog uses nested...If else

    plz guys help me!!

    thanks a lot!

    jjhames


  2. #2
    Junior Member
    Join Date
    Jan 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: help me plz

    I'm pretty new to java too.. but I think you will need a name, gender and age input prompt for both couples. Than an if else statement to determine if age is < 18 deny else print name, sex, is at a legal age to wed.

    edit:
    I'm not sure about why gender should matter..well I suppose you have to include the state in your prompt than, since same sex marrige isn't allowed in certain states. If so you would than need to find out which states allow it and make a list your program will use to screen thier state input for acceptable or unacceptable if they are same sex.. don't ask me how I'm new lol good luck.
    Last edited by GreenM; January 27th, 2010 at 09:01 PM.