Answered step by step
Verified Expert Solution
Link Copied!

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.

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.
image text in transcribed

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

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions