Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C++ Program with 2 functions 1. Hamming Functions Tester Write a function that d

ID: 3592916 • Letter: C

Question

C++ Program with 2 functions

1. Hamming Functions Tester Write a function that displays a menu to test the functions from 2 - 4. You must call the functions from 2 - 4 and cannot reimplement their functionality in this function. The menu is displayed as follows: 1) Enter a 4-bit message to encode into a 7-bit Hamming message. 2) Enter a 7-bit Hamming message to transmit through a noisy channel. 3) Enter a 7-bit Hamming message to receive and correct. 4) Quit. If the user selects 1, the function from Problem 2 is used and so on. All requests for input from the user should be handled inside of this function, and all output to the screen should also be handled inside of this function. Use a while loop to implement the quitting mechanism.

2. Hamming Transmitter Write a function that takes as input a 4-bit string of 0’s and 1’s. Output the 7-bit encoded message. For example, if the passed parameter is 1011, the output should be 0110011.

Explanation / Answer

int hamming(int ar1[],int ar2[]){ int i,count; int res[BITS]; for(i=0;i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote