I have to write a program in python about this problem:
Ask the user for an initial balance for their holiday club savings account. The user is to be prompted for 11 deposit amounts. Output the final amount in the account.
This is what I have so far and I am lost. I don't know what to add in order to get the final amount. I also don't know how to make the numbers for the 11 deposits show.
balance = int(input("Enter initial balance: $"))
count = 1
numDep = 11
finalAmount = balance+numDep
while count <= 11:
n = int(input("Enter deposit #:")) # this needs to show deposits numbers up to 11
count += 1
print("Original price: $", balance)
print("Final Amount: $", finalAmount)
That is all I have for writing the program using a while-loop. I still need to write it using for-loop.
finalAmount=12would be exactly the same as what you have ... since you are never changing it im sure it always orints 12