Answer:
C++ Code:
void sort3(double &a, double &b, double &c)
{
if(a > b)
swapdoubles(a,b);
if (b > c)
swapdoubles(b,c);
if (a > b)
swapdoubles(a,b);
}
Explanation:
To change the values of a,b,c within the function, we pass the values by reference. Let us assume that number a = 3.14, b = 2.71, c = 3.04. Since a > b, values of a and b will be swapped.Now a = 2.71 and b = 3.14. Similariy, since b > c, they will be swapped. This way, we move the largest number to its correct position in the first two steps. If there are only three numbers, and the largest number is in its correct position, then for the two remaining numbers, we will only need atmost one swap to exchange their positions. hence, we perform a comparison of a > b once again to see if the b is smaller than a. if its not, then all a,b,c are in sorted order.
Answer:
12 bits
Explanation:
With 12 bits you can represent numbers from 0 to 2¹²-1, i.e. 0 to 4095.
To check: with 11 bits you can only represent up to 2047, so that's not enough.
In general, to calculate the number of bits without trial and error, you can take the ²log of the number you want to represent and then round up:
²log(3001) = log(3001)/log(2) ≈ 11.55, rounded up is 12.
The thing that should be done is to add kenyan.msn.pl to the email blacklist.
<h3>What is phishing?</h3>
It should be noted that phishing simply means an attempt to steal ones money by taking the users information online.
In this case, the thing that should be done is to add kenyan.msn.pl to the email blacklist.
Learn more about phishing on:
brainly.com/question/2537406
#SPJ12