Task description: We all know about the Fibonacci series. In the Fibonacci series, each number is the sum of the two pre
Posted: Sun May 15, 2022 1:18 pm
I need this java program
Task description: We all know about the Fibonacci series. In the Fibonacci series, each number is the sum of the two previous numbers as shown. But, have you ever heard about the Lucas series? The Lucas series has the same recursive relationship as the Fibonacci sequence, where each term is the sum of the two previous terms, but with different starting values. As scientists mention the Lucas series is more close to the golden ratio as compared to the Fibonacci series. Let's make a program for this new interesting type of series! Lucas Series Fibonacci Series 18 29 9 13 8 11 5 76 34 47 21 Develop a java application that calculates the sum of the Lucas series. Your program has to print each row of the Lucas series separately and print them as shown in the image below. At the same time, using another thread (use SwingWorker), your program has to calculate the overall sum of all rows (sum of numbers in the Lucas series). In the end, your program has to save the Lucas series into a file (as shown in the video). Finding Lucas series sum х Number of row in Lucas series: 10 Get Sum of Lucas series Cancel 11 18 29 47 76 100% Sum - 196
Finding Lucas series sum X Number of row in Lucas series: 20 Get Sum of Lucas series Cancel 1 13 11 18 29 47 76 1123 199 322 521 Sum = 1361 Note: after the program ends, the cancel button should be disabled. Exception Handling: If the user enters the wrong inputs (string, too big integers, float), show a dialog box about the error: Finding Lucas series sum Number of row in Lucas series: 350 Get Sum of Lucas series Cancel Warning X i Enter valid input! OK 09 File I/O: Write your Lucas series into the file (.txt). Note: during the grading, we will give test inputs between 3 and 20 (3 <= N <= 20). Requirements: 1. GUI 2. Exception handling 3. File 1/0 4. Multithreading 5. Good coding style (like naming variables with meaningful names, dividing code into one-task functions) 6. Comments (meaningful comments) - "// this is variable" is not good comment 7. Recorded video (just run and show how it works with all cases, no need for code explanation)
Task description: We all know about the Fibonacci series. In the Fibonacci series, each number is the sum of the two previous numbers as shown. But, have you ever heard about the Lucas series? The Lucas series has the same recursive relationship as the Fibonacci sequence, where each term is the sum of the two previous terms, but with different starting values. As scientists mention the Lucas series is more close to the golden ratio as compared to the Fibonacci series. Let's make a program for this new interesting type of series! Lucas Series Fibonacci Series 18 29 9 13 8 11 5 76 34 47 21 Develop a java application that calculates the sum of the Lucas series. Your program has to print each row of the Lucas series separately and print them as shown in the image below. At the same time, using another thread (use SwingWorker), your program has to calculate the overall sum of all rows (sum of numbers in the Lucas series). In the end, your program has to save the Lucas series into a file (as shown in the video). Finding Lucas series sum х Number of row in Lucas series: 10 Get Sum of Lucas series Cancel 11 18 29 47 76 100% Sum - 196
Finding Lucas series sum X Number of row in Lucas series: 20 Get Sum of Lucas series Cancel 1 13 11 18 29 47 76 1123 199 322 521 Sum = 1361 Note: after the program ends, the cancel button should be disabled. Exception Handling: If the user enters the wrong inputs (string, too big integers, float), show a dialog box about the error: Finding Lucas series sum Number of row in Lucas series: 350 Get Sum of Lucas series Cancel Warning X i Enter valid input! OK 09 File I/O: Write your Lucas series into the file (.txt). Note: during the grading, we will give test inputs between 3 and 20 (3 <= N <= 20). Requirements: 1. GUI 2. Exception handling 3. File 1/0 4. Multithreading 5. Good coding style (like naming variables with meaningful names, dividing code into one-task functions) 6. Comments (meaningful comments) - "// this is variable" is not good comment 7. Recorded video (just run and show how it works with all cases, no need for code explanation)