Challenge: Adjusting Salary with a Bonus
Taak
Swipe to start coding
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 syntax for this arithmetic operation).
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 24
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Geweldig!
Completion tarief verbeterd naar 1.33
Challenge: Adjusting Salary with a Bonus
Veeg om het menu te tonen
Taak
Swipe to start coding
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 syntax for this arithmetic operation).
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 24
single