Design a decade counter using the excess-3 code for decimal digits. Use NAND gates and the indicated flip-flop types. (a) Use D flip-flops. (b) Use J-K flip-flops. (c) Use T flip-flops. (d) Use S-R flip-flops.

BE 1500 – Fall 2016 Homework 1 Solutions 1. Solution >> format short >> a=4*5*cos(pi/3)-(log(1.24))^(1/3)*tan(pi/3) a = 8.9622 1/2 2. Solution >> b=(2*tand(30))^2/15-log10(14)*exp(1/8)/12-25/(12+sind(30)) b = -2.0193 1/2 3. Solution >> format long >> c=17^(1/2) c = 4.123105625617661 >> c=sqrt(17) c = 4.123105625617661 >> c=nthroot(17,2) c = 4.123105625617661 1 4. Solution a. >> format short e >> cosd(45) ans = 7.0711e-01 1/2 b. >> tan(2*pi/3) ans = -1.7321e+00 1/2 c. >> exp(2/3) ans = 1.9477e+00 1/2 d. >> log10(27) ans = 1.4314e+00 1/2 e. >> log