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