Write a pseudocode that the main program prompts the user to

Write a pseudocode that the main program prompts the user to enter the principal and the interest rate. Then passes both the amount of principal and the interest rate to the interest-calculating method. The method should calculate and add the interest to the principle for one year and return the result to main.

Pleae read question carefully and do it by pseudocode only

Solution

Algorithm: InterestCalculator:

Function futureValue(principal: double, interestRate: double)

return principal * (1 + double / 100.0);

Function main()

Prompt: \"Enter the principal: \"

Read principal

Prompt: \"Enter the interest rate: \"

Read interest

fVal := futureValue(principal, interest)

Print fVal.

Write a pseudocode that the main program prompts the user to enter the principal and the interest rate. Then passes both the amount of principal and the interes

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site