blob: 2666f687bf09b9931e67f9a82c4240229eb7507e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
disp("Part a");
v=120;
i=20;
p=v*i;
disp("the maximum power (in W) that can be delivered is"); disp(p);
disp("Part b");
p1=3.3*10^3;
i1=15;
v1=p1/i1;
disp("the voltage applied (in V) must be"); disp(v1);
disp("Part c");
p2=40;
v2=120;
i2=p2/v2;
disp("The current (in A) drawn is"); disp(i2);
|