Question: Display a menu for the user to select: - Two's Complement Addition - If selected, prompt the user for the two decimal integers to add

 Display a menu for the user to select: - Two's Complement

Display a menu for the user to select: - Two's Complement Addition - If selected, prompt the user for the two decimal integers to add and the word size in bits - Calculate and display the Two's Complement sum of the two integers using Equation 2.13 from the textbook - Two's Complement Negation - If selected, prompt the user for a decimal integer to negate and the word size in bits - Calculate and display the Two's Complement negation of the integer using Equation 2.15 from the textbook - Two's Complement Multiplication - If selected, prompt the user for the two decimal integers to multiply and the word size in bits - Calculate and display the Two's Complement multiplication of the two integers using Equation 2.17 from the textbook - NOTE: Equation 2.17 also uses Equation 2.7 in the book for the Unsigned to Two's Complement conversion - Two's Complement Division by Power of Two - If selected, prompt the user for: - The decimal integer to divide and the power of 2 to divide by, which is " k " in Section 2.3.7 - Calculate the division of the integer by 2 to the power of k, with correct rounding for nonnegative and negative numbers according to the equations in Section 2.3.7 - Quit - If selected, exit the program - Otherwise, continue looping through the Menu

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!