🔒 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
  • 588
    Views
  • 4
    Participants
Last reply from:
dthrone

Trending Topics

Online now

Members online
1,200
Guests online
3,287
Total visitors
4,487

Forum statistics

Threads
2,308,259
Posts
29,184,101
Members
1,191,909
Latest member
jesters
Back
Top