death666bl00ms Posted May 3, 2006 Share Posted May 3, 2006 hi, my teacher gave me a C++ assignment, and i am completely lost. please, before you start flaming, i have worked on this for several hours, and i dont even know how to start. can someone point me in the right direction? any help would be amazing! CS140 Assignment #6 Wisniewski You will be developing a program for Joe̢̢̮ââ¬Å¡Ã¬Ã¢ââ¬Å¾Ã¢s Bank and Trust. It will be used to create and maintain Savings Accounts. The program will provide the following menu: 1. Create new Savings Account 2. Calculate and Print Monthly Interest for all Savings Accounts 3. Change the annual interest rate 4. Print all Savings Accounts to the screen 5. Print all Savings Accounts to a file 6. Quit Data Structures The information for the savings accounts will be stored in an array of structures. The array should be large enough to hold 20 Saving Accounts. Commands Create new Savings Account Prompt the user for the Account #, Customer̢̢̮ââ¬Å¡Ã¬Ã¢ââ¬Å¾Ã¢s first and last name, mailing address, city, state, zipcode and beginning balance. Put this information into the next available element in the array of structures. Calculate and Print Monthly Interest for all Savings Accounts Prompt the user for the name of the month and the year. Monthly interest is calculated by multiplying the balance by the annual interest rate divided by 12. You can start with an annual interest rate of 3%. Add the monthly interest to the balance. Print out the report as follows: Joe̢̢̮ââ¬Å¡Ã¬Ã¢ââ¬Å¾Ã¢s Bank and Trust December 2003 Account # Monthly Interest New Balance 1234 $ .25 $100.25 5678 $ .50 $ 200.50 6655 $ 2.50 $ 1002.50 Change the annual interest rate Prompt the user for the new annual interest rate. Use this interest rate to calculate the monthly interest. Print all Savings Accounts to the screen Print all Savings Accounts to a file ̢̮â¬Å¡Ãâ÷ Print Balance in money format. ̢̮â¬Å¡Ãâ÷ Create at least three additional functions besides main Data Validation: ̢̮â¬Å¡Ãâ÷ The balance must be greater than 0. ̢̮â¬Å¡Ãâ÷ The annual interest rate must be greater than 0. "The greatest joy a man can know is to conquer his enemies and drive them before him. To ride their horses and take away their possessions. To see the faces of those who were dear to them bedewed with tears, and to clasp their wives and daughters in his arms." -Genghis Khan Link to comment Share on other sites More sharing options...
tunaboy692004 Posted May 3, 2006 Share Posted May 3, 2006 First of all, it doesnt seem like a hard task, how much experience do you have with c++? Current Goals80/80 Fletching60/75 Woodcutting97/100 Combat Link to comment Share on other sites More sharing options...
krasnoyarc Posted May 4, 2006 Share Posted May 4, 2006 Start by making a simple class for the SavingsAccount. In your Main create an array of 20 of those classes. Your class methods will include (beside the constructor) CalculateMonthlyInterest, PrintMonthlyInterest, GetInterestRate, ShowReports (print accounts to screen), SaveReports (save accounts to file) and a method to ask the user for all the information needed to create a savings account. I would keep the InterestRate as a class variable as well as all of the other information needed for a savings account. The constructor should set the initial value of the InterestRate and set the other variables to a known state (null or zero). This assignment is really a trivial programming task but if you don't know C++ it could be rather difficult to implement it correctly. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now