Account2 -...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //******************************************************************** // Account.java Author: Lewis/Loftus // // Solution to Programming Project 4.2 //******************************************************************** import java.text.NumberFormat; public class Account2 { private NumberFormat fmt = NumberFormat.getCurrencyInstance(); private final double RATE = 0.035; // interest rate of 3.5% private long acctNumber; private double balance; private String name; //----------------------------------------------------------------- // Sets up the account by defining its owner and account number. // Initial balance is set to zero //----------------------------------------------------------------- public Account2 (String owner, long account) { name = owner; acctNumber = account; balance = 0.0; } //----------------------------------------------------------------- // Sets up the account by defining its owner, account number, // and initial balance....
View Full Document

Page1 / 3

Account2 -...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online