Challenge: Making a Salary Calculator
Tarefa
Swipe to start coding
You are assigned a task for making a salary calculator. The company has a fixed hourly pay for all the employees. The salary is calculated by multiplying the number of hours worked with the fixed hourly pay.
- Declare & initialize a constant called
HOURLY_RATEwith a value of25.00. - Declare & initialize a variable called
hoursWorkedwith a value of164. - Declare a variable called
totalPayand set it equal to the product ofhoursWorkedandHOURLY_RATE. - Use a
console.logline to output the following message:The calculated total payment is: X, whereXshould be the calculatedtotalPay.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 23
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Incrível!
Completion taxa melhorada para 1.33
Challenge: Making a Salary Calculator
Deslize para mostrar o menu
Tarefa
Swipe to start coding
You are assigned a task for making a salary calculator. The company has a fixed hourly pay for all the employees. The salary is calculated by multiplying the number of hours worked with the fixed hourly pay.
- Declare & initialize a constant called
HOURLY_RATEwith a value of25.00. - Declare & initialize a variable called
hoursWorkedwith a value of164. - Declare a variable called
totalPayand set it equal to the product ofhoursWorkedandHOURLY_RATE. - Use a
console.logline to output the following message:The calculated total payment is: X, whereXshould be the calculatedtotalPay.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 23
single