Logicwk14 - 3 Create the logic for a program that...

This preview shows page 1 - 2 out of 2 pages.

3.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.
5. a. Create the logic for a program that performs arithmetic functions. Design the program to contain two numberic variable, and prompt the user for values forthe variables. Pass both variables to methods named sum() and difference(). Create the logic for the methords sum() and difference(); they compute the sum of and difference between the values of two arguments, respectively. Each method should perform the appropriate computation and display the results.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture