CIT115 Python Programming:Compound Interest

$20 Bonus + 25% OFF

Securing Higher Grades Costing Your Pocket?
Book Your Assignment at The Lowest Price
Now!

Students Who Viewed This Also Studied

CIT115 Python Programming

Question:

Compound Interest with Loops 

You coded a program using the formula below to compute what the money will be worth at the end of the term.  A sample output solution is given below. Compound interest arises when interest is added to the principle, so that from that moment on, the interest that has been added also itself earns interest. This addition of interest to the principal is called compounding. A bank account, for example, may have its interest compounded every year: in this case, an account with $1000 initial principal and 20% interest per year would have a balance of $1200 at the end of the first year, $1440 at the end of the second year, and so on.  

You will create a Python program that allows for the numeric entry of Deposit, Interest Rate Percentage and Number of Months.  You will calculate the interest for each month the deposit is to be in the saving account.

The power of compounded interest is your money will grow faster.  For this assignment you will be coding a special feature to determine how many months it will take for your original investment to reach your saving goal. 

Coding Requirements:

1. Prompt the user for these required input values:  Deposit, Interest Rate Percentageand Number of Months, and Goal. Make sure to select the appropriate data type for each.

2. Perform data validation on the Deposit, Interest Rate Percentageand Number of Months, and Goal are numeric using Python error handling which can be found in Blackboard.  Use Python’s loops to accomplish the three sub-tasks below:

-If the contents are not numeric issue a message and prompt them again until the user enters a valid number for each of the input variables.  

-Make sure Deposit, Interest Rate Percentageand Number of Month are non-zero and positive values or issue an error message and ask for input again.  

-The Goalamount can be 0 but not negative.  If negative issue an error message and ask for input again.  

3. Convert Interest Rate Percentageinputted value to a decimal variable and then divide the  interest rate decimal value by 12 to get a monthly interest rate.   For example 0.04 / 12 = 0.0033. This newly computed value is the Monthly Interest Rate.

4. Code a loop to execute up to the Number of Months variable value the user has supplied to compound the interest rate.  You can choose a while or for loop.

-Multiply the Depositby the Monthly Interest Rate that was determined above to get the interest for the month.

-Add the interest for the month to the Deposit to get the new Account Balance

-Output the Month Numberand the new Account Balance (formatted as currency) to the screen

-Repeat the loop until the number of months has been met.

5. Code another loop to predict how many months it will take of compounding to reach your Goal  Note: You shouldn’t use a for loop because you don’t know how many months it will take):

-Keep track of how many times you are through the loop.  This will represent the number of months to reach your goal.

-Use the same logic you coded in Step 4 to compute each month’s Compounded Savings Accountbalance but do not output anything at this point.

-Compare the Compounded Savings Accountto what the Goal  Keep executing if the Compounded Savings Account is less than the Goal amount.

-Once you reach the Goalamount format the number of months with thousands separator and output the results.

-Make sure you use Hungarian Notation when naming the variables.

-Make sure to include comments in your code.

Sample Output with Errors, Monthly Output and No Goal Output

1.

2.

CIT115 Python Programming

Answer in Detail


Solved by qualified expert

Get Access to This Answer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

21 More Pages to Come in This Document. Get access to the complete answer.

Worries related to case study assignments can become a thing of the past due to MyAssignmenthelp.com. We provide online assignment help related to case studies for any academic subject. The 3000+ PhD level expert writers working tirelessly behind our brand provide top quality academic assignment help even if it’s regarding a case study. Apart from addressing case studies, our highly qualified writers emphasize on assignment help services like essay help, homework help and assignment help services. Students from numerous countries like Australia, Singapore, the UAE and the UK avail our case study help. You can apply for case study help and clear related queries through our 24×7 live chat facility. You can be rest assured of receiving your case study help material prior to the deadline.

More CIT115 CIT115 Python Programming: Questions & Answers

PageRank algorithm

In the assignment  the task is to implement  the PageRank  algorithm  in C  using the power  method  described below …

View Answer

Data 4200 Sampling and Data Mining Project

Part A: Group component In Microsoft Excel or Power BI. 1. Open the data file. Perform some basic data cleansing (removing missing or incorrect values, eg.Age = 0, missing country of origin, and other errors),
2. Recall the sampling methods below that you have learnt about in lectures. You will be …

View Answer

SIT744 Practical Machine Learning

This assignment contains three parts, in increasing order of machine learning sophistication levels as we go through the process of building an effective machine learning solution.
Part 1: Examine and understand your dataset
Part 2: Build Model Intuition: What Works and What Doesn’t
Part 3: Model …

View Answer

Business Management

