Question: Do the following. ( 5 pts ) . a . Declare a variable and initialize it to a boolean value. b . Declare another variable
Do the following. pts
a Declare a variable and initialize it to a boolean value.
b Declare another variable and initialize it to an integer value.
c Declare the third variable and initialize it to a float.
d Convert your float value to an integer and print it
e Declare a variable of type byte and store your integer value b in it Print the byte value. Use bin to preserve the binary representation inside print function
Obtain the operation results of the following expressions. Show your solution for each expression result pts
a
b
c
d
e
Obtain the operation results of the following expressions. Show your solution for each expression result pts
a in binary representation.
b
c or
d and
e int
Obtain the operation results of the following expressions. Show your solution for each expression result pts
a & in binary
b & &
cbb & in binary
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
