Given that the resistors that can be used in the lab have a maxpower rating of 1/8W and the logical voltage values will be 0V or5V at the input, determine an appropriate size for the requiredresistor assuming a .7V drop across the diodes in thediode/resistor AND and OR logic gates. Further, knowing thatthe voltage drop across the diode will be about .7V when itconducts, determine truth table that shows the voltages at theinputs and outputs for various inputs possible in these circuits.