Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

84. Input 2 integers x, y [ -231,231-1 ], then output 1s complement of x, x, y, x bitwise-and y, x bitwise-inclusive-or y, x bitwise-exclusive-or

84. Input 2 integers x, y [ -231,231-1 ], then output 1s complement of x, x, y, x bitwise-and y, x bitwise-inclusive-or y, x bitwise-exclusive-or y all as 32-bit unsigned binary integers. No negative signs should show up in the output. Here is an example of properly formatted output x? 123 y? 456 x = 00000000000000000000000001111011 y = 00000000000000000000000111001000 ~x = 11111111111111111111111110000100 x & y = 00000000000000000000000001001000 x | y = 00000000000000000000000111111011 x ^ y = 00000000000000000000000110110011

I need it in python

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_2

Step: 3

blur-text-image_3

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

Database Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions