Show Bid Request
Saving Account
Bid Request Id: 8948
|
|
|
Posted by: |
freaky (3 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Very Good - 18.18%
|
Buyer Security Verifications: |
Unverified
|
Approved on: |
Feb 17, 2002 10:21:00 AM EDT
|
Bidding Closes: |
Feb 18, 2002 10:38:53 AM EDT
|
Viewed (by coders): |
465 times
|
Deadline: |
2/18/2002 8:00:00 AM
TIME EXPIRED
|
|
|
|
Description:
create a SavingAccount class. Use a static data member to contain the annualInterestRate for each of the savers. Each member of the class contain a private data member savingBalance indicating the amount the saver currently has on deposit. Provide tiplying the balance by annualInterestRate divided by 12;this interest should be added to savingBalance.Provide a static member function modifyInterestRate that sets the static annualInterestRate to a new value. Write a driver program to test class SavingAccount. Instantiate two different savingAccount objects,saver1 and saver2, with balance of $2000 and $3000 respectively. Make annualInterestRate = 3% to calculate monthly interest and print the new balance for each of the savers. Then set annualInterestRate= 4% and calculate the next month interest and print the new balances for each savers.
Deliverables: Create a class named SavingsAccount : (1) The SavingsAccount class must contain a static data member, annualInterestRate, that is the same for all accounts. (2) The annualIterestRate member should be initialized appropriately, based on a named constant set to 2.7%. (3) Each object created should have a private data member named savingsBalance. (4) Include the constructors: default, conversion (sets the balance to any given non-negative number), and copy. (5) Provide a member function named compoundMonthlyInterest that returns the amount of interest earned on the account (balance * annualInterestRate/12.0) and adds it to the balance. (6) Provide a static member function setInterestRate that establishes a new interest rate. You should verify that the new interest rate is greater than 0 and no greater than 0.15 (15%). (7) Provide set and get methods for the account balance. Validate the balance so it cannot be set to a negative value. (8) Provide a method named showBalance that displays the balance of the account right-justified in a field of 20 characters. The number must have two decimal places and a $ in front of the first digit. For example, if the balance is zero, it should display $0.00 (with leading spaces).
Develop a "driver" program to test your class. (1) It should instantiate an array of NUM_ACCOUNTS (try 6) of type SavingsAccounts. After the array is instantiated, set the starting balance of each account to a different random number (use rand) with the range 100 to 10,000 (use named constants for the min and max starting balances).
(2) Display the balances of all the accounts, (3) then apply the compoundMonthlyInterest method to each account, displaying the interest earned on each account. (4) Then display all of the new balances. (5) Next, set the annualInterestRate to 3.5% and repeat the above instructions
Be sure to insert a "press any key to continue" message when needed so information does not scroll off the screen before it can be read. Be sure to make good choices about naming variables and members, parameter passing mechanisms, and access privileges (const/non-const).
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:
Visual C++
Must be 100% finished and received by buyer on:
Feb 18, 2002 8:00:00 AM 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.
Additional Files:
This bid request includes IMPORTANT additional attached files. Please download and read fully before bidding.
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 please help out the site and report it. Thanks for your help.
|
|
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!
|
$15 (USD)
|
Feb 17, 2002 11:43:12 AM EDT
|
8.74
(Superb)
|
|
|
Hi
Let me introduce myself as an expert C++ programmer.
I have done lot of assignments in C++ on this site successfully.
With the kind of experience I am having you can be sure of quality work first time itself.
I will give you well commented program in VC++ 6.0
Looking forward to your response.
Kind Regards |
|
|
|
|
|