Question

An online bank wants you to create a program that shows prospective customer show their deposits...

An online bank wants you to create a program that shows prospective customer show their deposits will grow. Your program should read the initial balance and the annual interest rate. Interest is compounded monthly. Print out the balances after the first three months.

Here is a sample run: I n i t i a l b a l a n c e : 1000

Annual i n t e r e s t r a t e i n p e r c e n t : 6 . 0 .

A f t e r f i r s t month : 1 0 0 5 . 0 0 .

A f t e r s e c o n d month : 1 0 1 0 . 0 3 .

A f t e r t h i r d month: 1 0 1 5 .08.

have to run from Pycharm 2019.

Homework Answers

Answer #1
initialBalance = float(input("I n i t i a l b a l a n c e : "))
interest = float(input("Annual i n t e r e s t r a t e i n p e r c e n t : "))

initialBalance = initialBalance+initialBalance*(interest/100)
print("A f t e r f i r s t month :",initialBalance)

initialBalance = initialBalance+initialBalance*(interest/100)
print("A f t e r s e c o n d month :",initialBalance)

initialBalance = initialBalance+initialBalance*(interest/100)
print("A f t e r t h i r d month:",initialBalance)

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Write a program of wordSearch puzzle that use the following text file as an input. The...
Write a program of wordSearch puzzle that use the following text file as an input. The output should be like this: PIXEL found (left) at (0,9). ( Use JAVA Array ) .Please do not use arrylist and the likes! Hints • The puzzle can be represented as a right-sized two-dimensional array of characters (char). • A String can be converted into a right-sized array of characters via the String method toCharArray. . A word can occur in any of 8...
i) F o r t h e f o l l o w I n g...
i) F o r t h e f o l l o w I n g f i n d t h e ( c o m p. E x p.) f o u r I e r s e r i e s f o r x( t ) I I ) D r a w t h e am p &. P h a s e s p e c t r a I I I ) T...
A student would like to assess whether the mean amount of money spent on books during...
A student would like to assess whether the mean amount of money spent on books during the 2016-2017 school year is equal for all students in each of the four class ranks at California University (1: Freshmen, 2: Sophomores, 3: Juniors, 4: Seniors). To conduct this study, the student took a large random sample of students at California University and recorded for each student the total amount of money spent on books during the 2016-2017 school year and the class...
Read the following cases and decide the right supplement for each case. Highlight the supplement name...
Read the following cases and decide the right supplement for each case. Highlight the supplement name by finding the word from the given box. Follow the given example: Example: Naif has an infection. He needs an antibiotic Maryam cannot digest milk. She needs to have ___lactase______ supplements Majid is overweight. He decided to buy _________ supplements to help him lose weight. Muntaha’s nails always breaks so easily. She wants to get _________ supplements. Munther face looks older than his age....
Write a C++ program to demonstrate thread synchronization. Your main function should first create a file...
Write a C++ program to demonstrate thread synchronization. Your main function should first create a file called synch.txt. Then it will create two separate threads, Thread-A and Thread-B. Both threads will open synch.txt and write to it. Thread-A will write the numbers 1 - 26 twenty times in nested for loops then exit. In other words, print 1 - 26 over and over again on separate lines for at least 20 times. Thread-B will write the letters A - Z...
You have data on birth weights and a number of child, mother, and family characteristics. In...
You have data on birth weights and a number of child, mother, and family characteristics. In particular, you are interested in the relationship between birth weight in ounces (bwght) and the sex of the child (male = 1 if baby is male and = 0 if baby is female), the number of years of mother’s education (motheduc), and family income in $1000s (faminc). An “l” prefix indicates the natural log of the variable. For example, lbwght is log(bwght). The general...
Assume that the lifespan of an Asian hornet follows a Weibull distribution with parameters β =...
Assume that the lifespan of an Asian hornet follows a Weibull distribution with parameters β = 2.0 and δ = 62 days. a)Determine the probability that an Asian hornet lives longer than 50 days. b)Determine the mean time in days until death of an Asian hornet. c)Determine the median life time of Asian hornet in days. (Hint: For median, m , P ( X ≤ m ) = 0.5 , X i s t h e l i f e...
Here are two relations: R(A,B): {(0, 1), (2,3), (0, 1), (2,4), (3,4)} S(B, C): {(0, 1),...
Here are two relations: R(A,B): {(0, 1), (2,3), (0, 1), (2,4), (3,4)} S(B, C): {(0, 1), (2, 4), (2, 5), (3, 4), (0, 2), (3, 4)} Compute the following: a) 11'A+B.A2,B2(R); b) 71'B+l,C-l(S); c) TB,A(R); d) TB,c(S); e) J(R); f) J(S); g) /A, SUM(Bj(R); h) IB.AVG(C)(S'); ! i) !A(R); ! j) IA,MAX(C)(R t:><1 S); k) R ~L S; I) R ~H S; m) R ~ S; n) R ~R.B<S.B S. I want to know the solution for j to m
Goal: Write a simple number guessing game in java. The game picks a number between bounds...
Goal: Write a simple number guessing game in java. The game picks a number between bounds input by the user, then user has to guess the number. The game will tell you if your guess is too high or too low. When you guess it, the game will tell you how many guesses it took Run multiple games and print statistics (# games, # guesses, avg) when all done. Sample Run: G U E S S I N G G...
question : Take the recursive Java program Levenshtein.java and convert it to the equivalent C program....
question : Take the recursive Java program Levenshtein.java and convert it to the equivalent C program. Tip: You have explicit permission to copy/paste the main method for this question, replacing instances of System.out.println with printf, where appropriate. You can get the assert function from assert.h. Try running the Java program on the CS macOS machines. You can compile and run the program following the instructions discussed in class. Assertions are disabled by default. You can enable assertions by running java...