Question: Please highlight and fix 2 syntax errors in the following code. Please also find one logical error in the code? What can cause a

Please highlight and fix 2 syntax errors in the following code. Please

 

Please highlight and fix 2 syntax errors in the following code. Please also find one logical error in the code? What can cause a runtime error in the code? Package hw; public class TestClass { public void compute AnnualSalary (double monthly) { return 10 monthly; } public boolean test (double c) { double b = 25.8/c; if (b>10) { return false; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!