You have to go beyond requirements and now develop detailed design based on OO concepts. Your deliverable is a report that shows the following: •    Each team member should develop an OO design solution for the service defined in proj1 (this is just an extension of Project1). &bu …

View Answer

Content Removal Request

If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.com then please raise the
content removal request.

Choose Our Best Expert to Help You

Jack Dawson

I am a medical professor at for long 16 years Stanford university.

650 – Completed Orders

Hire Me

Leah Tapia

PhD in Nursing with specialization in Neonatal Nursing

520 – Completed Orders

Hire Me

Still in Two Minds? The Proof is in Numbers!

33845 Genuine Reviews With a Rating of 4.9/5.

Management

Essay: 28 Pages, Deadline:
16 days

nice work, the expert has followed the instruction properly, the marks have still pending grading.

User ID: 6***66 Kelowna, Canada

Finance

Assignment: 5 Pages, Deadline:
13 days

Thank you so much! It was a well-written and organized paper. Great job Thank you so much! It was a well-written and organized paper. Great job,,

User ID: 6***98 United States

Project Management

Assignment: 2.6 Pages, Deadline:
21 hours

Very quick delivery and great assignment. They worked as instructed and was prompt in their responses.

User ID: 4***61 Australia

Management

Assignment: 5 Pages, Deadline:
5 days

good Expert he do all the requirements as mentioned, I appreciate your efforts and I am so happy to do the assignment for me

User ID: 6***84 Saudi Arabia

Assignment

Assignment: 10 Pages, Deadline:
4 days

The research essay was prepared based on all the requirements provided. All the references were well placed.

User ID: 4***87 Australia

Assignment

Essay: 5.2 Pages, Deadline:
6 days

Learning Portfolio was well written and to the point/precise. It was updated based on my review. Prompt responses from the experts and the team

User ID: 4***87 Australia

Healthcare

Assignment: 8 Pages, Deadline:
5 days

All the requirements are well covered. There are good amount of articles referenced in the work. Thks

User ID: 8***91 Singapore

Assignment

Essay: 1.6 Pages, Deadline:
3 days

very high grade, good assignment, very quick service , easy to ready, professional

User ID: 5***21 Blanchardstown, Ireland

Management

Essay: 4 Pages, Deadline:
9 days

I want to THANK YOU for a great semester and I excelled in that class because of you all. The timeless hours you put into making sure I passed all of …

User ID: 6***28 Tarboro, United States

Business Law

Essay: 3 Pages, Deadline:
9 days

Definitely great work by a reliable source. I will use this company and will recommend them. I got a passing grade!

User ID: 8***30 United States

Management

Essay: 28 Pages, Deadline:
16 days

nice work, the expert has followed the instruction properly, the marks have still pending grading.

User ID: 6***66 Kelowna, Canada

Finance

Assignment: 5 Pages, Deadline:
13 days

Thank you so much! It was a well-written and organized paper. Great job Thank you so much! It was a well-written and organized paper. Great job,,

User ID: 6***98 United States

Project Management

Assignment: 2.6 Pages, Deadline:
21 hours

Very quick delivery and great assignment. They worked as instructed and was prompt in their responses.

User ID: 4***61 Australia

Management

Assignment: 5 Pages, Deadline:
5 days

good Expert he do all the requirements as mentioned, I appreciate your efforts and I am so happy to do the assignment for me

User ID: 6***84 Saudi Arabia

Assignment

Assignment: 10 Pages, Deadline:
4 days

The research essay was prepared based on all the requirements provided. All the references were well placed.

User ID: 4***87 Australia

Assignment

Essay: 5.2 Pages, Deadline:
6 days

Learning Portfolio was well written and to the point/precise. It was updated based on my review. Prompt responses from the experts and the team

User ID: 4***87 Australia

Healthcare

Assignment: 8 Pages, Deadline:
5 days

All the requirements are well covered. There are good amount of articles referenced in the work. Thks

User ID: 8***91 Singapore

Assignment

Essay: 1.6 Pages, Deadline:
3 days

very high grade, good assignment, very quick service , easy to ready, professional

User ID: 5***21 Blanchardstown, Ireland

Management

Essay: 4 Pages, Deadline:
9 days

I want to THANK YOU for a great semester and I excelled in that class because of you all. The timeless hours you put into making sure I passed all of …

User ID: 6***28 Tarboro, United States

Business Law

Essay: 3 Pages, Deadline:
9 days

Definitely great work by a reliable source. I will use this company and will recommend them. I got a passing grade!

User ID: 8***30 United States

Have any Query?

GET HELP WITH YOUR HOMEWORK PAPERS @ 25% OFF

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

Write My Paper Button

WeCreativez WhatsApp Support
We are here to answer your questions. Ask us anything!
👋 Hi, how can I help?
Scroll to Top