Show Bid Request
Inheritance and Polymorphism
Bid Request Id: 9690
|
|
|
Posted by: |
seatiger74 (25 ratings)
(Software buyer rating 10)
|
Posted: |
Feb 27, 2002 12:40:22 AM EDT
|
Bidding Closes: |
Mar 13, 2002 12:49:03 AM EDT
|
Viewed (by coders): |
313 times
|
Deadline: |
3/1/2002
TIME EXPIRED
|
|
|
|
Description:
Write BankAccount class as follows: private instance variables balance: dollar amount of balance in the bank account (use double type) public member functions constructors: (1) default constructor, (2) a constructor with initial value for the balance. deposit: increase the balance by the amount given as the argument. Negative amount is not allowed. withdraw: decrease the balance by the amount given as the argument. Overdraft (withdraw more than the available balance) is not allowed. getBalance: returns the balance setBalance: set the balance by the amount given as the argument. (ADDED!!) Write CheckingAccount class as follows: Derive from BankAccount class (BankAccount is parent class of CheckingAccount) private instance variable transactionCount: number of transactions (deposits or withdraws are considered to be transactions) public member functions constructors: (1) default constructor, (2) a constructor with initial value for the balance. getTransactionCount: returns the transactionCount deposit: override parent&'s deposit function such that transactionCount is incremented in addition to what parent&'s deposit function should do. withdraw: override parent&'s withdraw function such that transactionCount is incremented in addition to what parent&'s withdraw function should do. Write SavingsAccount class as follows: Derive from BankAccount class (BankAccount is parent class of SavingsAccount). private instance variable interestRate: annual interest rate in unit of percentage (use double type). public member functions constructors: (1) default constructor, (2) a constructor with initial values for the balance and the interest rate. getInterestRate: returns the interestRate calculateInterest: update the balance by adding the amount of the interest accrued during the year. Write the main function to test comprehensively the functionality of the classes as follows: (Give comments between codes clearly to explain what you are doing and what you are expecting). int main() { Testing BankAccount class,creat BankAccount object,call each member to see if it works. Testing CheckingAccount class,create object,call each member function to see if works,show that transaction count works.Testing SavingsAccount class,create object,call each member function,show that interest is calculated and deposite correctly,add more codes creatively to completely test the classes developed}
Deliverables: Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
Complete copyrights to all work purchased.
Platform:
Please write this program in C++. I use Visual C++ 6.0 compiler.
Must be 100% finished and received by buyer on:
Mar 1, 2002 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Special Conditions / Other:
see send it ontime once again the deadline is 3/1/02
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation, you can report it to: abuse@rentacoder.com.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$12 (USD)
|
Feb 27, 2002 3:29:52 PM EDT
|
10
(Excellent)
|
|
|
Hi DT!
It's nice to see your posting here again!
Well, code is ready. Classes (headers) are attached. Now I'm finishing main() function to show how that all stuff works.
I wonder if you need to demonstrate polymorphism using pointers to objects?
Looking forward delivering ready code,
Paul |
|
Attached File
|
|
|
|
|