Description: Design a class named Account. This class includes:
(1) a data field called id int type, indicating the identity of the account number (default is 0).
(2) a balance of the double data type called a domain, which means that the account balance (default is 0).
(3) a double-data domain named annualInterestRate, and save the current interest rate (default is 0).
(4) a no-argument constructor creates a default account.
(5) id, balance and annualInterestRate access and change control functions.
(6) a function named getMonthlyInterestRate () returns a monthly rate.
(7) a function named withDraw, and withdraw a specified amount from the account.
(8) a function called deposit to the account into a designated amount.
Write a test program that creates an Account object, its ID is 1122, the account balance is 20,000, an interest rate of 4.5 . Use withDraw function takes $ 2,500, $ 3,000 deposit using deposit function, and then output the account balance, the interest rate and mont
To Search:
File list (Check if you may need any files):
C++实验1
........\Account.cpp
........\Account.h
........\Debug
........\.....\Account.obj
........\.....\test1.exe
........\.....\test1.ilk
........\.....\test1.pch
........\.....\test1.pdb
........\.....\vc60.idb
........\.....\vc60.pdb
........\TestAccount.cpp
........\test1.dsp
........\test1.dsw
........\test1.ncb
........\test1.opt
........\test1.plg