create the logic for a program that calculates and displays the amount of money you would have if you invested $5000 at 2 percent simple interest for one year. create a separate method to do the calculation and return the result to be displayed. modify the program in exercise 2a so that the main program prompts the user for the amount of money and passes it to the interest-calculating method.



Answer :