Create and use a function called compute compound interest

Assignment Help Computer Engineering
Reference no: EM132112742

PYTHON

Your local bank wants you to write a program that would allow a bank customer to see what his/her savings account balance would be based on an initial balance, interest rate, and number of years the money was left in the savings account. You may assume that interest is compounded yearly.

For example, 10% interest on a $100 initial balance would yield $10 in interest after 1 year.

Your program should create and use a function called compute_compound_interest that takes 3 parameters (initial balance, interest rate, and years). It should then perform the compound interest calculations based upon the years parameter. Lastly, it should return the total balance.

Design your program to match the sample execution below.

Sample Execution 1

Welcome to TD Bank! Please enter an initial balance: 100 Please enter an interest rate: 0.1 Please enter the number of years to calculate: 1 After 1 year(s) your balance will be $110.00.
Sample Execution 2

Welcome to TD Bank! Please enter an initial balance: 1000 Please enter an interest rate: 0.01 Please enter the number of years to calculate: 20 After 20 year(s) your balance will be $1220.19.

Reference no: EM132112742

Questions Cloud

Procedure to investigate different types of cyber-crime : SIT703: Advanced Digital Forensics - Case Investigation Report - apply knowledge of security on Windows network domain and follow standard procedure
Create a class that will take into it the amount of money : You have been asked to work on a much larger project for a mobile app that helps people manage their budget.
Calculate the balance and the other to determine the message : Your portion of the code requires you to create a class that will take into it the amount of money someone has earned for a month and their monthly expenses.
Displays the frequency table of the characters in the file : Displays the frequency table of the characters in the file, and displays the Huffman code for each character.
Create and use a function called compute compound interest : Your local bank wants you to write a program that would allow a bank customer to see what his/her savings account balance would be based on an initial balance.
Write a statement that toggles on_off_switch : Assume that x is a string variable has been given a value. Write an expression whose value is true if and only if x is a lower-case letter.
Write your first standalone python script : Your script will utilize the following string definition. testString = "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG" .
The element just before the element in plist whose index : Python:Assume that a variable named plist has been defined and is associated with a list that consists of 12 elements.
Create a deck of cards : Create a deck of cards. A card is a tuple containing a number between 1 and 13 representing the cards value and a string contianing "clubs".

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd