Write a program in Python that computes the interest accrued on an account.
futval.py
def main():
print(" This Program calculates the future
value")
print(" of a 10-year investment. ")
principal = eval(input("Enter the initial principal:
"))
apr = eval(input("Enter the initial principal:
"))
for i in range(10):
principal = principal *(1
+apr)
print("The value in 10 years
is:",principal)
main()
def main():
print("This program calculates the future value of a n-year investment.")
n = int(input("Enter the number of years n: "))
num_periods = int(input("Enter number of compounds periods in an year: "))
principal = float(input("Enter the initial principal: "))
apr = float(input("Enter the annual interest rate: ")) / num_periods
for i in range(n * num_periods):
principal = principal * (1 + apr)
print("The value in 10 years is: {:.2f}".format(principal))
main()

Write a program in Python that computes the interest accrued on an account. You can modify...
From Zelle chapter 8: Write a program that uses a while loop to determine how long it takes for an investment to double at a given interest rate. The input will be an annualized interest rate, and the output is the number of years it takes an investment to double. Note: the amount of the initial investment does not matter; you can use $1. Hint: Chapter 2 futval.py has code with a for-loop that computes the value of an investment...
Write a program that prints the accumulated value of an initial investment invested at a specified annual interest and compounded annually for a specified number of years. Annual compounding means that the entire annual interest is added at the end of a year to the invested amount. The new accumulated amount then earns interest, and so forth. If the accumulated amount at the start of a year is acc_amount, then at the end of one year the accumulated amount is:...
PROGRAMMING IN C. 1) The first program will compute compounded interest. Suppose you invest $1000.00 at an interest rate of 2% per year. If the interest is computed at the end of each day, it is added to your account (i.e., the interest is compounded daily). Print what the account value will be at the end of each year for 20 years. Use data type double for money. For 365 days per year (ignore leap year), the daily interest rate...
Directions: Write a code for the following programming exercise in PYTHON!!!!!!! -Design a program that lets the user enter the total rainfall for each of 12 months into a list. The program should calculate and display the total rainfall for the year, the average monthly rainfall, and the months with the highest and lowest amounts. Here is what i got so far, but for some reason this code only print the Minimum and Maximum. its not printing the Average. def...
1. Using Python write a function for compounding interest. There should be three arguments to the function: a starting amount, a total interest rate, and the number of compounding periods. The function returns the ending value. Notes: normally, interest rates are given per period, or annually. The total interest rate would be the per-period interest rate multiplied by the number of compounding periods. Or in your function, the per-period interest added is the total rate divided by the number of...
Chapter 2 slides 40 to 47 discuss an example program, which computes the future value of an investment given an initial principal and an interest rate. Your task is to modify this program to calculate and print the future values of an investment after 10 years, using several different interest rates.: from 1% to 20%, in increments of 1%. That is, given an initial principal, your program should compute the future value after 10 years given an interest rate of...
Please I wish you use Python 3.7 for this problems. Q1. Write a program that receives a series of numbers from the user and allows the user to press the enter key to indicate that he or she is finished providing inputs. After the user presses the enter key, the program should print the sum of the numbers and their average. Q2. The credit plan at TidBit Computer Store specifies a 10% down payment and an annual interest rate of...
in C#
Assignment #2: Millionaire Write a program that takes as input the amount of money deposited as well as the current rate of interest as a percent. The program should then determine the number of years it will take before becoming a millionaire. Make sure that you include the following error checking to ensure that both the Principal and interest rate are positive real numbers. Hints: • Ensure that Rate of Interest is a decimal (divide by 100) •...
Write them in python IDLE *****
5. Average Rainfall
Write a program that uses nested loops to collect data
and calculate the average rainfall over a period of years. The
program should first ask for the number of years. The outer loop
will iterate once for each year. The inner loop will iterate twelve
times, once for each month. Each iteration of the inner loop will
ask the user for the inches of rainfall for that month. After all
iterations,...
14.Compound Interest hank account pays compound interest, it pays interest not only on the principal amount that was deposited into the account, but also on the interest that has accumulated over time. Suppose you want to deposit some money into a savings account, and let the account earn compound interest for a certain number of years. The formula for calculating the balance of the account afer a specified namber of years is The terms in the formula are A is...