Question: Identify the error that exist in this method program: public static double f 1 ( double basic, double hour ) { if ( basic 1

Identify the error that exist in this method program:
public static double f1(double basic, double hour){
if (basic 1000)
extra = basic ?** hour ?**0.3;
else if(point 2000)
extra = basic ?** hour ?**0.4;
else
extra = basic ?*** hour ?***0.5;
return extra;
}
Your answer:
Wrong method header
Variable extra is unknown
A wrong use of hour data type
No error
 Identify the error that exist in this method program: public static

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 Databases Questions!