Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ Project 9-2: Future Value Calculator 2.0 Create a program that calculates the future value and stores everything in a vector. Note: Bold words are

c++ image text in transcribed
image text in transcribed
Project 9-2: Future Value Calculator 2.0 Create a program that calculates the future value and stores everything in a vector. Note: Bold words are output while non-bold words are input in the following console sample. Console Sample The Future Value Calculator 2.0 Bnter monthly investment 100 Bater yearly intereat rate: 7 Enter maber of yeaxa is 3 juture value : 377 I. 46 Preas y to eontinue or another letter to quit: y Enter monthly invertant: 200 Enter yearly interent rate: 2 Bnter nuaber of yeara: 4 juture value: 10002 . 4 Preas y to continue or another letter to quit: I Bye: Specifications The formula to convert yearly interest rate to monthly interent rate: aonthly_rate = yearly rate /12/100 The formula to convert number of yeara to number of months: monthn = yearm : 12 - The formula to calculate the future value after a month based on the current value in this investment, mothly investment and monthly interest rate: \[ \begin{array}{l} \text { future_value = currant_capital + monthly_intereat } \\ = \text { current_capital + current_capital + monthly_rate } \\ = \text { (current_value + monthly_investaenti) + } \\ \text { (current_value + monthly_investment) * monthly_rate } \end{array} \] Assome that the user will enter valid decimal values for the monthly imventment and monthly interest. rate. - Assume that the user will enter valid integers for the number of years. - The program should continue as long as the user presses y or Y. - When the user refluses to continue, all the results thould be displayed in the form of a table shown in the console sample above - Store the data for each columa in its own tector. - Display all the decimal values with 2 decimal places. Make the monthly investment column 10 characters wide, yearly rate column 8 characters wide, years column 7 characters wide, and future value column 14 characters wide

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

2nd Edition

1597499471, 978-1597499477

More Books

Students also viewed these Databases questions

Question

How are the drivers of VC and buyout cycles different?

Answered: 1 week ago

Question

What tools might be helpful?

Answered: 1 week ago