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: write the program in C, C++, Java or C#. Change variable types accordingly.

  1. #1
    Junior Member
    Join Date
    Mar 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post write the program in C, C++, Java or C#. Change variable types accordingly.

    Question

    GoodEmployee is defined who has ALL the following properties:

    He should be married.
    He should have 2 or less than 2 children.
    His middle name should start with "k" but not end with "e"
    The last name should have more than 4 characters
    The character "a" should appear in the last name at least two times.
    The name of one of his children should be "Raja"

    Write a method:

    boolean isGoodEmployee( boolean isMarried, int noOfChild , String middleName , String lastName , String[] childNames);

    isMarried true if the employee is married.
    noOfChild the number of children of the employee.
    middleName the middle name of the employee
    lastName the last name of the employee.
    childNames the array of the names of the children of the employee


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: write the program in C, C++, Java or C#. Change variable types accordingly.

    Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.

    We can't do it for you. Please make an effort and come back when you have code you need help with. Post it properly (per the above link), ask specific questions, and include any error messages that you want help with.

Similar Threads

  1. A variable that never change.
    By mestrexx in forum What's Wrong With My Code?
    Replies: 3
    Last Post: August 14th, 2013, 04:01 PM
  2. Instance Variable Won't Change!!
    By wawawarrior in forum What's Wrong With My Code?
    Replies: 5
    Last Post: June 5th, 2013, 11:07 PM
  3. Replies: 2
    Last Post: January 25th, 2013, 09:54 PM
  4. [SOLVED] While loop won't allow variable to change
    By Thor in forum Loops & Control Statements
    Replies: 13
    Last Post: October 9th, 2012, 08:35 PM
  5. write the program in C, C++, Java or C#. Change variable types accordingly.
    By indrasensingh01 in forum Java Theory & Questions
    Replies: 2
    Last Post: October 8th, 2012, 06:34 PM