Convert the following if statement using a switch statement if (numOfYears == 7) annualInt
Convert the following if statement using a switch statement if (numOfYears == 7) annualInterestRate = 7.25; else if (numOfYears == 15) annualInterestRate = 8.50; else if (numOfYears == 30) annualInterestRate = 9.0; else { System.out.println("Wrong number of years"); System.exit(0); }