blob: c4c4d506087fcf64ccbbebbb28707305ae8c4bb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
v=120;
r=150;
disp("Part a");
i=v/r;
disp("current flowing through the resistor (in A) is"); disp(i);
disp("Part b");
r1=50;
v1=i*r1;
disp("The new emf required (in V) is"); disp(v1);
disp("Part c");
i2=50*10^(-3);
v2=60;
r2=v2/i2;
disp("the resistance must be increased to a value (in Ω) of"); disp(r2);
|