Challenge: Making a Salary Calculator
Завдання
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.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 23
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Чудово!
Completion показник покращився до 1.33
Challenge: Making a Salary Calculator
Свайпніть щоб показати меню
Завдання
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.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 23
single