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

Trending Topics

Online now

Members online
326
Guests online
1,387
Total visitors
1,713

Forum statistics

Threads
2,287,449
Posts
29,044,735
Members
1,216,542
Latest member
zutr3k17
Back
Top