HELP!! Java Programmers In The House Pls Help. - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › HELP!! Java Programmers In The House Pls Help. (1269 Views)
| HELP!! Java Programmers In The House Pls Help. by llbhuds(op): 1:25pm On Sep 14, 2014*. Modified: 6:16am On Sep 16, 2014 |
. |
| Re: HELP!! Java Programmers In The House Pls Help. by Capnd143(m): 12:31am On Sep 15, 2014 |
These are not too hard but the questions are rather too ambiguos! Well apart from the A part though! |
| Re: HELP!! Java Programmers In The House Pls Help. by llbhuds(op): 5:32am On Sep 15, 2014 |
Capnd143: These are not too hard but the questions are rather too ambiguos! Well apart from the A part though!Yes and thats why i already solved d A part myself because its very easy. |
| Re: HELP!! Java Programmers In The House Pls Help. by olyjosh(m): 10:03am On Sep 15, 2014 |
If you have answered question A yourself, I see question B and C to be even more simpler than A. Why not try attempting it and post the code for checking and corrections. |
| Re: HELP!! Java Programmers In The House Pls Help. by olyjosh(m): 10:15am On Sep 15, 2014 |
Question B /** * * @author Olyjosh */ public class YearlyProfit { public double profit(double amount, double rate){ // I refuse to put time in the calculation since the programm indicate its yearly and that means time is 1 year return amount*rate/100; } } Since you answered question, I believe you can create an instance variable in another class or create main method in this very class and use it to check calculations of you chosen amount over range of 2% to 10% interest. (Hint : loop over 2 to 10 percent) |
| Re: HELP!! Java Programmers In The House Pls Help. by olyjosh(m): 10:38am On Sep 15, 2014 |
Qestion C public static double VolumeNeeded(int stackNo, double stackLenght, double stackWidth, double stackHeight ){ return stackLenght*stackWidth*stackWidth*stackHeight*stackNo; } The simple explanation is, the minimum volume(may be volume of Bully Van) needed to trasport the number of stack(area * height) is volume of stack multiply by number of stacks they want to transport. You can copy that method into a class with main or any class to create an instance of such class somewhere else and called with your argument passed to it. However it is a static method too so you can call it using the name of it class |
| Re: HELP!! Java Programmers In The House Pls Help. by olyjosh(m): 10:43am On Sep 15, 2014 |
Quite bussy now, will give u ans 2 qst D latter |
| Re: HELP!! Java Programmers In The House Pls Help. by llbhuds(op): 4:42pm On Sep 15, 2014 |
olyjosh: Quite bussy now, will give u ans 2 qst D latterthanks alot. i actually did A using varibles, u can imagine hw annoying it can be. I have method lecture tomorow. |
| Re: HELP!! Java Programmers In The House Pls Help. by olyjosh(m): 1:10am On Sep 16, 2014 |
Just coming back. But that question isn't that clear to me. Is the initial amount already in the account or what? |
| Re: HELP!! Java Programmers In The House Pls Help. by llbhuds(op): 6:11am On Sep 16, 2014 |
olyjosh: Just coming back. But that question isn't that clear to me. Is the initial amount already in the account or what?no idea. ![]() |
| Re: HELP!! Java Programmers In The House Pls Help. by llbhuds(op): 6:33pm On Sep 16, 2014 |
went for the method class and i am now even more confused ![]() |
| Re: HELP!! Java Programmers In The House Pls Help. by olyjosh(m): 2:36am On Sep 17, 2014 |
I can do nothing but to laugh. lol |
How Long Did It Take You Guys To Become Strong Java Programmers • Help Java Programmers: Need Help With A Java Assignment • 2 • 3 • 4
Audio Streaming Code • Mypaga Payment Gateway For WHMCS • Self Taught Engineer Talks About Her Career !!!
lol