You are on page 1of 3

Filename:MTO.

EMPT
ClrText:ClrGraph:Norm 1
AxesOff
"=":Locate 1,1,"======MTO.EMPT======"
"LUZ TOTAL"?L
Locate 10,2," "
Locate 11,2,L
Locate 1,3,"TIPO DE CARGA"
Locate 1,4,"[1]PUNTUAL"
Locate 1,5,"[2]DISTRIBUIDA"
Locate 1,6,"[3]VARIABLE"
Locate 1,7,"HECHO EN PERU 2012"
Do
Getkey
LpWhile (-72)(-62)(-52)
=721
=622
=523
=734
ClrGraph
ViewWindow L5,L+L5,1,L3,L1.7,1
F-Line 0,0,L,0
F-Line 0,Y8,0,Y8
F-Line L,Y8,L,Y8
F-Line 0,L6,0,L6
F-Line L,L6,L,L6
L17X
F-Line X,L6,0,L6
F-Line L,L6,L+X,L6
F-Line X,L12,0,L12
F-Line L,L12,L+X,L12
F-Line X,0,0,0
F-Line L,0,L+X,0
F-Line X,L12,0,L12
F-Line L,L12,L+X,L12
F-Line X,L6,0,L6
F-Line L,L6,L+X,L6
Text 38,9,"A"
Text 38,117,"B"
Text 45,57,"L="
Text 45,66,L
Text 1,7,"MA "
Text 1,80,"MB "
Text 57,7,"RA "
Text 57,80,"RB "
ClrText
Fix 4
If =1
Then "X"?A
"CARGA P"?P
Text 51,57,"P:"
Text 51,66,P

F-Line A,L2.000000000000001,A,0
F-Line A-A9,A2.9,A,0
F-Line A,0,A+A9,A2.9
L-AB
PABLM
PABLN
PBL^3(L+2A)R
PAL^3(L+2B)S
Text 1,22,M
Text 1,97,N
Text 57,22,R
Text 57,97,S
IfEnd
If =2
Then "X1"?A
"X2"?F
L-FC
"W"?W
L-A-CB
.5B+AD
.5B+CE
WB(4L^3)(4E(L+2D)-B(C-A))R
WB-RS
WB(24L)(B(L+3(C-A))-24ED)M
RL-WBE+MN
L3.7Y
AX
F-Line A,Y,F,Y
F-Line X,Y,X,0
F-A
Int (8(F-A)L)+1I
I
For 1J To I
+XX
F-Line X,Y,X,0
Next
If X>F-A
Then FX
F-Line X,Y,X,0
IfEnd
Text 51,57,"W:"
Text 51,66,W
Text 1,22,M
Text 1,97,N
Text 57,22,R
Text 57,97,S
IfEnd
If =3
Then
"X1"?A
"X2"?F
"CARGA W"?W

L-FC
L-A-CB
13B+CE
L-ED
WB(540L^3)(56B^3-45B(L-2A)+270E(L+2D))R
WB2-RS
WB(540L)(B(30L-45A-28B)-270DE)M
M+RL-WBE2N
WB2-RS
F-Line A,0,A+B,L3
A+B8X
L(3B)
AL3BZ
X-ZY
Int (8BL)+1I
For 1J To I
F-Line X,Y,X,0
X+BIX
X-ZY
Next
If X>A+B
Then A+BX
X-ZY
F-Line X,Y,X,0
IfEnd
Text 51,57,"W"
Text 51,66,W
Text 1,22,M
Text 1,97,N
Text 57,22,R
Text 57,97,S
IfEnd
"END"