A parking garage charges a $2.00 minimum fee to park for up to three hours. After three hours, the garage charges an additional $0.50 per hour. However, the maximum fee will be $10.00. No one can park over 24 hours.

This is what I have:

```
public double calculate(double hours){
if(hours <= 3)
fee = 2.0;
else if(hours >= 3 & fee < 4)
fee= (2.0 +( .50*hours));
if(hours > 10)
fee = 10.0;
return fee;
}
```