Answer:
- let employee1 = {
- Name : "Kate",
- Hour : 38,
- };
-
- let employee2 = {
- Name : "John",
- Hour : 45,
- };
-
- let employee3 = {
- Name : "Catherine",
- Hour : 40,
- };
-
- let employeeArr = [employee1, employee2, employee3];
-
- let payrollRef = document.getElementById("payroll");
-
- let output = "";
-
- for(let i = 0; i < employeeArr.length; i++){
- let h = employeeArr[i].Hour;
- let pay;
-
- if(h <=40){
- pay = h * 15;
- }else{
- pay = 40 * 15;
- pay += (h - 40) * 15 * 1.5;
- }
-
- output += "Employee Name: " + employeeArr[i].Name + "<br>";
- output += "Total working hour: " + employeeArr[i].Hour + "<br>";
- output += "Total pay: $" + pay + "<br>";
- output += "<hr>"
- }
-
- payrollRef.innerHTML = output;
Explanation:
Presume there is a div element with id "payroll" in a html file. We can write a JavaScript to create a payroll report and place the output to the div.
In JavaScript, let's presume there are only three employees and their names and total working hour are recorded in three objects (Line 1 - 14). Next, we put those employee objects into an array, employeeArr (Line 16).
Next, create a for loop to traverse through each object from employeeArr and calculate the pay based on their working hour (Line 22 - 31).
Next, generate the output string which includes employee name, working hour and total pay (Line 33 -36).
At last, set the output string as the contents payroll (Line 39).
Answer:
You can use JavaScript, HTML, PHP and so forth.
Explanation:
Factory rent and insurance.
<h3>
what is Indirect material?</h3>
- Indirect materials are goods that, while part of the overall manufacturing process, are not integrated into the final product.
- For example, disposable gloves, personal protective equipment, tape, etc
To learn more about it, refer
to brainly.com/question/25689052
#SPJ4
Answer:
Explanation:
With an individual domain name we can upload all the content we want, in a free domain or share domain, upload content in some cases have a limit, for example the size of an image, in an individual domain we can add our brand, in a shared, we can add our brand side to company share those domains, we can have our own email address, practically we have a complete autonomy in our website.