Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Account {
- public static void main(String[] args) { // TODO Auto-generated method stub
- Scanner input= new Scanner (System.in);
- int id;
- double balance;
- double annualInterestRate;
- public double getbalance() {
- return balance;
- }
- public double getAnnualInterestRate() {
- return annualInterestRate;
- }
- public double getMonthlyInterestRate() {
- return annualInterestRate / 12;
- }
- public void withdraw(double amount) {
- balance -= amount;
- }
- public void deposit(double amount) {
- balance += amount;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement