Pseudocode[1]

Pseudocode[1] - Pseudocode Variable Declaration Declare...

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

View Full Document Right Arrow Icon
Pseudocode Variable Declaration Declare variable L (loan amount) as long double Declare variable rate (monthly interest rate) as long double Declare variable N (number of payments) as long double Input Values Ask the user to input the loan amount Read variable L = value of the user given input Ask the user to input the given monthly interest rate ask double (ask to convert percentage to decimal form) Read variable rate = value of the user given input Ask the user to input the given number of payments Read variable N = value of the user given input Process Compute the input in the following formula (rate*pow((1 + rate), N))/ (pow((1 + rate), N) -1)*L = payment variable as a double, to calculate the monthly payment Re –address the variables into a payment report. Construct the payment report to correct alignments for a better output. Payment report in caps as header Separate header with data by dashed line Setprecision(2) and fixed, for the dollar amounts to be shown precisely Set loan amount, monthly interest rate, number of payment left aligned
Background image of page 1

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

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

{[ snackBarMessage ]}

Page1 / 3

Pseudocode[1] - Pseudocode Variable Declaration Declare...

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