Question

JAVA - ONLY DO THE PROBLEM SOLVING PART BELOW.       You just landed a job earning...

JAVA - ONLY DO THE PROBLEM SOLVING PART BELOW.

      You just landed a job earning about $60K/year. You vaguely recall one of your professors saying, ‘You should start investing with your first paycheck with $500.00 a month for 40 years to become a millionaire (expected outcome ~$1,000,000.00).

      He also said the average person only works for 40 years, so there is a big cost if you wait too long to start investing. This is called the Cost of Procrastination (CoP). CoP is the difference between investing for all forty years or waiting ten years to start investing and investing for only 30 years (~expected outcome $500,000.00).
    

       You must use your Java skills and the Problem-Solving Process to develop a Java Application to calculate the gain in total investment using the given compounding-interest equation. You will use an interest rate of 6% (0.06) and start with a Total Investment of $2000.00.

ONLY DO THIS. VVVVVVV PLEASE DO NOT USE CODE. JUST DO THIS PART.

I. Understand the Problem:

Problem Statement (Tasks):

Inputs:

Outputs:

Constraints:

Assumptions:

Relevant Equations:

Homework Answers

Answer #1

Program

public class investment {
public static void main(String[] args) {
    double monthlyInvestment = 2000;
    double annualInterestRate =.06;
   int year = 40;
   int months=year*12;
   double monthlyInterestRate=annualInterestRate/12;

   double b=(months*(months+1)/2)*monthlyInterestRate;
  
   double maturityAmount =(monthlyInvestment*months)+(monthlyInvestment*b);

System.out.printf("Gain in total investment is $%.2f\n",maturityAmount);
   }
}

Output

Gain in total investment is $2114400.00

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
Excel retirement problem:  You just got your first job and plan to start saving for...
Excel retirement problem:  You just got your first job and plan to start saving for retirement by investing with each monthly paycheck.  You plan to retire in 45 years.  In 50 years, you want to give your daughter a gift of $1,000,000.  You will receive an inheritance from a rich great-uncle of $250,000 in 20 years.  You think you will want $150,000 every year when you retire, starting the day you retire. You plan to...
Assume you just landed a great analytical job with MegaTelCo, one of the largest telecommunication firms...
Assume you just landed a great analytical job with MegaTelCo, one of the largest telecommunication firms in the United States. Since the cell phone market is now saturated, the huge growth in the wireless market has tapered off. Communications companies are now engaged in battles to attract each other’s customers while retaining their own. Customers switching from one company to another is called churn, and it is expensive all around: one company must spend on incentives to attract a customer...
Solve the problems below using well-formatted Excel solutions. Do not hardcode numbers in the formulas…..only use...
Solve the problems below using well-formatted Excel solutions. Do not hardcode numbers in the formulas…..only use cell references to the input data. I will change the input data in your problem to check alternate solutions. You will turn in a complete working Excel spreadsheet with your solution. 1)     What is the price of a semiannual $1,000 par value bond with four years left until maturity that pays a coupon of 3.75% and is yielding 5.25%? What would it be yielding...
Please read the article and answear about questions. Determining the Value of the Business After you...
Please read the article and answear about questions. Determining the Value of the Business After you have completed a thorough and exacting investigation, you need to analyze all the infor- mation you have gathered. This is the time to consult with your business, financial, and legal advis- ers to arrive at an estimate of the value of the business. Outside advisers are impartial and are more likely to see the bad things about the business than are you. You should...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT