Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application Development And Administration

Authors: Michael V. Mannino

4th Edition

0615231047, 978-0615231044

More Books

Students also viewed these Databases questions