I currently have the display method down, but I am not sure where to go with the main method...
Write a program that uses bitwise operations to: (1) generate and display all power-of-two number in the range +128 to -128 and (2) dispaly an arbitrary user-input integer.
main method:
*declare int number = 128: got this
*include a while loop that loops while number is >=-128: I think i have this
*call the display method, which prints the value of its passed-in number parameter.
*if number is greater than zero, use the >>= operator to do one arithmetic right shift
*if number equals zero, use the ~ oeprator to complement it.
* if number is less than zero, use the <<= operator to do one left shift.
* after the while loop, ask the user to input any number, and call the display method to print that number.
Any sort of help would be greatly appreciated!