Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. data.txt 1100100000111111101010010010011010101110110110111010011111100100000000010100011011000000100101100011111000101011000111100010111010001000111111111110100000100101010101110010000101001011000011010111011010110110010001101111110100000001101100000101011001000100001110001001111001100011101111010100110010110100110110100111101111011110010010010101111100011010001000111010010110001101000011010110000001101101101001001101111010111011110000001010001110011000101100001001100010010001010110010011101110100010111100000011111000010101010011100110101011100010101010001100010111110010101111111001100000110111111010100111111000110011101001010010111100110001010110001001110010110110100011010111100110111110101111100101001010001101110101100011100001111001001011100010111010100011000101111101110110111111000010000011000101101011001110010011111001001100000011010011100100000001110111100000110000101010001110000001101011011001000111010111110011010010100111111100101111010000100001111100101001101011000011011111010100110001 2. fc.txt 0111100101000111011001011111010000010111000010110100011100110001010001010000100100101101110000101011110011011001100111001000111001100111110001100110011111000011101101110010010001111110110001100010001101110110010111100100100101101010000111110111100111101101100110110010110100001001001010101100000100110100111100111001010101011110100010010011111011111011100111010001100011010100111111011001001110100010101000100000010001101001101010101100101010000010001111101111110111101100001100101101001010001110111010011010111001111110110110000100110011101111111101100111101000011000100110010110001110010111100010001101000101100111101010111101011000110010011100011101111111011100111110000110111011010110111000010010011010100001111110110111010100010110110110110101011110100011110101011001010010100001101001000111110100111001010100100010110101111001011100100001010100001001111000000110011001111011100110000110100110110111001011001111010101111011101110011111110100010100100001101101000001110001110101101011110100101011 3. PN.txt 0101011011010101111001010011111100001011000101111111000001001010100000010111011000011010111100100000100101100001000010100111111000110110001100100111100101000111011001011111010000010111000010110100011100110001010001010000100100101101110000101011110011011001100111001000111001100111110001100110011111000011101101110010010001111110110001100010001101110110010111100100100101101010000111110111100111101101100110110010110100001001001010101100000100110100111100111001010101011110100010010011111011111011100111010001100011010100111111011001001110100010101000100000010001101001101010101100101010000010001111101111110111101100001100101101001010001110111010011010111001111110110110000100110011101111111101100111101000011000100110010110001110010111100010001101000101100111101010111101011000110010011100011101111111011100111110000110111011010110111000010010011010100001111110110111010100010110110110110101011110100011110101011001010010100001101001000111110100111001010100100010110101111001011100100001010100001001 4. Sample_out.txt 110010000011111110101001001001101010111011011011101001111110010000000001010001101100000010010110001111100010101100011110001011101000100011111111111010000010010101010111001000010100101100001101011101101011011001000110111111010000000110110000010101100100010000111000100111100110001110111101010011001011010011011010011110111101111001001001010111110001101000100011101001011000110100001101011000000110110110100100110111101011101111000000101000111001100010110000100110001001000101011001001110111010001011110000001111100001010101001110011010101110001010101000110001011111001010111111100110000011011111101010011111100011001110100101001011110011000101011000100111001011011010001101011110011011111010111110010100101000110111010110001110000111100100101110001011101010001100010111110111011011111100001000001100010110101100111001001111100100110000001101001110010000000111011110000011000010101000111000000110101101100100011101011111001101001010011111110010111101000010000111110010100110101100001101111101010011000110101100000110001010110101101100001110000100010001001010100010110100100001000011100100000100001101010101001101000101101000000101111110001010101101011010101000111110110000110100000010011111111100110010101111000100000100011000010001011111001010010001010110001010001010001110101010000100010011101001010101101101010111100101001111110000101100010111111100000100101010000001011101100001101011110010000010010110000100001010011111100011011000110010011110010100011101100101111101000001011100001011010001110011000101000101000010010010110111000010101111001101100110011100100011100110011111000110011001111100001110110111001001000111111011000110001000110111011001011110010010010110101000011111011110011110110110011011001011010000100100101010110000010011010011110011100101010101111010001001001111101111101110011101000110001101010011111101100100111010001010100010000001000110100110101010110010101000001000111110111111011110110000110010110100101000111011101001101011100111111011011000010011001110111111110110011110100001100010011001011000111001011110001000110100010110011110101011110101100011001001110001110111111101110011111000011011101101011011100001001001101010000111111011011101010001011011011011010101111010001111010101100101001010000110100100011111010011100101010010001011010111100101110010000101010000100111100000011001100111101110011000011010011011011100101100111101010111101110111001111111010001010010000110110100000111000111010110101111010010101111110101111010110100101001010100110101001011100010110000011011111000110010010010010111010110110110011000010110101010101011011110110110100100100111010010010101110101000100111001101011111011011110110011101000011000101011001101111000011100000010100101100000100010000011001001000100011011001000101011110101011100011011101010101000110110011111011001010101011001101011101000100101111011011000001011010000111000110110110001001000010100010111111000110000101000110101011110011011101101011111101110011100111100111011111000100100011000011111100010010100000101101110011011 You are to write a C/C++ program to simulate a modulation process for

