SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 314 Weeks Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 08 Nov 2017 My Price 10.00

need help showing some of the thing listed in the questions section.

C++ Only --Can you help me with my code? I need help showing some of the thing listed in the questions section.

 

#include <iostream>

#include <iomanip>

using namespace std;

int main()

{

int number=1;

  

//asking the user how much money they will save per month

  

float save = 1;

  

do

{

cout<< "How much money will you save/month? ";

cin>> save;

cout << save << endl;

}

while( save <= 0);

//asking the user what interest rate they hope to earn

  

float interest = 1;

do

{

cout<< "What interest rate do you hope to earn? ";

cin>> interest;

cout << interest << endl;

}

while( (interest < 0) || (interest > 100));

//asking the user how many months to calculate compound interest

float months = 1;

do

{

cout<< "How many months do you want to save for ";

cin>> months;

cout << months << endl;

}

while(months <= 0);

//asking the user what the savings target is (e.g. a million dollars)

float target = 1;

do

{

cout<< "What is your savings target? ";

cin>> target;

cout << target << endl;

}

while(target <= 0);

//print out the junk

cout<< setprecision(0) << fixed << "monthstdep.this monthttotal depositedttotal savedn";

  

while(number <= months)

{

cout<< number++;

cout<< "t"<<save;

cout<<"t"<<save++<<endl;

}

/*Your program will then output a month-by-month summary that shows:

how many months the user has been saving money

how much money the user deposited this month (principal)

the total amount of money deposited (principal)

the total amount of money saved (principal and interest)*/

system("pause");

}

Question:

I need code written for a retirement saving plan based off of this algorithm.

For most people, employer pensions, government pensions, and the tax situation in their country are important factors, typically taken account of in calculations by actuaries. Ignoring those significant nation-specific factors but not necessarily assuming zero real interest rates, a "not to be relied upon" calculation of required personal savings rate zprop can be made using a little mathematics.[50] It helps to have a dimly remembered acquaintance with geometric series, maybe in the form

1 + r + r2 + r3 + ... + rn−1 = (1 − rn)/(1 − r)

You work for w years, saving a proportion zprop of pay at the end of each year. So the after-savings purchasing power is (1-zprop) of pay while you are working. You need a pension for p years. Let's say that at retirement you are earning S per year and require to replace a ratio Rrepl of your pre-retirement living standard. So you need a pension of (1 – zprop ) Rrepl S, indexed to price inflation.

Let's assume that the investments, after price inflation fprice, earn a real rate ireal in real terms where

(1+ ireal ) = ((1+inominal))/((1+fprice ) ) (Ret-01)

Let's assume that the investments, after wage inflation fpay, earn a real rate i rel to pay where

(1+ i rel to pay ) = ((1+inominal))/((1+fpay ) ) (Ret-02)

Expectations:

The project will have to require loops, arrays and at least one user-defined function. The final solution should be in the range of 100-200 lines of code.

Answers

(5)
Status NEW Posted 08 Nov 2017 01:11 PM My Price 10.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)