Please solve just Prob #2. Fix the given code as shown in order.
What to do now The file you'l be working with is named Lab3 Practice.java . You should now attempt to compile and run the code to see if your predictions match the actual output. For any compiler/syntax errors, fix the code so that it will compile. For any runtime errors, fix the code so that it will run. There are some of the compilation/syntax errors that you may need to ask one of the lab assistants to help with. Don't hesitate to ask for help, as their job is to help you understand the error messages you're encountering If there are logic errors in the program when it runs (i.e., the program generates incorrect or confusing output), figure out why the code is creating those errors and fix the code so it doesn't. How this is graded After you finish fixing any syntax errors with the program, compare your predictions to the actual output. Make sure you can explain why your predictions were wrong if they were. The GA will check off this part of the lab. What to do now The file you'l be working with is named Lab3 Practice.java . You should now attempt to compile and run the code to see if your predictions match the actual output. For any compiler/syntax errors, fix the code so that it will compile. For any runtime errors, fix the code so that it will run. There are some of the compilation/syntax errors that you may need to ask one of the lab assistants to help with. Don't hesitate to ask for help, as their job is to help you understand the error messages you're encountering If there are logic errors in the program when it runs (i.e., the program generates incorrect or confusing output), figure out why the code is creating those errors and fix the code so it doesn't. How this is graded After you finish fixing any syntax errors with the program, compare your predictions to the actual output. Make sure you can explain why your predictions were wrong if they were. The GA will check off this part of the lab