Question: Hi guys. I need little help writing a C program using the bit-level operators. decimal and binary 1) Ask the user for one of the

Hi guys. I need little help writing a C program using the bit-level operators. decimal and binary

Hi guys. I need little help writing a C program using the

1) Ask the user for one of the bit-level operators: 1, &,^,^ a. The code should loop and ask for new input if the user gives anything else. b. You can use a menu here, or ask the user to type the desired operator. 2) Ask the user for two 8-bit binary numbers (or, just one if was selected) a. You will store user input in C-strings using scanf, b. Perform input validation to ensure the binary number(s) is/are actually 8 bits long. 3) Convert the user input into a decimal number so we can apply the selected bit-level operat a. Recall how we used strtoul in the example in class. 4) Apply the bit-level operator and print the result in decimal and binary

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!