Question: CS 2 0 1 0 Program 2 : 1 0 - year income plan Program Purpose This program explores the use of branching in programs.

CS2010 Program 2: 10-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 input/output
Branches
File I/O
Functions
Variables/constants/assignments
Loops
Arrays
Searching/sorting
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 10 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 0.12% increase in the appropriate APR if the amount paid out annually is over $125,000.
You will need to calculate the amount to be given to the bank today to get the payments for the next 10
years (called the Present Value or PV). This can be done using the formula:
PV=C1-(1+i)-ni
where:
C= payment amount per period
i= interest rate per period
n= total number of payments
Input:
Your program will ask for the frequency (M,Q,A and the dollar amount paid each period.
 CS2010 Program 2: 10-year income plan Program Purpose This program explores

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!