Question: please help. C++ with the coding. 5. Interest Earned: Assuming there are no deposits other than the original investment, the balance in a savings account

please help. C++ with the coding.  please help. C++ with the coding. 5. Interest Earned: Assuming there
are no deposits other than the original investment, the balance in a

5. Interest Earned: Assuming there are no deposits other than the original investment, the balance in a savings account after one year may be calculated as: Amount = Principal T Rate 1+ T Principal is the balance in the savings account, Rate is the interest rate, and T is the number of times the interest is compounded during a year (T is 4 if the interest is compounded quarterly). Write a program that asks for the principal, the interest rate, and the number of times the interest is compounded. It should display a report similar to: Enter the principal amount: 1000 Enter the interest rate: 4.25 Enter the number of times interest will be compounded: 12 Interest Rate: 4.25% Times Compounded: 12 Principal: $ 1000.00 Interest: $ 43.34 Amount in Savings: $1043.34 Make sure to INCLUDED BUT comment out the prompts to the user for input. WINCTUUU CLIP 77 TOILTU pUw Tunction 4 #include 5 using namespace std; 6 7 int main() 8 { 9 int times; // To hold the times interest is compounded Unused variable "times' 10 double principal; // To hold the principal investment Unused variable 'principal 11 double rate; // To hold the interest rate A Unused variable 'rate 12 double interest; // To hold the interest earned A Unused variable 'interest 13 double amount; // To hold the amount in savings Unused variable amount 14 15 // BEFORE SUBMITTING TO VOCAREUM 16 // Comment out the cout statement that tells the user what to enter. 17 // Do not delete; just add double forward slashes before the statement. 18 19 1/ Get the principal amount. 20 21 1/ Get the interest rate. 22 23 1/ Get the number of times compounded. 24 25 // Calculate the amount in savings after one year. 26 27 1/ Calculate the interest earned. 28 29 // Display the results. 30 cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!