Answer:
// here is code in c++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{ // variable to store number of loads
int n;
cout<<"enter the number of servers:";
// read the number of servers
cin>>n;
// create an integer array of servers of size n
int server_load[n];
// read the load of each server
cout<<"enter the loads on each server:"<<endl;
for(int x=0;x<n;x++)
{
cin>>server_load[x];
}
// sort the array
sort(server_load,server_load+n);
int min_diff=MAX_INT;
// find the minimum absolute difference between the server load
for(int y=0;y<n-1;y++)
{
int d=server_load[y+1]- server_load[y];
if(d<min_diff)
min_diff=d;
}
// print the minimum difference
cout<<"minimum absolute difference of server load is: "<<min_diff<<endl;
return 0;
}
Explanation:
Read the number of servers from user and assign it to "n".Create an integer Array of size n to store the load on each server.Read the load of each server and store in the array. Sort the array. Then find the minimum difference between two load of servers. Print the minimum difference.
Output:
enter the number of servers:6
enter the loads on each server:
12 45 5 9 3 24
minimum absolute difference of server load is: 2
Answer:
Spyware
Explanation:
The reason why you noticed your computer has been running slow is because of spyware, which is considered to be very bad to get on your computer. When a user opens his/her web browser, the user receives ads that are misleading to the user, which fools the user of thinking it's something real and not a scam. Not only that, the user also receives pop-up ads that can, as mentioned, trick the user to think that it's real and not fake. Finally, the user's search results will be manipulated. In conclusion, spyware is, in fact, the main cause of the scenario.
Answer:
Option A is the correct answer.
Explanation: