// Example 2.14 v=240; p=1000; //toaster reted at 1000 w R=v^2/p; // resistanc raring Imax=p/v; // Current rating v1=220; I=v1/R; // Current at 220 v p1=v1*I; disp(' Power rating is = '+string(p1)+' Watt'); disp(' there for the Power rating is less then original power. '); // p 28 2.14