Develop a script that will determine the gross pay for each of threeemployees. The company pays “straight time” for the first 40 hours worked by each employee and pays “time and a half” for all hours worked in excess of 40 hours. You’re given a list of the employees of the company, the numberofhourseachemployeeworkedlastweekandthehourlyrateofeachemployee.Yourscript should input this information for each employee, determine the employee’s gross pay and output HTML5 text that displays the employee’s gross pay. Use prompt dialogs to input the data. (html)
Script:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<script>
function onstart()
{
var gross=0;
//input using prompt
var name=prompt("Enter employee's name:");
var hours=prompt("Enter no. of hours worked in last week:");
var rate=prompt("Please enter hourly rate:");
if(hours>40) //time and half
{
gross=parseFloat(rate*1.5*(hours-40))+(rate*40);
}
else //straight
{
gross=parseFloat(rate*hours);
}
document.write("<b>Name:</b>
"+name+"<br>");
document.write("<b>Working hours:</b>
"+hours+"<br>");
document.write("<b>Gross Pay:</b> "+gross);
}
</script>
<body onload="onstart()">
</body>
</html>
Output:




Develop a script that will determine the gross pay for each of threeemployees. The company pays...
In C++. Develop an application that will determine the gross pay for employees. The company pays "straight-time" for the first 40 hours worked, time and a half for all hours worked in excess of 40 hours but less than 50 hours, and double time for any hours worked over 50 hours. Inputs to the program would be hours worked and rate of pay. Output would be gross pay.
The code should be written in HTML 5. Thanks! Develop a script that will determine whether a department-store customer has exceeded the credit limit on a charge account. For each customer, the following facts are available: a) Account number b) Balance at the beginning of the month c) Total of all items charged by this customer this month d) Total of all credits applied to this customer's account this month e) Allowed credit limit The script should input each of...
Open the Gross Pay
Solution.sln file contained in the VB2017\Chap08\Gross Pay Solution
folder. The interface provides a text box for entering the number
of hours an employee worked. It also provides a list box for
selecting the employee’s pay code. The btnCalc_Click procedure
should display the gross pay, using the number of hours worked and
the pay rate corresponding to the selected code. The pay codes and
rates are listed in Figure 8-47. Employees working more than 40
hours receive...
i need to Develop a script in java script that will determine whether a department-store customer has exceeded the credit limit on a charge account. For each customer, the following facts are available: a) Account number b) Balance at the beginning of the month c) Total of all items charged by this customer this month d) Total of all credits applied to this customer's account this month e) Allowed credit limit The script should input each of these facts from...
A company pays its employees as managers (who receive a fixed weekly salary), hourly workers (who receive a fixed hourly wage for up to the first 40 hours they work and “time-and-a-half,” i.e. 1.5 times their hourly wage, for overtime hours worked), commission workers (who receive $250 plus 5.7% of their gross weekly sales), or pieceworkers (who receive a fixed amount of money per item for each of the items they produce-each pieceworker in this company works on only one...
Develop a WPF application that has a button to calculate an employee’s weekly pay, given the number of hours worked. An employee should have a first name, last name, age, and hourly consulting rate. You should be able to create an employee object and provide the hours worked to calculate the weekly pay. The application assumes a standard workweek of 40 hours. Any hours worked over 40 hours in a week are considered overtime and earn time and a half....
Program Description: Write the pseudocode for a program that will calculate and display an employee’s gross pay. Input the number of hours an employee worked for each of the 5 days of the week. Add them all up to get his hours worked for the week. Weekly Pay is calculated by adding an employee’s normal pay plus any overtime pay. Normal hours are paid at $10/hr. Any over time is paid at $15/hr. Any hours over 40 are considered overtime....
Determine the gross pay for each employee listed below. When necessary, round intermediate calculations and the final answer to the nearest cent. Clay Jones is paid time-and-a-half for all hours over 40. He worked 45 hours during the week. His regular pay rate is $25 per hour. $ Mary James worked 48 hours during the week. She is entitled to time-and-a-half for all hours in excess of 40 per week. Her regular pay rate is $20 per hour. $ Lori...
7.11 Drivers are concerned with the mileage obtained by their automobiles. One driver has kept track of several tankfuls of gasoline by recording the number of miles driven and the number of gallons used for each tankful. Develop a script that will take as input the miles driven and gallons used (both as integers) for each tankful. The script should calculate and output HTML5 text that displays the number of miles per gallon obtained for each tankful and the combined...