Answer:
Take a photograph
Explanation:
Prints, such as fingerprint, bare foot prints and others are evidences at crime scene that a criminalist can use when carrying out examination, analysis so that a link between the scene, the victim as well as the offender can be created. Once a print is visualized by a criminalist, then the next thing is to take take a photograph of it, then further attempt to preserve it can then be made. The photographs can also stand as physical evidence.
Write a procedure that takes a positive integer as a parameter. If the number given to the procedure is no more than 30, the procedure should return the absolute difference between that number and 30
Question (continuation):
If the number is greater than 30, the procedure should return the number doubled.
Answer:
The procedure written in C++ is as follows:
void absdiff(int num){
if(num<=30){
num = abs(num - 30);
}
else{
num*=2;
}
cout<<num;
}
Explanation:
This defines the procedure
void absdiff(int num){
This checks if the integer parameter is not more than 30.
if(num<=30){
If yes, the absolute difference between 30 and the number is calculated
num = abs(num - 30);
}
If otherwise
else{
The number is doubled
num*=2;
}
This prints the processed result
cout<<num;
}
See attachment for complete program that includes the main
What happens when an arithmetic operator is applied to non-arithmetic data types such as Boolean or character
Answer:
Following are the code to this question:
#include<iostream>//defining header file
using namespace std;
int main()//defining main method
{
bool a = true;//defining bool variable that holds true value
bool b = false;//defining bool variable that holds false value
cout<<a+b<<endl;//using print method to add bool value
cout<<a-b<<endl;//using print method to subtract bool value
cout<<a*b<<endl;//using print method to multiply bool value
return 0;
}
Output:
1
1
0
Explanation:
In this code, Firstly we import the header file, and in the next step, the main method is defined, in this, two bool variable "a, b" is declared, that holds true and false value respectively, and in the next step, three print method is declared that adds, subtract, and multiply the given value and use print its calculated value.
Which threat hunting technique is best suitable when handling datasets that creates limited number of results
Answer:
Stacking
Explanation:
Threat hunting is searching through networks and datasets to see if their are suspicious or activities that are risky.
Stacking has to do with counting the frequency the frequency of occurrences for those values that are of o particular type. And then making an analysis) examination of the outliers of these results.
When the dataset is large or diverse, the effectiveness of the stacking technique reduces. It is best used with datasets that would give a finite number of results.