77 895
Assignments Done
98,6%
Successfully Done
In August 2019

# Answer to Question #42087 in C++ for aboorh

Question #42087
Write a program to calculate Effective Period Rate (EPR) and (ER) Effective Rate:

Formula : Effective Period Rate = Nominal Annual Rate / n

Example:

What is the effective period interest rate for nominal annual interest rate of 5% compounded monthly?

Solution:

Effective Period Rate = 5% / 12 months = 0.05 / 12 = 0.4167%

Formula : Effective Rate = (1 + Nominal Rate / n)n – 1
Expert's answer
``#include <iostream>#include <conio.h>using namespace std;int main() {    double nr;    int n;    cout << "Enter nominal rate: ";    cin >> nr;    cout << "Enter n: ";    cin >> n;    nr*=0.01;    cout.precision(4);    cout << "Effective Period Rate = " << fixed << nr/n*100 << "%\n";    cout << "Effective Rate = " << fixed << ((1 + nr/n)*n-1)*100 << "%\n";    return 0;}``

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

#### Comments

Assignment Expert
22.05.14, 16:38

Dear Meme,
You're welcome. We are glad to be helpful.
If you liked our service please press like-button beside answer field. Thank you!

meme
11.05.14, 14:19

Thank you sooooooooooooo much
I really appreciate the great job you

Submit