1. Calculate the two signed Int inputs (x=12 and y=-2) by Integer Arithmetic Operations with the
following Arithmetic Operations. Show that calculation by programming,
a. Multiplication, showing the output with decimal and hexadecimal formats (10 points).
b. Division, showing the output quotient with decimal and hexadecimal formats (10 points).
The x=12 is the dividend, and the y=-2 is the divisor.
Answer (screenshot) of the programming:
Answer (screenshot) of the output:
2. As you know, our Lab class starts at 8:30 am. Let's perform "Packed Time" and "Unpacked Time" as
our input, 8:30:59 am, by using Bit Manipulation and Mask Design.
a. Show the output with 'the generated hour, minute, and second along with "am" in decimal
format' (10 points).
b. Show the 'Packed Time output in hexadecimal format (10 points).
c. Show the output with 'Unpacked Time' hour, minute, and second along with "am" in the
decimal format (10 points).
Answer (screenshot) of the programming:
Answer (screenshot) of the output: