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

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

  1. #1
    Junior Member
    Join Date
    Oct 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

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

    A MobileNumber is a VIP number if it satisfy the following conditions.

    The operator should be Vodafone.
    Atleast one 0 (Zero) should be exist in mobile number.
    The number should not end with 8.
    The single digit sum of all the digits in the number should be equal to 9. For example if the number is 9876543210, the sum is 9+8+7+...+1+0 = 45. Sum of 4+5 = 9.
    Write a method:

    private boolean isVIPMobileNumber(String mobileNum, String operator)

    mobileNum phone number
    operator mobile operator as bsnl, Vodafone


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

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

    Did you have a question?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

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

    Done! I've completed the assignment -- now what?

Similar Threads

  1. Write a Java program that reads file
    By Mehwish-S in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: July 28th, 2012, 03:00 PM
  2. ::: Write a Simple Java Program :::
    By riyaju in forum Object Oriented Programming
    Replies: 3
    Last Post: July 27th, 2012, 09:04 AM
  3. [SOLVED] Help with my Java program: Making change from an entered double.
    By iDizzle in forum What's Wrong With My Code?
    Replies: 20
    Last Post: March 18th, 2012, 03:16 PM
  4. How do you write a Java program that displays your initials?
    By kala99 in forum Java Theory & Questions
    Replies: 3
    Last Post: November 30th, 2011, 02:12 PM
  5. help me write java program
    By stevisto in forum Member Introductions
    Replies: 1
    Last Post: September 13th, 2011, 03:44 PM

Tags for this Thread