☑Kizspy.me
double calculatePayout() {
if (claimStatus.equals("Approved")) {
return amount * 0.85; // 85% payout
} else
return 0;
}
void updateClaimAmount(double newAmount) {
amount=newAmount;
}
Answer requirements:
•
Identify 6 errors in the above code.
•
Explain each error and suggest fixes.
Zoom
+ 100%
Close