{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

program1 interest

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

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

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

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

View Full Document
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

{[ snackBarMessage ]}

### 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
Ask a homework question - tutors are online