Question: CS 2 0 1 0 Program 2 : 1 0 - year income plan Program Purpose This program explores the use of branching in programs.
CS Program : year income plan
Program Purpose
This program explores the use of branching in programs. It builds on knowledge of variables, constants, and
communicating with a user using the console. This programming assignment also assesses your understanding of the
file structure in the Visual Studio development environment.
Content Covered
Console inputoutput
Branches
File IO
Functions
Variablesconstantsassignments
Loops
Arrays
Searchingsorting
Mandatory Instructions
You have just won the lottery. You are considering buying an annuity that will pay you a fixed
amount each period for the next years. You are considering being paid monthly, quarterly, or
annually. You are also considering different amounts to be paid.
You have talked to your bank, and they have offered the following interest rates on the money you are
using to buy the annuity.
They offer a increase in the appropriate APR if the amount paid out annually is over $
You will need to calculate the amount to be given to the bank today to get the payments for the next
years called the Present Value or PV This can be done using the formula:
where:
payment amount per period
interest rate per period
total number of payments
Input:
Your program will ask for the frequency A and the dollar amount paid each period.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
