3. The Rule of 72 is used to make a quick estimate of the time required for pric
ID: 3622899 • Letter: 3
Question
3. The Rule of 72 is used to make a quick estimate of the time required for prices to double due to inflation. If the inflation rate is r percent, then the Rule of 72 esti- mates that prices will double in 72/r years. For instance, at an inflation rate of 6 percent, prices double in about 72/6 or 12 years. Write a program to test the accu- racy of this rule. The program should display a table showing, for each value of r from 1 to 20, the rounded value of 72/r and the actual number of years required for prices to double at an r percent inflation rate. (Assume prices increase at the end of each year.) Figure 6.19 shows the first few rows of the output.
FIGURE 6.19
Interest Rule
Rate (%) of 72 Actual
1 72 70
2 36 36
3 24 24
Rule of 72 used in Programming Project 3.
Explanation / Answer
download your code from here
http://wikisend.com/download/595624/rule_of_72.zip
Cheers :)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.