1 2 3 4 5 6 7 8
disp("Part a"); v=120; i=8; r=v/i; disp("The resistance of the element (in Ω) is"); disp(r); v1=240; r1=v1/i; disp("The resistance of the element (in Ω) is"); disp(r1);