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. )
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.
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.