Answer:
Following are the code to the given question:
#include <iostream>//header file
using namespace std;
int NumberOfPennies(int ND, int NP=0)//defining a method that accepts two parameters
{
return (ND*100 +NP);//use return keyword that fist multiply by 100 then add the value
}
int main() //main method
{
cout << NumberOfPennies(5,6) << endl; // Should print 506
cout << NumberOfPennies(4) << endl; // Should print 400
return 0;
}
Output:
506
400
Explanation:
In the method "NumberOfPennies" it accepts two parameters that are "ND and NP" that uses the return keyword that multiply 100 in ND variable and add in NP variable and return its values.
In the main method it it uses the cout method that call the by accepts value in parameter and print its value.
Answer:
a. 0.01
b. 0.001
c. The identification field of the packet fragment can be used to uniquely identify and collate the fragments lost in transmission.
Explanation:
The probability of losing a packet is 10% or 0.1, so the probability of losing the packet twice during transmission;
= 0.1 x 0.1 = 0.01
When any fragments have been part of the transmission, the probability of the packet is dependent on the fragments;
= 0.01 x 0.1 = 0.001
The identification field is a unique 16-bit value assigned to an IPv4 packet, when a packet is fragmented for transmission, its field is used to collate the unique fragments in the packet.
Answer:
The default location for local logon scripts is
- the Systemroot\System32\Repl\Imports\Scripts folder
Answer:
ASK
Explanation:
The correct answer is ASK which denotes Amplitude Shift Keying. This is essentially a type of amplitude modulation which represents the binary data that comes varied forms right in the amplitude of a signal.
Now the reason why It is the most susceptible technique to noise is due to the fact that between frequency, phase & amplitude, amplitude is the one that is most susceptible to being affected by noise when compared to the other two.