Pseudocode - decimal form Read variable Rate(monthly...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Pseudocode Set up and acknowledge the variables necessary to calculate the monthly payment Variable Declaration Declare variable L (loan amount) as float or double Declare variable Rate (monthly interest rate) as float or double Declare variable N (number of payments) as integer Input Values Ask the user to input the loan amount Read variable L (loan amount) = value of the user given input Ask the user to input the given monthly interest rate as a float (ask to convert percentage to
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: decimal form) Read variable Rate (monthly interest rate) = value of the user given input Ask the user to input the given number of payments Read variable N (number of payments) = value of the user given input Compute (( Rate * pow((1 + Rate), N))/((pow((1 + Rate), N))- 1)) * L to calculate the monthly payment Output Value Write (Display) the output of the monthly payment...
View Full Document

This note was uploaded on 08/29/2011 for the course CS 140 taught by Professor Staff during the Spring '11 term at Montgomery CC.

Ask a homework question - tutors are online