computer science: c++ (QT) Hw
February 19th, 2023
Switching BitsWrite 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.