Question: Write a C++ program that prompts the user to input an unsigned value for an unsigned short variable x, doubles x sixteen times using the

Write a C++ program that prompts the user to input an unsigned value for an unsigned short variable x, doubles x sixteen times using the left shift operator, and prints the x each time. (Hints: 1. to declare an unsigned short variable, you can use unsigned short int or u_int16 as variable type 2 . to double the variable value, you can apply shift 1 bit left using \&x data type as short int or int 16 and run your program again for input 25. 4. Take a screenshot of the result (3pt) and interpret the output that your program prints. Are all the written results positive? If not, write here what the reason is for the negative results. (3pt)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
