I think d is the right answer
Let the message be M : 1001 0001 and the generator function is G : 1001
Solution :
CRC sender
<u> </u>
1001 | 1001 0001 000
<u> 1001 </u>
<u> 0000 0001 </u>
1000
<u> 1001 </u>
0001 000
<u> 1 001 </u>
0001
Here the generator is 4 bit - 1, so we have to take three 0's which will be replaced by reminder before sending to received--
eg 1001 0001 001
Now CRC receiver
<u> </u>
1001 | 1001 0001 001
<u> 1001 </u>
0000 0001
<u> 1001 </u>
1000
<u> 1001 </u>
0001 001
<u> 0001 001 </u>
0000
No error
Answer:
The program in C++ is as follows:
#include <iostream>
#include <vector>
using namespace std;
int main(){
vector<int> nums;
int num;
cin>>num;
while(num != -1){
nums.push_back(num);
cin>>num; }
for (auto i = nums.begin(); i != nums.end(); ++i){
cout << *i <<endl; }
return 0;
}
Explanation:
This declares the vector
vector<int> nums;
This declares an integer variable for each input
int num;
This gets the first input
cin>>num;
This loop is repeated until user enters -1
while(num != -1){
Saves user input into the vector
nums.push_back(num);
Get another input from the user
cin>>num; }
The following iteration print the vector elements
<em> for (auto i = nums.begin(); i != nums.end(); ++i){
</em>
<em> cout << *i <<endl; }
</em>
Meaningful use (MU) i<span>s a term used to define those providers or hospitals that have the capabilities and processes in place to be actively use certified electronic health record technology.
</span><span>This term is used in a health information technology (HIT) context.
</span><span> It defines minimum U.S. government standards for </span>using<span> electronic health records (EHR) and for exchanging patient clinical data between healthcare providers.</span>