Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1.) Using the construct sizeof(), determine the size of unsigned long integers (declare them as long long unsigned) on your computer. Display the result on

  1. 1.) Using the construct sizeof(), determine the size of unsigned long integers (declare them as

    long long unsigned) on your computer. Display the result on the console (monitor).

  2. 2.) Prompt the User to enter an unsigned long integer (Range: 0 to 18,446,744,073,709,551,615).

  3. 3.) Validate this entry as an unsigned integer and reject invalid entries.

  4. 4.) 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.

  5. 5.) Validate this entry as an unsigned long, long integer and reject invalid entries.

  6. 6.) 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.

  7. 7.) Add the two values together.

  8. 8.) Display each of the three values left-to-right as (a) binary, (b) hexadecimal, and (c) decimal.

  9. 9.) Pause the screen, prompting the User to press any key to continue.

  10. 10.) Examine the binary representation of the sum and note its value.

  11. 11.) When a key is pressed, clear the screen, redraw the two entered integer values, and execute (12)

  12. 12.) Subtract the second value that was entered from the first. Remember that the result will be

    negative so you must store the difference in an integer that can be either positive or negative.

  13. 13.) Display each of the three values left-to-right as (a) binary, (b) hexadecimal, and (c) decimal.

  14. 14.) Pause the screen, prompting the User to press any key to continue.

  15. 15.) Examine the binary representation of the difference and note how a negative value is formed.

  16. 16.) When a key is pressed, clear the screen, redraw the two entered integer values, and execute (17)

  17. 17.) Using the bitwise operator &, logically AND these two integers.

  18. 18.) Display each of the three values left-to-right as (a) binary, (b) hexadecimal, and (c) decimal.

  19. 19.) Pause the screen, prompting the User to press any key to continue.

  20. 20.) Examine the binary representation of the sum and note its value.

  21. 21.) When a key is pressed, clear the screen, redraw the two entered integer values, and execute (22)

  22. 22.) Using the bitwise operator |, logically OR these two integers.

  23. 23.) Display each of the three values left-to-right as (a) binary, (b) hexadecimal, and (c) decimal.

  24. 24.) Pause the screen, prompting the User to press any key to continue.

  25. 25.) Examine the binary representation of the sum and note its value.

  1. 26.) When a key is pressed, clear the screen, redraw the two entered integer values, and execute (27)

  2. 27.) Using the bitwise operator ^, logically XOR these two integers.

  3. 28.) Display each of the three values left-to-right as (a) binary, (b) hexadecimal, and (c) decimal.

  4. 29.) Pause the screen, prompting the User to press any key to continue. Examine the result.

  5. 30.) Examine the binary representation of the sum and note its value.

  6. 31.) When a key is pressed, clear the screen, redraw the two entered integer values, and execute (32)

  7. 32.) Using the bitwise operator ~, logically NOR the first integer.

  8. 33.) Display each of the three values left-to-right as (a) binary, (b) hexadecimal, and (c) decimal.

  9. 34.) Pause the screen, prompting the User to press any key to continue.

  10. 35.) Examine the binary representation of the sum and note its value.

  11. 36.) When a key is pressed, clear the screen, redraw the two entered integer values, and execute (37)

  12. 37.) Using the unary operator -, negate the first integer. (Careful here!)

  13. 38.) Display each of the three values left-to-right as (a) binary, (b) hexadecimal, and (c) decimal.

  14. 39.) Pause the screen, prompting the User to press any key to continue.

  15. 40.) Examine the binary representation of the sum and note its value.

  16. 41.) When a key is pressed, clear the screen, redraw the two entered integer values, and execute (42)

  17. 42.) Prompt the User that a left shift operation will next be performed on the first integer. Prompt the

    User to enter the number of places this integer will be shifted.

  18. 43.) Qualify this number to ensure that (a) it is a positive number and (b) that is does not exceed 63.

  19. 44.) Using the left shift operator <<, perform a logical shift on the first integer.

  20. 45.) Display each of the three values left-to-right as (a) binary, (b) hexadecimal, and (c) decimal.

  21. 46.) Pause the screen, prompting the User to press any key to continue.

  22. 47.) Examine the binary representation of the sum and note its value.

  23. 48.) When a key is pressed, clear the screen, redraw the two entered integer values, and execute (49)

  24. 49.) Prompt the User that a right shift operation will be performed on the first integer. Prompt the User

    to enter the number of places this integer will be shifted.

  25. 50.) Qualify this number to ensure that (a) it is a positive number and (b) that is does not exceed 63.

  26. 51.) Using the right shift operator >>, perform a logical shift on the first integer.

  27. 52.) Display each of the three values left-to-right as (a) binary, (b) hexadecimal, and (c) decimal.

  28. 53.) Pause the screen, prompting the User to press any key to continue.

  29. 54.) Examine the binary representation of the sum and note its value.

  30. 55.) Upon the next press of a keyboard key, terminate the program.

C++

Please follow step 1 to 55 and write it as a complete program.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

More Books

Students also viewed these Databases questions

Question

3. What are potential solutions?

Answered: 1 week ago