This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

plss help me

 
elvin saflor
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to read HowToAskQuestionsOnJavaRanch, especially the NotACodeMill link.
 
Darryl Burke
Bartender
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joanne Neal wrote:You need to read HowToAskQuestionsOnJavaRanch, especially the NotACodeMill link.


elvin saflor, this was already pointed out to you in your earlier thread. I suggest you go through all the topics linked from the HowToAskQuestionsOnJavaRanch page Joanne has pointed you to, so you can learn how to get the best benefit from the Ranch.
 
Campbell Ritchie
Sheriff
Pie
Posts: 50258
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And also, do not delete a post which has been answered. That makes the remainder of the discussion look like nonsense.
 
Henry Wong
author
Marshal
Pie
Posts: 21510
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:And also, do not delete a post which has been answered. That makes the remainder of the discussion look like nonsense.


Well, here is a copy of the original post...

elvin saflor wrote:Make a program that will compute the monthly payment of a particular loan
- make a class named loan
- declare attributes amount loaned , duration , interest , total loaned and monthly payment
- declare setter and getter methods for amount loaned and duration
- create overloading constructor
- 1st constructor is a default
Constructor that assign 10000 to amount loan and 5 months for duration
- 2nd constructor accept single value for amount and assign 5 months for duration
- 3rd constructor accept 2 values for amount loan and duration
- Declare method getInterest that accept value for duration and return the interest based on the ff condition

Duration Interest
5months – 6months 2%
7months – 9months 3%
10 months – 12 months 4%

- Create method getTotolloan that accept values for amount loaned , interest and duration and contain compilation (amount loan*interest)*term

Create method getMonthlyPayment that receives value of total loan and duration , and will return the quotient of total loan/duration.

Make a class named Costumer w/ contain the main method
- Ask the user to input value for amount and duration and pass it into the constructor
Compute the interest , total loan , and monthly payment using method in loan class




Out put

[1] 1st constructor
[2] 2nd constructor
[3] 3rd constructor

Enter choice:
Amount loan:
Duration:
Interest:
Total loan:
Monthly Payment:


which I guess is kinda moot, as many ranchers have already pointed out.

Henry
 
Campbell Ritchie
Sheriff
Pie
Posts: 50258
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for finding that duplicate, Henry.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic