Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

computer science: c++ (QT) Hw

Switching Bits

Write a program that will ask a user which bit in a signed short int that they would like to switch its value (from 0 to 1 or 1 to 0). The program should display the contents of the short int in both binary form as well as giving the numeric value. Don't forget to do error checking! Unlike the other programs you've written, if the user entersĀ 16 for the bit to switch, the program will then end. All other input values should show an error message.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question