Need someone to look at my code and correct 2 lines of code to match this mathmatical equation, i currently have this: case 4: { String userInput = JOptionPane.showInputDialog(null, "Please Enter a...



Need someone to look at my code and correct 2 lines of code to match this mathmatical equation, i currently have this:
case 4: { String userInput = JOptionPane.showInputDialog(null, "Please Enter a Positive Integer Number for N ", "Math Series", 1); int a = Integer.parseInt(userInput); double result = series4(a); JOptionPane.showMessageDialog(null, " CSC 229 - Project 03 (Math Series)\n________________________________________\n " + " 2/1! + 3/2! + 4/3! + ........ + (" + a + "+1)/" + a + "! = " + String.format(" %.2f ", result) + " \n________________________________________" , "Math Series", 3); break; }
public static double series4( int a) { double sum = 0.0; for (int i = 1; i
Need the math equation like this:

May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here