Question: Interest Earned Total points: 2 5 Assuming there are no deposits other than the original investment, the balance in a savings account after one year
Interest Earned
Total points:
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
Where
principal original balance in the account
rate interest rate
number of times the interest is compounded during a year is if the interest is compounded quarterly
Write a program that asks the user for the principal, the interest rate, and the number of times the interest is compounded points
It then computes the new amount using the above formula points Hint: Look at slide of CMPSLectdMathExpressions.pptx for an example of the pow function.
It then displays interest rate, the times compounded, the principal, the interest, and the current amount in the account. The display should exactly match the output in the screen shot below, with columns aligned points for each display, total points
Create three string variables, assign them with your name, class and assignment number, and concatenate them along with other characters, such as dashes to display on top points
Good variable names points
Proper comments points
Input
Good variable names points
Proper comments points
Input
The input for this program will be two doubles for principal and the interest rate rate and one int for the number of times the interest is compounded The input should be read from the keyboard, as displayed below. Issue appropriate prompts.
Output
The output should be displayed on the screen. It should be formatted as shown below. Use left setw for the string literals, and right
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
