Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

need it in python please without no errors, the given output is shown in the 3rd pic. Compound interest is an important financial concept that

need it in python please without no errors, the given output is shown in the 3rd pic. image text in transcribed
image text in transcribed
image text in transcribed
Compound interest is an important financial concept that motivates saving early and often in your lifetime. Assuming no withdrawals from a savings account, the interest earned on your savings in one time period becomes part of the account balance and earns interest in future time periods. Therefore, even without any additional principal, an account earning compound interest will earn more and more interest in each subsequent year. For a specific investment, we can calculate the amount of money in the account as: P=P(1+nr)ntwhere: - P is the initial amount of the investment (the original principal) - r is the interest rate - n is the number of compounding per year (e.g., 12 for monthly compounding, 4 for quarterly, 1 for annual - t is the number of years of interest - P ' is the new balance of the account after earning interest for t years For this assignment, you'll be asked to write a program that gathers some of these variables from the user, calculates some figures using the above equation, and displays the results. You need to write a program that acts as a savings calculator. It should: - Prompt the user to enter P, r. n, and t. Your prompts should be "user-friendly" and should NOT require a user to know what, for example, n The prompts should make it obvious what the user should enter and what units are expected - Display original principal (P), the amount of interest earned (P:-P), and the total value of the account at the end of the term (P) - All monetary values should be displayed with units (i.e. dollar signs), commas, and two decimal places. For example; $20,023.23 The output produced by your program should be nearly identical to the sample output that is distributed together. Please see that attached file, "1_sample_output.txt". While the user's input will vary from run to run, the prompts and messages printed to the console when using your program should match those in the sample output to receive full credit. If all the text is on one line, please open it with MS Word or another compatible text editor. Welcome to the Compound Interest Calculator. Please enter the initial amount of your investment: 25000 Please enter the interest rate (e.g.,.03 for 3o interest): .04 Please enter the number of years for the investment: 10 Please enter the number of compoundings per year: 12 Original Investment: $25,000.00 Interest Earned: $12,270.82 Final Balance: $37,270.82

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

Beginning PostgreSQL On The Cloud Simplifying Database As A Service On Cloud Platforms

Authors: Baji Shaik ,Avinash Vallarapu

1st Edition

1484234464, 978-1484234464

More Books

Students also viewed these Databases questions