Student Name: __________________
Class and Section __________________
Total Points (20 pts) __________________
Due: August 23, 2010 before the class
Project: The Account Class
CSCI 1302 Advanced Programming Principles
Armstrong Atlantic State University
Problem Description:
(The Account class) Design a class named Account that
contains:
• A private int data field named id for the account
(default 0).
• A private double data field named balance for the
account (default 0).
• The accessor and mutator methods for id, balance, and
annualInterestRate.
• The accessor method for dateCreated.
• A method named getMonthlyInterestRate() that returns
the monthly interest rate.
• A method named withdraw that withdraws a specified
amount from the account.
• A method named deposit that deposits a specified
amount to the account.
Analysis:
(Describe the problem including input and output in your own words.)