Sample Runs of a Version of the Interest-Calculator Program


Script started on Tue Apr 04 14:03:54 2000
You have new mail.
john@vega:(~/Classes/CS1500/Solo3) a.out

This program computes how much money you will have
in an interest-bearing account at some time in
the future.  The program assumes you will put some
money, the principal, in an account earning interest
and make no further deposits or	withdrawals for	a
number of years.  You enter the	amount of the
principal, the interest, and the time in years and the
program	tells you how much money you will have then.

Please enter the amount	of the principal.
in decimal form. 325.89	is one example.
Do not precede the amount with a dollar
sign ($) and do not include any commas
in your	number.	  ...................... : 1000

Please enter the percent interest rate
in decimal form.  9.25 is one example.
Do not include a percent sign (%)
in your	number.	 ......................	: 10

Please enter the number	of years: 1

YOUR ANSWER:
$1000.00 will grow to $1100.00 after 1 year
earning	interest at a rate of 10.000 percent.

john@vega:(~/Classes/CS1500/Solo3) a.out

This program computes how much money you will have
in an interest-bearing account at some time in
the future.  The program assumes you will put some
money, the principal, in an account earning interest
and make no further deposits or	withdrawals for	a
number of years.  You enter the	amount of the
principal, the interest, and the time in years and the
program	tells you how much money you will have then.

Please enter the amount	of the principal.
in decimal form. 325.89	is one example.
Do not precede the amount with a dollar
sign ($) and do not include any commas
in your	number.	  ...................... : 1000.12345

Please enter the percent interest rate
in decimal form.  9.25 is one example.
Do not include a percent sign (%)
in your	number.	 ......................	: 10.5293419

Please enter the number	of years: 2

YOUR ANSWER:
$1000.12 will grow to $1221.82 after 2 years
earning	interest at a rate of 10.529 percent.

john@vega:(~/Classes/CS1500/Solo3) exit
script done on Tue Apr 04 14:04:48 2000