Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Q7: (The Rule of 72) (25 points) The \"Rule of 72\" is a mental math technique t

ID: 3902194 • Letter: Q

Question

Q7: (The Rule of 72) (25 points) The "Rule of 72" is a mental math technique that can approximate how many years it will take an investment to double given a fixed annual rate of interest. To calculate approximately how long an investment will double in amount, divide 72 by the annual interest rate for the investment. The number 72 is chosen because it is somewhat accurate for lower interest rates of return, and the number 72 is easily divided by interest rate values of 396, 696, 996, and 12%. So, for example, if I invest $10,000 in savings account and can earn 6% interest every year, it will take 12 years for the money to double (72 / 6%-12 years). If the money is left in the account and the interest rate stays the same, my $10,000 would become $20,000 12 years, $40,000 in 24 years, $80,000 in 36 years, and $160,000 in 48 years using the Rule of 72 for approximate calculations. A better approximation, without using actual investment formulas that require exponents (Chapter 4 in textbook) is to use the number 69.3, but this makes it now very difficult to do simple mental math approximations without the aid of a calculator. Using this number, the investment will double in 11.55 years (69.3 / 6%-11.55 years). Design a program that accept an investment amount, an annual interest rate, and tell me how many years it will take for that investment to double using the Rule of 72. Also show how many years it will take for it to double using the value 69.3 for a more accurate answer. Use floats for your data types.

Explanation / Answer

The code will be

#include<stdio.h>

int main() {
float amt,rate,time;
scanf("%f %f",&amt,&rate);
time=72/rate;
printf("Using 72 rule the time taken will be %f ",time);
printf("Using 69.3 rule the time taken will be %f ",69.3/rate);
  
}

Do give a thumbs up