Challenge: Adjusting Salary with a Bonus
Tehtävä
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).
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 24
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Mahtavaa!
Completion arvosana parantunut arvoon 1.33
Challenge: Adjusting Salary with a Bonus
Pyyhkäise näyttääksesi valikon
Tehtävä
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).
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 24
single