Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started