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.


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

Results 1 to 2 of 2

Thread: Can anyone provide code for following problem?

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

    Default Can anyone provide code for following problem?

    A phone is considered a good phone if all of the following conditions are satisfied:-

    The manufacturer must be one of Nokia, Samsung, Motorola, Sony or HTC.
    The model name of the phone must be a single word. For example, "Razr", "Omnia" or "N8" will count, but "C6 01", "EVO 3D" or "Xperia Arc S" won't.
    It must have either 'Android' or 'Windows' as its operating system.
    If the CPU is of type "ARMv11" then the cpu speed must be atleast 1024 MHz.
    If the CPU speed is less then 1024 MHz, then it must have a GPU and "Android" os only.
    There should be atleast 30 carriers selling this phone and "Vodafone" must be one of them.
    Write a method:

    boolean isGoodPhone(String model, String manufacturer, String os, int CPUSpeed, String CPUType, boolean hasGPU, String[] carriers)

    model Name of the phone model.
    manufacturer Name of the phone manufacturer.
    os Name of the operating system.
    CPUSpeed CPU speed in MHz.
    CPUType Type of the CPU.
    hasGPU Whether or not the phone has Graphics Processing Unit (GPU).
    carriers a string array representing list of carriers who sell this phone.

  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Thanked 619 Times in 561 Posts
    Blog Entries

    Default Re: Can anyone provide code for following problem?

    No, we will not do your homework for you.

    Please post what code you have so far as well as what part of the problem you're having troubles with specifically.

    Forum Rules
    How to help Yourself get Help
    stuck on homework? READ THIS BEFORE POSTING

Similar Threads

  1. I am in problem with my code
    By mohakal06r in forum Member Introductions
    Replies: 2
    Last Post: February 26th, 2012, 12:03 AM
  2. problem in my code java code graph editeur
    By kisokiso in forum Java Theory & Questions
    Replies: 5
    Last Post: January 6th, 2012, 07:36 AM
  3. problem in my code
    By dhruvguys in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 11th, 2011, 05:18 AM
  4. Problem with code
    By lichad3 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 22nd, 2011, 05:40 PM
  5. problem in my code
    By wannabe in forum What's Wrong With My Code?
    Replies: 2
    Last Post: March 24th, 2010, 07:53 AM