Question: Help with C++ using Visual Studios please Write a program to store 4 variables called bit3, bit2, bit1, bit0 - each bit will hold either
Help with C++ using Visual Studios please

Write a program to store 4 variables called bit3, bit2, bit1, bit0 - each bit will hold either the character '1' or the character '0'. You decide what each bit variable should be initialized to. Your program needs to use the bit positions and solve for the decimal number those bits represent. For example, 1010 represents the decimal number 10 (ten). If bit positions were 0110, then the decimal representation would be 6. Your program should output the decimal representation. Challenge yourself: Add to your program: Create a variable that stores an integer number between 0 and 127. Use that integer to display the ASCII character it represents and then print the 8 bit binary sequence for it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
