セクション 1. 章 23
single
Challenge: Adjusting Salary with a Bonus
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
Your company has decided to reward employees with a performance bonus of 250%. You need to update the salary calculator to include this bonus in the final salary calculation.
Extend the program by doing the following:
- Declare a new constant called
BONUSwith a value of2.5. - Before showing the output, multiply the value of
totalPaywithBONUSand store the result back intotalPay. - Use the shorter arithmetic syntax for this operation.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 23
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください