๐Ÿ”’ 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
  • 574
    Views
  • 4
    Participants
Last reply from:
dthrone

Online now

Members online
1,061
Guests online
718
Total visitors
1,779

Forum statistics

Threads
2,276,976
Posts
28,973,524
Members
1,229,678
Latest member
wow98
Back
Top