Challenge: Adjusting Salary with a Bonus
Oppgave
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).
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 24
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Fantastisk!
Completion rate forbedret til 1.33
Challenge: Adjusting Salary with a Bonus
Sveip for å vise menyen
Oppgave
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).
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 24
single