Question: Write a C++ program that does the following: Prompt the User to enter an unsigned long integer (Range: 0 to 18,446,744,073,709,551,615). Validate this entry as
Write a C++ program that does the following:
Prompt the User to enter an unsigned long integer (Range: 0 to 18,446,744,073,709,551,615).
Validate this entry as an unsigned integer and reject invalid entries.
Prompt the User to enter a 2nd unsigned long integer (Range: 0 to 18,446,744,073,709,551,615). Prompt the User to ensure that this value is greater than the first integer entered.
Validate this entry as an unsigned long, long integer and reject invalid entries.
Each input value or entry must be labeled. Align the displayed binary values so that the entered values and any output value are aligned horizontally such that Bit 0 of each entry or output value is directly above or below Bit 0 of all other input values or output results.
Add the two values together. 8.) Display each of the three values left-to-right as (a) binary, (b) hexadecimal, and (c) decimal.
Pause the screen, prompting the User to press any key to continue.
Thank you, any help is appreciated
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
