This is my 3rd time posting this problem because I didn't get any help before...assistance would be appreciated.

Create the logic for a program that calculates and displays the amount of money you would have if you invested $3000 at 2.65 percent interest for one year.
Create a separate method to do the calculation and display the result.

input amount money invested:

input interest rate in decimal format:
input time in years:

compute value=Money*(1+interest)^time

display value
Print" That's all Doc"

start

Declarations
num balance
balance = computeBalance()
output "After one year the balance is", balance
stop
balance = computeBalance()
num computeBalance()
Declarations
num balance
num PRINCIPAL = 3000
num INTEREST_RATE = (add interest rate)
balance = PRINCIPAL * (1 + INTEREST_RATE)
return balance

To create the logic for this program, you can follow these steps:

1. Define a method named `calculateInterest` that takes the initial investment amount and the interest rate as parameters. In this case, the parameters would be $3000 and 2.65 percent, respectively.
2. Convert the interest rate from a percentage to a decimal by dividing it by 100. In this case, 2.65 percent becomes 0.0265.
3. Calculate the interest earned by multiplying the initial investment amount by the decimal interest rate. The formula for calculating the interest is: interest = initial investment * interest rate.
4. Add the interest earned to the initial investment to get the total amount of money after one year.
5. Display the result to the user.

Here's an example Java implementation of the logic:

```java
public class InterestCalculator {
public static void main(String[] args) {
double initialInvestment = 3000.0;
double interestRate = 2.65;

double totalAmount = calculateInterest(initialInvestment, interestRate);
System.out.println("The total amount after one year is: $" + totalAmount);
}

public static double calculateInterest(double initialInvestment, double interestRate) {
double decimalInterestRate = interestRate / 100.0;
double interest = initialInvestment * decimalInterestRate;
double totalAmount = initialInvestment + interest;

return totalAmount;
}
}
```

By running this program, you will get the result:

```
The total amount after one year is: $3079.50
```

This indicates that if you invest $3000 at a 2.65 percent interest rate for one year, you will have $3079.50 at the end of the year.