🔒 Closed Employee salary system

Status
Not open for further replies.
computation of salary the program can compute the salary of employee in rate 500 per day and OT 100 and allowance 50 per day find the total gross and the total deduction and the net pay of the employee pano po yan salamat po
 
Ako na namili ng language TS 🤣

HTML:
<!DOCTYPE html>
<html>
<body>
<p>Your salary: <span id="salary"></span></p>
<script>
var daily_rate = 500;
var ot_rate = 100;
var allowance_rate = 50;

var days_work = 2;
var days_ot = 1;

function compute_salary() {
  return (days_work * daily_rate) + (days_ot * ot_rate) + (days_work * allowance_rate);
}
document.getElementById("salary").innerHTML = compute_salary();
</script>
</body>
</html>
 
Status
Not open for further replies.

About this Thread

  • 3
    Replies
  • 714
    Views
  • 4
    Participants
Last reply from:
dthrone

Trending Topics

Online now

Members online
1,044
Guests online
7,279
Total visitors
8,323

Forum statistics

Threads
2,354,325
Posts
29,383,266
Members
1,079,413
Latest member
tensh1_9
Back
Top