//example 7.4(c)//
clc
//clears the screen//
clear
//clears all variables//
disp('D7 is active. Since D7 has the highest priority, it will be encoded irrespective of the logic status of other inputs. Therefore, the output bits are A=0, B=0 and C=0')