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:
The correct answer to the following answer will be Speed.
Explanation:
- As we all know that computer works at a remarkable speed, no one can match the speed of the computer system.
- No one having the capacity of solving the computations (complex) fastest than any computer.
- Its can be the feature by which connection of the network between a server and a switch can't be improved by the collection of link.
The other three options A, C and D can't be the features of network connection as they are not related to the given statement.
Answer:
Looks like it is a multiple choice question
and you didn't give any choice
Answer:
The correct answer will be "Parity".
Explanation:
- Parity seems to be a methodology that tests when information is transferred or missing or overwritten when something is transferred between one storage location to another, and then it is communicated between processors or devices.
- It would be used whilst also contrasting the container as well as the aggregated parity to evaluate or dual inspect for inaccuracies.
Answer:
Space technology. Space technology is technology developed by space science or the aerospace industry for use in spaceflight, satellites, or space exploration. Space technology includes spacecraft, satellites, space stations, and support infrastructure, equipment, and procedures and space warfare. Launched into orbit in 1990, the Hubble truly is one of the greatest space instruments in the history of humanity. And it has been updated significantly in the twenty-first century. But the truth is, space exploration technology, and other discoveries and technologies that arise because of it, are incredibly influential and beneficial; not only does space research improve the economy by keeping scientists and engineers employed
Explanation: