₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,082 members, 8,420,213 topics. Date: Thursday, 04 June 2026 at 01:46 PM

Toggle theme

HELP!! Java Programmers In The House Pls Help. - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingHELP!! Java Programmers In The House Pls Help. (1269 Views)

1 Reply (Go Down)

HELP!! Java Programmers In The House Pls Help. by llbhuds(op):
.
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 latter
thanks 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. grin grin grin
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 grin grin grin grin
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. grin cheesy lol
1 Reply

How Long Did It Take You Guys To Become Strong Java ProgrammersHelp Java Programmers: Need Help With A Java Assignment234

Audio Streaming CodeMypaga Payment Gateway For WHMCSSelf Taught Engineer Talks About Her Career !!!