Suppose that you are developing a class, Account, from which a customer can
withdraw money. The Account class needs to keep track of the number of
withdrawals that have occurred in each customer’s account. The partial
specification for Account class is given below. You are required to complete the
code for the Account and Tester classes. Comment all of your code and make sure
to put your name as a comment at the top of your program.
class Account
{
//variables
accountNumber;
accountBalance;
static numberOfWithdrawal;
Account(int account, int amount)
{
//constructor class
}
Withdraw(int account, int amount)
{
//withdraw the amount from the balance
}
DisplayAccountBalace()
{
//display the current account balance to console
}
Static DisplayNumberOfWithdrawal()
{
//display the number of withdrawals to console
}
}
class Tester
{
Main()
{
/*create three Account objects and withdraw money twice from
each account. Then display the account number and current
balance for each account to the console. */
/*display the total number of withdrawals from the three accounts
to console.*/
}
This is what i have so far. I had to miss class one day and it screwed me. Please Help!