← all problems

Scoreboard.reportBonus 🌶️

Below is a partially written Scoreboard class. It already has a method, bonusFor, that adds a fixed 10-point bonus to a score — you do not need to know how it works, just that it exists and what it returns. Write the reportBonus method: call bonusFor to get the boosted score, then print exactly one line: "Score with bonus: " followed by the boosted score. For example, reportBonus(95) should print "Score with bonus: 105".

Scoreboard.java — the class below is already written; you're only completing the method in the editable box.

class Scoreboard {
    public static int bonusFor(int score) {
        return score + 10;
    }
    // ---- write your method below ----
}