セクション 1. 章 22
single
Challenge: Making a Salary Calculator
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
You are assigned a task to build a salary calculator. The company has a fixed hourly pay for all employees. The salary is calculated by multiplying the number of hours worked by the fixed hourly rate.
Your tasks:
- Declare and initialize a constant called
HOURLY_RATEwith a value of25.00. - Declare and initialize a variable called
hoursWorkedwith a value of164. - Declare a variable called
totalPayand set it equal to the product ofhoursWorkedandHOURLY_RATE. - Output the following message:
The calculated total payment is: X
Where X is the calculated totalPay.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 22
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください