Okay so here is my code. For my project we have to calculate the monthly payment for a mortgage. My professor wants us to set it up so when someone enters a negative number for any of the inputs it still lets you enter the rest of them but at the end, the program outputs a message that says "ALL NUMERICAL NUMBERS MUST BE POSITIVE!". I understand the if-then-else statements but I just don't know how to make the program JUST send out the message and not do the calculations if the number is negative. Someone please help! (Also, I know the if statement I have is incorrect, I'm just trying to use an example of what I was saying previously and that the prgram outputs a message but still doees the calculations.)package mortgagecalculation2a; import java.text.NumberFormat; import java.util.Scanner; /** * * @author Akira */ public class MortgageCalculation2a { /** * @param args the command line arguments */ public static void main(String[] args) { Scanner in = new Scanner(System.in); double loanAmount; double interestRate; double numberYears; double months; double monthlyPayment; System.out.print("Enter the loan amount: "); loanAmount = Double.parseDouble(in.nextLine()); if (loanAmount < 0) { System.out.println("ALL NUMERICAL VALUES MUST BE POSITIVE!"); } System.out.print("Enter the rate: "); interestRate = Double.parseDouble(in.nextLine()); System.out.print("Enter the number of years: "); numberYears = Double.parseDouble(in.nextLine()); interestRate = interestRate / 100 / 12; months = numberYears * 12; monthlyPayment = interestRate * loanAmount * (Math.pow(1+interestRate, months))/(Math.pow(1+interestRate, months)-1); NumberFormat defaultFormat = NumberFormat.getCurrencyInstance(); System.out.println("The monthly payment is: " +defaultFormat.format(monthlyPayment)); } }