Question: How to fix these syntax errors? Anytime I go to insert } to complete it, it then gives me another error to delete it. Also

How to fix these syntax errors? Anytime I go to insert } to complete it, it then gives me another error to delete it. Also is there anywhere in my coding where the lines don't look precise?
PayoffDebt.java >> 1 import java.util.Scanner; // Import Scanner class 2 import java.lang. Math; // Import Math class 3 4 public class PayoffDebt { 6 9 public static double principal; public static double annualInterestRate; public static double monthly Payment; public static double numberOfMonths Raw; public static int numberOfMonths; public static double totaLAmount Paid; // Total amount paid to the credit card company public static double totalInterest Paid; public static double overPayment; // Amount overpaid to the credit card company 12 613 public static void main(String[] args) { 14 15 16- 17 18 19 // Scanner Init Scanner keyboard = new Scanner(System.in); System.out.println("Enter the principal: "); principal = keyboard.nextDouble(); System.out.println("Enter the annual interest rate:"); annualInterestRate = keyboard.nextDouble(); System.out.println("Enter your monthly payment:"); monthlyPayment = keyboard.nextDouble(); numberOfMonthsRaw = (Math.log(monthlyPayment)-Math.log(monthlyPayment-(annualInterestRate/1200.0)*principal))/(Mat numberOfMonths = (int) Math.ceil(numberOfMonthsRaw); // rounded int of numbersofMonthsRaw totalAmountPaid = numberOfMonths*monthlyPayment; totalInterestPaid = totalAmountPaid - principal; // Difference of the totalAmountPaid with the raw value of // number of months multiplied by monthlyPayment overPayment = totalAmountPaid-(numberOfMonthsRaw*monthlyPayment); 33 34 35 36 37 Resource Path Location Type Problems x Javadoc Declaration Console 2 errors, 0 warnings, 0 others Description Errors (2 items) Syntax error, insert "}" to complete ClassBody Syntax error, insert "}" to complete Method Body PayoffDebt.java /Credit Card Pay Off/src line 13 PayoffDebt.java /Credit Card Pay Off/src line 34 Java Problem Java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
