Question: assignment 4 please help me get the correct code in C and thank you Write a program that lets a user manipulate bits individually in

Write a program that lets a user manipulate bits individually in a 4byte variable (int). The program should begin with all bits having zero. The program should enter a loop where it prints out current bit values as single integer using the 2 's complement model. It should then prompt the user to set a bit, clear a bit, or exit the program. If the user desires to set a bit or clear a bit, it should prompt the user for which bit, change the appropriate value and cycle back to the beginning of the loop. Menu: 1: to set the bit 2: to clear the bit Which bit 3: to print the integer 4: exit the program Any other number: to print "invalid choice" and print menu Submit the assignment with following details each will be graded to the scale of 010 with weightages as specified. 1. Statement of the problem (as given above) 2. Program Design (function hierarchy diagram) and program code (See the blackboard for explanation about hierarchy chart in course material folder) 3. Compilation results (copy from unix window and paste it to MSWORD file) 4. Show the results (copy from unix window and paste it to MSWORD file) 5. If the program has bugs, show you used debugger and show how you fixed the program (Get a screen shot and paste it to MSWORD file) 6. Conclusions Submit the assignment by dropping the MS word file in the drop box
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