image text in transcribed

1. data.txt

1100100000111111101010010010011010101110110110111010011111100100000000010100011011000000100101100011111000101011000111100010111010001000111111111110100000100101010101110010000101001011000011010111011010110110010001101111110100000001101100000101011001000100001110001001111001100011101111010100110010110100110110100111101111011110010010010101111100011010001000111010010110001101000011010110000001101101101001001101111010111011110000001010001110011000101100001001100010010001010110010011101110100010111100000011111000010101010011100110101011100010101010001100010111110010101111111001100000110111111010100111111000110011101001010010111100110001010110001001110010110110100011010111100110111110101111100101001010001101110101100011100001111001001011100010111010100011000101111101110110111111000010000011000101101011001110010011111001001100000011010011100100000001110111100000110000101010001110000001101011011001000111010111110011010010100111111100101111010000100001111100101001101011000011011111010100110001

2. fc.txt

0111100101000111011001011111010000010111000010110100011100110001010001010000100100101101110000101011110011011001100111001000111001100111110001100110011111000011101101110010010001111110110001100010001101110110010111100100100101101010000111110111100111101101100110110010110100001001001010101100000100110100111100111001010101011110100010010011111011111011100111010001100011010100111111011001001110100010101000100000010001101001101010101100101010000010001111101111110111101100001100101101001010001110111010011010111001111110110110000100110011101111111101100111101000011000100110010110001110010111100010001101000101100111101010111101011000110010011100011101111111011100111110000110111011010110111000010010011010100001111110110111010100010110110110110101011110100011110101011001010010100001101001000111110100111001010100100010110101111001011100100001010100001001111000000110011001111011100110000110100110110111001011001111010101111011101110011111110100010100100001101101000001110001110101101011110100101011

3. PN.txt

0101011011010101111001010011111100001011000101111111000001001010100000010111011000011010111100100000100101100001000010100111111000110110001100100111100101000111011001011111010000010111000010110100011100110001010001010000100100101101110000101011110011011001100111001000111001100111110001100110011111000011101101110010010001111110110001100010001101110110010111100100100101101010000111110111100111101101100110110010110100001001001010101100000100110100111100111001010101011110100010010011111011111011100111010001100011010100111111011001001110100010101000100000010001101001101010101100101010000010001111101111110111101100001100101101001010001110111010011010111001111110110110000100110011101111111101100111101000011000100110010110001110010111100010001101000101100111101010111101011000110010011100011101111111011100111110000110111011010110111000010010011010100001111110110111010100010110110110110101011110100011110101011001010010100001101001000111110100111001010100100010110101111001011100100001010100001001

4. Sample_out.txt

