Question: Suppose you put $10,000 into a CD with an annual percentage yield of 5.75%. After one month, the CD is worth? 10000 + 10000 *

Suppose you put $10,000 into a CD with an annual percentage yield of 5.75%. After one month, the CD is worth?

10000 + 10000 * 5.75 / 1200 = 10047.92

After two months, the CD is worth?

10047.91 + 10047.91 * 5.75 / 1200 = 10096.06

After three months, the CD is worth?

10096.06 + 10096.06 * 5.75 / 1200 = 10144.44 and so on.

Write a program that prompts the user to enter an amount (e.g., 10000), the annual percentage yield (e.g., 5.75), and the number of months (e.g., 18) and displays a table as shown in the sample run.

Enter the initial deposit amount: 10000 PEnter Enter annual percentage yield: 5.75

Enter the initial deposit amount: 10000 PEnter Enter annual percentage yield: 5.75 PEnter Enter maturity period (number of months): 18 P-Enter Month CD Value 10047.92 10096.06 2 17 10898.54 18

Step by Step Solution

3.42 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Program plan Import the required class files Create the class called Saving 1 Start the main method ... View full answer

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 Java Programming Questions!