BonusDesk.comboBonusReport 🌶️🌶️🌶️
Below is a partially written BonusDesk class. It already has two methods: addAmount(n, amount), which adds amount to n, and doubleIt(n), which doubles n. Neither one by itself does what you need. Write the comboBonusReport method: first add amount to base using addAmount, then double THAT result using doubleIt, then print exactly one line: "Combo bonus: " followed by the final number. For example, comboBonusReport(5, 3) should first compute 5 + 3 = 8, then double it to 16, and print "Combo bonus: 16".
This needs two calls, one inside the other: doubleIt(addAmount(base, amount)). addAmount runs first since it is the innermost call.
Store the first call's result in a local variable if that is easier to read: int added = addAmount(base, amount); int total = doubleIt(added);