1,000,000 bytes are in 1 megabyte.
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:
Kindly check Explanation
Explanation:
Advancement in technology spurred largely due to the advent of the computer and internet has resulted in a notable change in the behavior, lifestyle and engagement of many individuals. This include ; providing a faster and more convenient way of computing and completing tasks. Accelerating the global rate of technological development due to great computing capabilities. Educational enhancement and development through online education.
Computing also pose some societal issues which needs to addressed. This include :
Issues regarding privacy and identity theft are widespread. Addiction to games and other engaging content often pose distraction to youth and child development. Computing could be said to have placed increased pressure on human power and engagement with the advent of automated robots and programs. Increased exposure to electromagnetic rays. Promotion of indecency and immoral contents has become increasingly easier. Peer influence through fake promotion and display of wealth by some overrated individuals.
Therefore, it is imperative that informations conveyed through the internet are treated with utmost confidentiality in other to avoid privacy issues which may arise from leakage.
The answer is Field research