110010000011111110101001001001101010111011011011101001111110010000000001010001101100000010010110001111100010101100011110001011101000100011111111111010000010010101010111001000010100101100001101011101101011011001000110111111010000000110110000010101100100010000111000100111100110001110111101010011001011010011011010011110111101111001001001010111110001101000100011101001011000110100001101011000000110110110100100110111101011101111000000101000111001100010110000100110001001000101011001001110111010001011110000001111100001010101001110011010101110001010101000110001011111001010111111100110000011011111101010011111100011001110100101001011110011000101011000100111001011011010001101011110011011111010111110010100101000110111010110001110000111100100101110001011101010001100010111110111011011111100001000001100010110101100111001001111100100110000001101001110010000000111011110000011000010101000111000000110101101100100011101011111001101001010011111110010111101000010000111110010100110101100001101111101010011000110101100000110001010110101101100001110000100010001001010100010110100100001000011100100000100001101010101001101000101101000000101111110001010101101011010101000111110110000110100000010011111111100110010101111000100000100011000010001011111001010010001010110001010001010001110101010000100010011101001010101101101010111100101001111110000101100010111111100000100101010000001011101100001101011110010000010010110000100001010011111100011011000110010011110010100011101100101111101000001011100001011010001110011000101000101000010010010110111000010101111001101100110011100100011100110011111000110011001111100001110110111001001000111111011000110001000110111011001011110010010010110101000011111011110011110110110011011001011010000100100101010110000010011010011110011100101010101111010001001001111101111101110011101000110001101010011111101100100111010001010100010000001000110100110101010110010101000001000111110111111011110110000110010110100101000111011101001101011100111111011011000010011001110111111110110011110100001100010011001011000111001011110001000110100010110011110101011110101100011001001110001110111111101110011111000011011101101011011100001001001101010000111111011011101010001011011011011010101111010001111010101100101001010000110100100011111010011100101010010001011010111100101110010000101010000100111100000011001100111101110011000011010011011011100101100111101010111101110111001111111010001010010000110110100000111000111010110101111010010101111110101111010110100101001010100110101001011100010110000011011111000110010010010010111010110110110011000010110101010101011011110110110100100100111010010010101110101000100111001101011111011011110110011101000011000101011001101111000011100000010100101100000100010000011001001000100011011001000101011110101011100011011101010101000110110011111011001010101011001101011101000100101111011011000001011010000111000110110110001001000010100010111111000110000101000110101011110011011101101011111101110011100111100111011111000100100011000011111100010010100000101101110011011
You are to write a C/C++ program to simulate a modulation process for Direct Sequence Spread Spectrum. Details of the assignment are as follows: A thousand digit represented in binary PN (pseudonoise) sequence or c), which is provided in the text file named PN.txt. 1. 2. The input data dl) will also consist of one-thousand-digit binary stored in a text file named data.txt 3. Assume amplitude A is alternating the values is always 1 4. () and d() should be modulated to produce the propagated signal s() 5. The frequency carrier, cos(2rf) is also represented in binary which is provided in the file named fc.txt. The final expected output would be a bit stream of a propagated signal which satisfies the equation: (0)-Ad()c(t) cos(2tf Feel free to test your program using your own data sets d(t), c(t) and cos(2afe) in a lesser bits probably 5 or 10 later to make sure your program works for the actual thousand bit data sets. You are to write a C/C++ program to simulate a modulation process for Direct Sequence Spread Spectrum. Details of the assignment are as follows: A thousand digit represented in binary PN (pseudonoise) sequence or c), which is provided in the text file named PN.txt. 1. 2. The input data dl) will also consist of one-thousand-digit binary stored in a text file named data.txt 3. Assume amplitude A is alternating the values is always 1 4. () and d() should be modulated to produce the propagated signal s() 5. The frequency carrier, cos(2rf) is also represented in binary which is provided in the file named fc.txt. The final expected output would be a bit stream of a propagated signal which satisfies the equation: (0)-Ad()c(t) cos(2tf Feel free to test your program using your own data sets d(t), c(t) and cos(2afe) in a lesser bits probably 5 or 10 later to make sure your program works for the actual thousand bit data sets

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions