Answer and Explanation:
Using Javascript:
Class Dog{
var healthScores=[];
Constructor(name, age, ...healthScores) {this.name=name;
this.age=age;
this.healthsScores=healthScores;
}
checkObject(new Dog){
If(new Dog.name===this.name,new Dog.age===this.age, new Dog.healthScores===this.healthScores){return true;
}
else{
console.log("objects are not equal");
}
}
}
To call the method checkObject:
var Tesa = new Dog(Tes,1,[45,46,82]);
var Bingo = new Dog(bing,2,[43,46,82]);
Bingo.checkObject(Tesa);
Note: we have used ES6(latest version of Javascript) where we passed the healthScore parameter(which is an array) to our constructor using the spread operator.
Answer:
see explaination
Explanation:
function [] =
inverse(A,B)
da = det(A);
disp("The det of A is");
disp(da);
inva = inv(A);
disp("The inverse of A is");
disp(inva);
x = inva*B;
disp("The value of X is");
disp(x);
rk = rank(A);
disp("The rank of X is");
disp(rk);
Di = eig(A);
disp("The eigen values of A is");
disp(Di);
[V,Di] = eig(A);
disp("The eigen vectors of A are (Each column represents one column vector)");
disp(V);
end
A = [1,2;4,5];
B = [1,2;4,5];
inverse(A,B);
%ab = [num2str(t)," ",num2str(dx)," ",num2str(dy)];
%disp(ab);
You manage small LAN for a branch office. The branch office has three file servers and few client workstations. You want to use Ethernet device and offer guaranteed bandwidth to each server. You design the network by <u>connecting all network devices to a switch. Connect each server to its own switch port.</u>
<u></u>
Explanation:
- A local-area network (LAN) is a computer network that spans a relatively small area.
- Most often, a LAN is confined to a single room, building or group of buildings, however, one LAN can be connected to other LANs over any distance via telephone lines and radio waves.
- The LAN is the networking infrastructure that provides access to network communication services and resources for end users and devices spread over a single floor or building.
- Designing a LAN for the campus use case is not a one-design-fits-all proposition.
- If there is a single 48-port switch, 47 devices can be supported, with only one port used to connect the switch to the rest of the network, and only one power outlet needed to accommodate the single switch
Answer:
Five provisions of cyber ethics are:
Your computer or system should not be used to harm others. Your cyber knowledge should not be used to steal other people's resources. One should not use or copy softwares for which you have not paid. ... Never use other people's resources without their consent.