Docsity

Introduction to Computer Programming - Problem Description | CPS 196, Assignments of Computer Science

Toggle sidebar
bg1
Problem Description:
Financial Planning 1:
Suppose that you want to save some amount of money, say $1000, every year. Suppose
that you put it into a savings account that only has simple interest computed once a year
at some rate, say 3%, and that you always save the interest by adding it to the account.
Write a program that will compute how much money you have saved after a certain
number of years, say 10.
Financial Planning 2:
The situation is the same as in the first problem, that is you save some amount of money
every year and your savings account has some amount of interest, compounded annually.
But instead write a program that will compute how many years it will take to save a
certain amount of money, say $10,000.

Partial preview of the text

Download Introduction to Computer Programming - Problem Description | CPS 196 and more Assignments Computer Science in PDF only on Docsity!

Problem Description:

Financial Planning 1:

Suppose that you want to save some amount of money, say $1000, every year. Suppose that you put it into a savings account that only has simple interest computed once a year at some rate, say 3%, and that you always save the interest by adding it to the account. Write a program that will compute how much money you have saved after a certain number of years, say 10.

Financial Planning 2:

The situation is the same as in the first problem, that is you save some amount of money every year and your savings account has some amount of interest, compounded annually. But instead write a program that will compute how many years it will take to save a certain amount of money, say $10,000.