View Single Post
Light Poster
23Jul2006,19:22  
chasey's Avatar
im really new to progeramming java im trying to do the following
"SalesStaff inherits from Employee and represents an employee who has a basic yearly salary, paid weekly over 52 weeks, but who can also earn a weekly bonus depending on performance during the weekThe employee is awarded bonus points for the week and each bonus point earns £20 extra on the weekly pay for that week only"

i just tired the following code ,
Code:
private double bonusPoints (){
return super inputSalary / 52.0 + bonusPoints * 20;
}
but it comes up with the following errors
Code:
SalesStaff.java:13: '.' expected
return super inputSalary / 52.0 + bonusPoints * 20;
             ^
SalesStaff.java:13: <identifier> expected
return super inputSalary / 52.0 + bonusPoints * 20;
                                                  ^
2 errors