Question: Question 3 - Number systems Use a properly formatted While Loop to input a positive integer from via cin. For each number entered, print on

Question 3- Number systems
Use a properly formatted While Loop to input a positive integer from via cin. For each number entered, print on the same line:
The number entered in decimal.
The binary representation.
The hexadecimal representation
.
Then add one to the number and print the three representation again.
The program should loop until 99 is entered.
Example:
Input number: 4
Decimal: 4, Binary: 0000000000000100, Hex: 00000004.
Adding 1 to 4dots
Decimal: ,5, Binary: 0000000000010101, Hex: 00000015.
Enter number:
Test your program with the following Decimal inputs:
0,5,15,120,127,65535,-65535,2147483647,-1
 Question 3- Number systems Use a properly formatted While Loop to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!