ece231assn2

Ece231assn2 - ECE 231 Fall 2010 Programming Assignment 2 Due Tuesday September 7 2010 at 11:59 PM Write a C program that based on a menu choice

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE 231 – Fall 2010 Programming Assignment 2 Due: Tuesday, September 7, 2010 at 11:59 PM Write a C++ program that based on a menu choice either calculates an amount you have gained in an account using the compound interest formula given a principle, interest rate, the number of compounds per year and the number of years or the continuous compounding formula that requires the principal, interest rate and number of years or exits. The formulas you will use are described as follows: nt n r P A + = 1 where A is amount, P is principle, r is interest rate (in decimal form,) n is the number of compounds per year (annually would be 1, monthly would be 12, etc,) and t is time in years (one and a half years would be 1.5.) For this calculation, you will need to ask the user to enter the principle, the interest rate, the time and the number of compounds per year. rt Pe A = where A is amount, P is principle, r is interest rate (in decimal form,) and t is time in years. For this calculation, you will need to ask for the principle, the interest and the time. NOTE
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/03/2012 for the course ECE 231 taught by Professor Peralta,s during the Fall '08 term at New Mexico.

Page1 / 2

Ece231assn2 - ECE 231 Fall 2010 Programming Assignment 2 Due Tuesday September 7 2010 at 11:59 PM Write a C program that based on a menu choice

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online