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

Thread: Hello friends, I'm in big trouble with this programme if anyone can help me out?

  1. #1
    Junior Member
    Join Date
    Sep 2012
    Location
    india
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Post Hello friends, I'm in big trouble with this programme if anyone can help me out?

    Question # 779

    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 Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,620
    Thanks
    50
    Thanked 2,235 Times in 2,207 Posts

    Default Re: Hello friends, I'm in big trouble with this programme if anyone can help me out?

    Please post your code and any questions you have about it. This post looks like a homework dump and doesn't show any effort on your part.
    If you don't understand my answer, don't ignore it, ask a question.

  3. The Following User Says Thank You to Norm For This Useful Post:

    rockworld777 (September 28th, 2012)

  4. #3
    Junior Member
    Join Date
    Sep 2012
    Location
    india
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Hello friends, I'm in big trouble with this programme if anyone can help me out?

    Help me in any way you can, its a question about my job!
    please help me if you can otherwise thanks for your precious time in replying.
    Thank you!

  5. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,620
    Thanks
    50
    Thanked 2,235 Times in 2,207 Posts

    Default Re: Hello friends, I'm in big trouble with this programme if anyone can help me out?

    What questions or code do you have now? Post them and we'll try to help.
    If you don't understand my answer, don't ignore it, ask a question.

  6. The Following User Says Thank You to Norm For This Useful Post:

    rockworld777 (September 28th, 2012)

  7. #5
    Junior Member
    Join Date
    Sep 2012
    Location
    india
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Hello friends, I'm in big trouble with this programme if anyone can help me out?

    I have to write a method :

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

    which satisfies the conditions for a GoodPhone ??


    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.

  8. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,620
    Thanks
    50
    Thanked 2,235 Times in 2,207 Posts

    Default Re: Hello friends, I'm in big trouble with this programme if anyone can help me out?

    Start with a skeleton for the method and a class to hold it.
    Make a list of steps for what the method is supposed to do.
    Design some logic for the first step, write the code, compile it, fix errors, compile it until errors are fixed.
    Then move to the next step in the list. Continue until done.

    Also write some in the class's main() method that will call the method for testing it.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 2
    Last Post: September 28th, 2012, 08:19 AM
  2. BlueJ trouble or program trouble (Combining Arraylists)
    By star12345645 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: March 11th, 2012, 12:15 PM
  3. [SOLVED] I have a problem with this Joption programme.
    By Leprechaun_hunter in forum What's Wrong With My Code?
    Replies: 7
    Last Post: April 12th, 2011, 03:31 AM
  4. help with bookfinder programme
    By kidza12 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: February 9th, 2011, 01:15 PM
  5. Simple Programme for Date
    By bhavinsparikh in forum Java Theory & Questions
    Replies: 1
    Last Post: August 28th, 2010, 07:24 AM