Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | Apr 2017 |
Last Sign in: | 233 Weeks Ago |
Questions Answered: | 12843 |
Tutorials Posted: | 12834 |
MBA, Ph.D in Management
Harvard university
Feb-1997 - Aug-2003
Professor
Strayer University
Jan-2007 - Present
Need help with c++ project im working on. I will attach instructions and write them as well. Thanks for the help! C++ Functions question.
Write a C++ program to calculate 5 financial formulas*. The customer will enter 10 financial numbers and then select one of the formulas. Display the answer to each formula selected.
Requirements 1. Input the following items (10): income, expenses, total debt, total equity, investment return, inflation rate, market price, purchase price, annual interest rate. 2. Display a menu with the financial formula options. Include an exit option.
3. Create 6 functions a. Menu b. Cash flow c. Leverage ratio d. Real return e. Percentage increase f. Years to double investment
4. Send the appropriate data to the selected function.
5. Do not let the customer enter 0 for total equity, purchase price, and annual interest rate.
6. Design the program so the user can continuously enter a menu item and terminate the program when done.
7. Do not use global variables. All variables used in the functions must be passed as parameters or declared locally
8. Display the results
Formulas:
Cash Flow = income – expenses
Leverage ratio = total debt / total equity
Real return = ((1+ investment return)/(1 + inflation rate)-1)*100
Percentage increase = (market price - purchase price)/purchase price
Years to double investment = 72/(the annual interest rate of the investment)/100
Use the following test data in your program:
Income 100 300 250
Expenses 50 400 195
Total debt 100 200 305
Total equity 200 100 602
Return on investment 0.08 0.05 0.058
Inflation rate 0.03 0.03 0.0156
Market price 100 200 250
Purchase price 200 50 36.78
Annual interest rate 0.03 0.05 0.0159
Results from the formulas:
Cash flow 50.00 -100.00 55.00
Leverage ratio 0.50 2.00 0.51
Real return 4.85 1.94 4.17
Pct increase -0.50 3.00 5.80
Years to double 24.00 14.40 45.28
Submit: Zipped folder named LastNameFirstNameCIS1111NameOfAssignment which contains: 1. Your .cpp file 2. Screen shots of your code and output
6 financial formulas to help you succeed”, Bankrate website http://www.bankrate.com/finance/investing/financialformulas-2.aspx
Attachments:-----------