aspose file tools*
The moose likes Beginning Java and the fly likes plss help me Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "plss help me " Watch "plss help me " New topic
Author

plss help me

elvin saflor
Greenhorn

Joined: Nov 14, 2012
Posts: 4
a
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3169
    
  10
You need to read HowToAskQuestionsOnJavaRanch, especially the NotACodeMill link.


Joanne
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

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.


luck, db
There are no new questions, but there may be new answers.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36508
    
  16
And also, do not delete a post which has been answered. That makes the remainder of the discussion look like nonsense.
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18117
    
  39

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

Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36508
    
  16
Thank you for finding that duplicate, Henry.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: plss help me
 
Similar Threads
No compilation error in 1 dir, but compilation error in other, why?
Help with errors again
last week of class last assignment. Any help is appreciated.
One error in code..not understanding what it tells me. Code works it is on line 55.
Arrays