Question: (Calculating the Compound Interest with Integers) Modify the program of Fig. 4.6 so that it uses only integers to calculate the compound interest. [Hint: Treat
(Calculating the Compound Interest with Integers) Modify the program of Fig. 4.6 so that it uses only integers to calculate the compound interest. [Hint: Treat all monetary amounts as integral numbers of pennies. Then break the result into its dollar portion and cents portion by using the division and remainder operations, respectively. Insert a period.]

Modify Problem 4.23 from your text such as
Once you run the program it will prompt you for
Please input the principle amount in dollars and cent such as 10000 means $100.00
Please enter the interest rate in percent such 5 means .05
Enter the number of years.
Once you enter the last value, it would give similar list to the result in the book
I / Fig. 4.6:fig04_06.c ing compound interest 3 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
