Question: A code contains two variables: A1 and A2. The logic of the code requires that if A1 is greater or equal that A2, then a

A code contains two variables: A1 and A2. The logic of the code requires that if A1 is greater or equal that A2, then a third variable A3 receives the binary value "00110011". In the case A2 is greater than A1, then A3 must be assigned the binary value "11110011"

Express this logic using the Ternary operator. write the assigned values in the required number system (Binary)

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!