What is wrong with the following statement? How could you correct it?if(payRate < 5.85 && payRate > 60)System.out.println("Error in pay rate");

What will be an ideal response?

As a single variable, no payRate value can ever be both below 5.85 and over 60 at the same time. Therefore, the output statement can never execute, no matter what value the payRate has. In this case, you must write the following code to print the error message under the correct circumstances:
if(payRate < 5.85 || payRate > 60)
   System.out.println("Error in pay rate");

Computer Science & Information Technology

You might also like to view...

All of the following are true in regard to front-end databases EXCEPT:

A) The front-end database accesses back-end tables by linking to them. B) Front-end databases can be deployed locally to user's computers. C) Front-end databases allow for the creation of temporary objects, such as temporary tables. D) Users cannot modify the file to include objects for their individualized use.

Computer Science & Information Technology

A ____ combines into one program the characteristics of other attacks.

A. Trojan Horse B. worm C. multi-thread virus D. blended threat

Computer Science & Information Technology