Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN C++ please 5. Interest Earned: Assuming there are no deposits other than the original investment, the balance in a savings account after one year

IN C++ please

image text in transcribed

image text in transcribed

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: Rate T Amount = Principal + (1 + *) 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: 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. A WN 2 #include 3 #include // For the pow function #include 5 using namespace std; int main() Coco vou int times; // To hold the times interest is compounded double principal; // To hold the principal investment double rate; // To hold the interest rate double interest; // To hold the interest earned double amount; // To hold the amount in savings // BEFORE SUBMITTING TO VOCAREUM 1/ Comment out the cout statement that tells the user what to enter. // Do not delete; just add double forward slashes before the statement. // Get the principal amount. // Get the interest rate. // Get the number of times compounded. // Calculate the amount in savings after one year. // Calculate the interest earned. // Display the results. cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions