Question: In this lab you are to write a program in Python called financialApplication.py to calculate the amount of money earned on a CD based on

In this lab you are to write a program in Python called financialApplication.py to calculate the amount of money earned on a CD based on the users inputs.

2. Suppose you bought a CD for $10,000.00 with an annual percentage yield (APY) of 5.75%.

After one month, the CD is worth: $10000 + $10000 * 5.75% / 12 = $10047.92

After two months, the CD is worth: $10047.92 + 10047.92 * 5.75% / 12 = $ 10096.06

3. Write a program to prompts the user to enter: a. CDs purchase value in dollars b. CDs annual percentage yield in percentage c. CDs investment term in months

4. Calculate the value of the CD at the end of the CD term.

5. A test case is provided here. You are required to produce the same UI as shown below. Enter CDs purchase value ($): 10000 Enter CDs annual percentage yield (%): 5.75 Enter CDs investment term (months): 12 Your CD is worth $10590.40 at the end of the 12 months term

6. You need to check for valid inputs. For example, negative number is invalid.

7. Before coding, think how you are going to tackle this problem, and write a brief description of the logic of your program.

Can you please answer this question with description and correct code.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!