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: Please can anyone help solve this ?

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

    Smile Please can anyone help solve this ?

    Is there any kind person who can solve the below for me: Ive tried for ages to get this to run in NetBeans and it won't work. I'll be truly grateful if anyone can get it working. )

    Application coding
    Project Name: PhoneProblem

    Write a program which allows the user to input information to solve the following problem:

    “Sometimes it’s difficult to decide which phone to use – my mobile phone or my home phone. If I’ve got free minutes left on my mobile phone, then I use them – but only if I’m calling a land line or the person I want to call uses the same network provider that I have. If I don’t have free minutes left, then I use the home phone (as long as I’m at home) – unless it’s on the same network, in which case it’s still cheaper to use the mobile. Having said that, sometimes my flatmate is on the home phone, and so if it’s urgent I have to use my mobile anyway. If it is not urgent then I will wait until my flatmate has finished then use the home phone”.


    Your program should ask the user various questions and then display the correct phone to use (home or mobile) based upon the conditions stated above.


  2. #2
    Member snowguy13's Avatar
    Join Date
    Nov 2011
    Location
    In Hyrule enjoying a chat with Demise and Ganondorf
    Posts
    339
    My Mood
    Happy
    Thanks
    31
    Thanked 48 Times in 42 Posts

    Default Re: Please can anyone help solve this ?

    Your question is very vague.

    Do you have code already, and have bugs or exceptions? If so, can you post the problematic code here?

    If you just plain don't know what to do, I can offer this advice: think if-statements. To me, the above situations sounds like a bunch of if- and nested-if-statements. Read the problem through very carefully, and then try to devise a structure for your if-statements.
    Use highlight tags to help others help you!

    [highlight=Java]Your prettily formatted code goes here[/highlight]

    Using these tags makes your code formatted, and helps everyone answer your questions more easily!




    Wanna hear something funny?

    Me too.

Similar Threads

  1. can anyone help me solve this code
    By sudeep22 in forum Other Programming Languages
    Replies: 1
    Last Post: September 25th, 2011, 10:18 PM
  2. how I can solve this program ?
    By Noni in forum Object Oriented Programming
    Replies: 9
    Last Post: January 20th, 2011, 04:33 PM
  3. Solve Them Please
    By omath in forum Java Theory & Questions
    Replies: 1
    Last Post: December 25th, 2010, 03:26 PM
  4. solve it plz
    By tillu in forum Java Theory & Questions
    Replies: 4
    Last Post: December 17th, 2010, 12:45 PM
  5. Plz solve the problem
    By rasheedmgs in forum JavaServer Pages: JSP & JSTL
    Replies: 1
    Last Post: October 14th, 2010, 11:59 AM

Tags for this Thread