program1 interest

program1 interest - a amount i Amount = Principal(1 Rate T...

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

View Full Document Right Arrow Icon
Kristin Gumbert CSC 135 Frye MWF 10-10:50 Program #1- Introduction (interest earned) Analysis: Inputs- principal, interest rate, number of times the interest is compounded Outputs- amount Formula- Amount = Principal * (1 + Rate / T) ^T Constraints- rate must be a decimal, times compounded must be positive Assumptions- rate must be a decimal Design: 1. Get Input a. principal b. interest rate c. number of times the interest is compounded 2. Calculations
Background image of page 1

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

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

Unformatted text preview: a. amount i. Amount = Principal * (1 + Rate / T) ^T 3. Print Output a. interest rate b. times compounded c. principal d. interest e. amount Pseudocode: double principal; //holds the principal double rate; //holds the interest rate int timesCompounded; Get principal, interest rate as decimal and times compounded from user. #include <iostream> using namespace std; int main() { Declarations;...
View Full Document

This note was uploaded on 04/07/2008 for the course CSC 135 taught by Professor Frye during the Fall '07 term at Kutztown.

Page1 / 2

program1 interest - a amount i Amount = Principal(1 Rate T...

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