Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SET COLOR TO +7/8
- @5,68 SAY "C:\Users\MINEDUCYT\Desktop\FS cafe\omg.jpeg" BITMAP
- READ
- CLEAR
- @2,32 SAY "SUPERMARKET" FONT "Arial",24 STYLE "Bold"
- @0,135 SAY "C:\Users\MINEDUCYT\Desktop\FS cafe\logowasa.jpeg" BITMAP
- @38,10 SAY "Programador: sietede" FONT "Arial",11 STYLE "Bold"
- READ
- * Creando variables principales
- * Cantidad de productos
- C1 = 0
- C2 = 0
- C3 = 0
- C4 = 0
- C5 = 0
- * Nombre de los productos
- P1 = SPACE(13)
- P2 = SPACE(13)
- P3 = SPACE(13)
- P4 = SPACE(13)
- P5 = SPACE(13)
- * Precio de los prouctos
- PR1 = 0.00
- PR2 = 0.00
- PR3 = 0.00
- PR4 = 0.00
- PR5 = 0.00
- * El usuario pone el nombre del poducto a comprar
- @5,10 SAY "PRODUCTO" FONT "Arial" STYLE "Bold"
- @7,10 GET P1 FONT "Arial" STYLE "Bold" && Producto 1
- READ
- @9,10 GET P2 FONT "Arial" STYLE "Bold" && Producto 2
- READ
- @11,10 GET P3 FONT "Arial" STYLE "Bold" && Producto 3
- READ
- @13,10 GET P4 FONT "Arial" STYLE "Bold" && Producto 4
- READ
- @15,10 GET P5 FONT "Arial" STYLE "Bold" && Producto 5
- READ
- * El usuario pone la cantidad de productos a comprar
- @5,37 SAY "CANT" FONT "Arial" STYLE "Bold"
- @7,35 GET C1 FONT "Arial" STYLE "Bold" && Cantidad 1
- READ
- @9,35 GET C2 FONT "Arial" STYLE "Bold" && Cantidad 2
- READ
- @11,35 GET C3 FONT "Arial" STYLE "Bold" && Cantidad 3
- READ
- @13,35 GET C4 FONT "Arial" STYLE "Bold" && Cantidad 4
- READ
- @15,35 GET C5 FONT "Arial" STYLE "Bold" && Cantidad 5
- READ
- * El usuario pone el precio de cada producto
- @5,57 SAY "PRECIO" FONT "Arial" STYLE "Bold"
- @7,55 GET PR1 FONT "Arial" STYLE "Bold"
- READ
- @9,55 GET PR2 FONT "Arial" STYLE "Bold"
- READ
- @11,55 GET PR3 FONT "Arial" STYLE "Bold"
- READ
- @13,55 GET PR4 FONT "Arial" STYLE "Bold"
- READ
- @15,55 GET PR5 FONT "Arial" STYLE "Bold"
- READ
- * Saldra el total a pagar por producto
- T1 = C1 * PR1
- T2 = C2 * PR2
- T3 = C3 * PR3
- T4 = C4 * PR4
- T5 = C5 * PR5
- @5,82 SAY "TOTAL" FONT "Arial" STYLE "Bold"
- @7,80 GET T1 FONT "Arial" STYLE "Bold"
- READ
- @9,80 GET T2 FONT "Arial" STYLE "Bold"
- READ
- @11,80 GET T3 FONT "Arial" STYLE "Bold"
- READ
- @13,80 GET T4 FONT "Arial" STYLE "Bold"
- READ
- @15,80 GET T5 FONT "Arial" STYLE "Bold"
- READ
- @17,80 SAY "TOTAL A PAGAR" FONT "Arial" STYLE "Bold"
- * Suma de todos los totales
- TP = T1 + T2 + T3 + T4 + T5
- @19,80 GET TP FONT "Arial" STYLE "Bold"
- READ
- DES = 0
- @21,80 SAY "DESCUENTO:" FONT "Arial" STYLE "Bold"
- @23,80 GET DES FONT "Arial" STYLE "Bold"
- READ
- SUBT = TP*DES/100
- @25,80 SAY "EFECTIVO RESTADO" FONT "Arial" STYLE "Bold"
- @27,80 GET SUBT PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- SUBTT = TP-SUBT
- @29,80 SAY "SUB-TOTAL A PAGAR" FONT "Arial" STYLE "Bold"
- @31,80 GET SUBTT PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- EFECT = 0.00
- @17,105 SAY "EFECTIVO" FONT "Arial" STYLE "Bold"
- @19,105 GET EFECT FONT "Arial" STYLE "Bold"
- READ
- CAM = EFECT - SUBTT
- @21,105 SAY "SU CAMBIO" FONT "Arial" STYLE "Bold"
- @23,105 GET CAM PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- CLEAR
- retorno = "¿Desea usar otra vez el programa?"
- resultado = MESSAGEBOX (retorno,36, "SuperRMarket")
- IF resultado = 6
- DO supermercado.prg
- ELSE
- QUIT
- ENDIF
- CLEA
- * Creando variables principales
- * Cantidad de productos
- C1 = 0
- C2 = 0
- C3 = 0
- C4 = 0
- C5 = 0
- * Nombre de los productos
- P1 = SPACE(13)
- P2 = SPACE(13)
- P3 = SPACE(13)
- P4 = SPACE(13)
- P5 = SPACE(13)
- * Precio de los prouctos
- PR1 = 0.00
- PR2 = 0.00
- PR3 = 0.00
- PR4 = 0.00
- PR5 = 0.00
- * El usuario pone el nombre del poducto a comprar
- @5,10 SAY "PRODUCTO" FONT "Arial" STYLE "Bold"
- @7,10 GET P1 FONT "Arial" STYLE "Bold" && Producto 1
- READ
- @9,10 GET P2 FONT "Arial" STYLE "Bold" && Producto 2
- READ
- @11,10 GET P3 FONT "Arial" STYLE "Bold" && Producto 3
- READ
- @13,10 GET P4 FONT "Arial" STYLE "Bold" && Producto 4
- READ
- @15,10 GET P5 FONT "Arial" STYLE "Bold" && Producto 5
- READ
- * El usuario pone la cantidad de productos a comprar
- @5,37 SAY "CANT" FONT "Arial" STYLE "Bold"
- @7,35 GET C1 FONT "Arial" STYLE "Bold" && Cantidad 1
- READ
- @9,35 GET C2 FONT "Arial" STYLE "Bold" && Cantidad 2
- READ
- @11,35 GET C3 FONT "Arial" STYLE "Bold" && Cantidad 3
- READ
- @13,35 GET C4 FONT "Arial" STYLE "Bold" && Cantidad 4
- READ
- @15,35 GET C5 FONT "Arial" STYLE "Bold" && Cantidad 5
- READ
- * El usuario pone el precio de cada producto
- @5,57 SAY "PRECIO" FONT "Arial" STYLE "Bold"
- @7,55 GET PR1 FONT "Arial" STYLE "Bold"
- READ
- @9,55 GET PR2 FONT "Arial" STYLE "Bold"
- READ
- @11,55 GET PR3 FONT "Arial" STYLE "Bold"
- READ
- @13,55 GET PR4 FONT "Arial" STYLE "Bold"
- READ
- @15,55 GET PR5 FONT "Arial" STYLE "Bold"
- READ
- * Saldra el total a pagar por producto
- T1 = C1 * PR1
- T2 = C2 * PR2
- T3 = C3 * PR3
- T4 = C4 * PR4
- T5 = C5 * PR5
- @5,82 SAY "TOTAL" FONT "Arial" STYLE "Bold"
- @7,80 GET T1 FONT "Arial" STYLE "Bold"
- READ
- @9,80 GET T2 FONT "Arial" STYLE "Bold"
- READ
- @11,80 GET T3 FONT "Arial" STYLE "Bold"
- READ
- @13,80 GET T4 FONT "Arial" STYLE "Bold"
- READ
- @15,80 GET T5 FONT "Arial" STYLE "Bold"
- READ
- @17,80 SAY "TOTAL A PAGAR" FONT "Arial" STYLE "Bold"
- * Suma de todos los totales
- TP = T1 + T2 + T3 + T4 + T5
- @19,80 GET TP FONT "Arial" STYLE "Bold"
- READ
- DES = 0
- @21,80 SAY "DESCUENTO:" FONT "Arial" STYLE "Bold"
- @23,80 GET DES FONT "Arial" STYLE "Bold"
- READ
- SUBT = TP*DES/100
- @25,80 SAY "EFECTIVO RESTADO" FONT "Arial" STYLE "Bold"
- @27,80 GET SUBT PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- SUBTT = TP-SUBT
- @29,80 SAY "SUB-TOTAL A PAGAR" FONT "Arial" STYLE "Bold"
- @31,80 GET SUBTT PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- EFECT = 0.00
- @17,105 SAY "EFECTIVO" FONT "Arial" STYLE "Bold"
- @19,105 GET EFECT FONT "Arial" STYLE "Bold"
- READ
- CAM = EFECT - SUBTT
- @21,105 SAY "SU CAMBIO" FONT "Arial" STYLE "Bold"
- @23,105 GET CAM PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- CLEAR
- retorno = "¿Desea usar otra vez el programa?"
- resultado = MESSAGEBOX (retorno,36, "SuperRMarket")
- IF resultado = 6
- DO supermercado.prg
- ELSE
- QUIT
- ENDIF
- CLEA
- * Cantidad de productos
- C1 = 0
- C2 = 0
- C3 = 0
- C4 = 0
- C5 = 0
- * Nombre de los productos
- P1 = SPACE(13)
- P2 = SPACE(13)
- P3 = SPACE(13)
- P4 = SPACE(13)
- P5 = SPACE(13)
- * Precio de los prouctos
- PR1 = 0.00
- PR2 = 0.00
- PR3 = 0.00
- PR4 = 0.00
- PR5 = 0.00
- * El usuario pone el nombre del poducto a comprar
- @5,10 SAY "PRODUCTO" FONT "Arial" STYLE "Bold"
- @7,10 GET P1 FONT "Arial" STYLE "Bold" && Producto 1
- READ
- @9,10 GET P2 FONT "Arial" STYLE "Bold" && Producto 2
- READ
- @11,10 GET P3 FONT "Arial" STYLE "Bold" && Producto 3
- READ
- @13,10 GET P4 FONT "Arial" STYLE "Bold" && Producto 4
- READ
- @15,10 GET P5 FONT "Arial" STYLE "Bold" && Producto 5
- READ
- * El usuario pone la cantidad de productos a comprar
- @5,37 SAY "CANT" FONT "Arial" STYLE "Bold"
- @7,35 GET C1 FONT "Arial" STYLE "Bold" && Cantidad 1
- READ
- @9,35 GET C2 FONT "Arial" STYLE "Bold" && Cantidad 2
- READ
- @11,35 GET C3 FONT "Arial" STYLE "Bold" && Cantidad 3
- READ
- @13,35 GET C4 FONT "Arial" STYLE "Bold" && Cantidad 4
- READ
- @15,35 GET C5 FONT "Arial" STYLE "Bold" && Cantidad 5
- READ
- * El usuario pone el precio de cada producto
- @5,57 SAY "PRECIO" FONT "Arial" STYLE "Bold"
- @7,55 GET PR1 FONT "Arial" STYLE "Bold"
- READ
- @9,55 GET PR2 FONT "Arial" STYLE "Bold"
- READ
- @11,55 GET PR3 FONT "Arial" STYLE "Bold"
- READ
- @13,55 GET PR4 FONT "Arial" STYLE "Bold"
- READ
- @15,55 GET PR5 FONT "Arial" STYLE "Bold"
- READ
- * Saldra el total a pagar por producto
- T1 = C1 * PR1
- T2 = C2 * PR2
- T3 = C3 * PR3
- T4 = C4 * PR4
- T5 = C5 * PR5
- @5,82 SAY "TOTAL" FONT "Arial" STYLE "Bold"
- @7,80 GET T1 FONT "Arial" STYLE "Bold"
- READ
- @9,80 GET T2 FONT "Arial" STYLE "Bold"
- READ
- @11,80 GET T3 FONT "Arial" STYLE "Bold"
- READ
- @13,80 GET T4 FONT "Arial" STYLE "Bold"
- READ
- @15,80 GET T5 FONT "Arial" STYLE "Bold"
- READ
- @17,80 SAY "TOTAL A PAGAR" FONT "Arial" STYLE "Bold"
- * Suma de todos los totales
- TP = T1 + T2 + T3 + T4 + T5
- @19,80 GET TP FONT "Arial" STYLE "Bold"
- READ
- DES = 0
- @21,80 SAY "DESCUENTO:" FONT "Arial" STYLE "Bold"
- @23,80 GET DES FONT "Arial" STYLE "Bold"
- READ
- SUBT = TP*DES/100
- @25,80 SAY "EFECTIVO RESTADO" FONT "Arial" STYLE "Bold"
- @27,80 GET SUBT PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- SUBTT = TP-SUBT
- @29,80 SAY "SUB-TOTAL A PAGAR" FONT "Arial" STYLE "Bold"
- @31,80 GET SUBTT PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- EFECT = 0.00
- @17,105 SAY "EFECTIVO" FONT "Arial" STYLE "Bold"
- @19,105 GET EFECT FONT "Arial" STYLE "Bold"
- READ
- CAM = EFECT - SUBTT
- @21,105 SAY "SU CAMBIO" FONT "Arial" STYLE "Bold"
- @23,105 GET CAM PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- CLEAR
- retorno = "¿Desea usar otra vez el programa?"
- resultado = MESSAGEBOX (retorno,36, "SuperRMarket")
- IF resultado = 6
- DO supermercado.prg
- ELSE
- QUIT
- ENDIF
- CLEA
- * Nombre de los productos
- P1 = SPACE(13)
- P2 = SPACE(13)
- P3 = SPACE(13)
- P4 = SPACE(13)
- P5 = SPACE(13)
- * Precio de los prouctos
- PR1 = 0.00
- PR2 = 0.00
- PR3 = 0.00
- PR4 = 0.00
- PR5 = 0.00
- * El usuario pone el nombre del poducto a comprar
- @5,10 SAY "PRODUCTO" FONT "Arial" STYLE "Bold"
- @7,10 GET P1 FONT "Arial" STYLE "Bold" && Producto 1
- READ
- @9,10 GET P2 FONT "Arial" STYLE "Bold" && Producto 2
- READ
- @11,10 GET P3 FONT "Arial" STYLE "Bold" && Producto 3
- READ
- @13,10 GET P4 FONT "Arial" STYLE "Bold" && Producto 4
- READ
- @15,10 GET P5 FONT "Arial" STYLE "Bold" && Producto 5
- READ
- * El usuario pone la cantidad de productos a comprar
- @5,37 SAY "CANT" FONT "Arial" STYLE "Bold"
- @7,35 GET C1 FONT "Arial" STYLE "Bold" && Cantidad 1
- READ
- @9,35 GET C2 FONT "Arial" STYLE "Bold" && Cantidad 2
- READ
- @11,35 GET C3 FONT "Arial" STYLE "Bold" && Cantidad 3
- READ
- @13,35 GET C4 FONT "Arial" STYLE "Bold" && Cantidad 4
- READ
- @15,35 GET C5 FONT "Arial" STYLE "Bold" && Cantidad 5
- READ
- * El usuario pone el precio de cada producto
- @5,57 SAY "PRECIO" FONT "Arial" STYLE "Bold"
- @7,55 GET PR1 FONT "Arial" STYLE "Bold"
- READ
- @9,55 GET PR2 FONT "Arial" STYLE "Bold"
- READ
- @11,55 GET PR3 FONT "Arial" STYLE "Bold"
- READ
- @13,55 GET PR4 FONT "Arial" STYLE "Bold"
- READ
- @15,55 GET PR5 FONT "Arial" STYLE "Bold"
- READ
- * Saldra el total a pagar por producto
- T1 = C1 * PR1
- T2 = C2 * PR2
- T3 = C3 * PR3
- T4 = C4 * PR4
- T5 = C5 * PR5
- @5,82 SAY "TOTAL" FONT "Arial" STYLE "Bold"
- @7,80 GET T1 FONT "Arial" STYLE "Bold"
- READ
- @9,80 GET T2 FONT "Arial" STYLE "Bold"
- READ
- @11,80 GET T3 FONT "Arial" STYLE "Bold"
- READ
- @13,80 GET T4 FONT "Arial" STYLE "Bold"
- READ
- @15,80 GET T5 FONT "Arial" STYLE "Bold"
- READ
- @17,80 SAY "TOTAL A PAGAR" FONT "Arial" STYLE "Bold"
- * Suma de todos los totales
- TP = T1 + T2 + T3 + T4 + T5
- @19,80 GET TP FONT "Arial" STYLE "Bold"
- READ
- DES = 0
- @21,80 SAY "DESCUENTO:" FONT "Arial" STYLE "Bold"
- @23,80 GET DES FONT "Arial" STYLE "Bold"
- READ
- SUBT = TP*DES/100
- @25,80 SAY "EFECTIVO RESTADO" FONT "Arial" STYLE "Bold"
- @27,80 GET SUBT PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- SUBTT = TP-SUBT
- @29,80 SAY "SUB-TOTAL A PAGAR" FONT "Arial" STYLE "Bold"
- @31,80 GET SUBTT PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- EFECT = 0.00
- @17,105 SAY "EFECTIVO" FONT "Arial" STYLE "Bold"
- @19,105 GET EFECT FONT "Arial" STYLE "Bold"
- READ
- CAM = EFECT - SUBTT
- @21,105 SAY "SU CAMBIO" FONT "Arial" STYLE "Bold"
- @23,105 GET CAM PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- CLEAR
- retorno = "¿Desea usar otra vez el programa?"
- resultado = MESSAGEBOX (retorno,36, "SuperRMarket")
- IF resultado = 6
- DO supermercado.prg
- ELSE
- QUIT
- ENDIF
- CLEA
- * Precio de los prouctos
- PR1 = 0.00
- PR2 = 0.00
- PR3 = 0.00
- PR4 = 0.00
- PR5 = 0.00
- * El usuario pone el nombre del poducto a comprar
- @5,10 SAY "PRODUCTO" FONT "Arial" STYLE "Bold"
- @7,10 GET P1 FONT "Arial" STYLE "Bold" && Producto 1
- READ
- @9,10 GET P2 FONT "Arial" STYLE "Bold" && Producto 2
- READ
- @11,10 GET P3 FONT "Arial" STYLE "Bold" && Producto 3
- READ
- @13,10 GET P4 FONT "Arial" STYLE "Bold" && Producto 4
- READ
- @15,10 GET P5 FONT "Arial" STYLE "Bold" && Producto 5
- READ
- * El usuario pone la cantidad de productos a comprar
- @5,37 SAY "CANT" FONT "Arial" STYLE "Bold"
- @7,35 GET C1 FONT "Arial" STYLE "Bold" && Cantidad 1
- READ
- @9,35 GET C2 FONT "Arial" STYLE "Bold" && Cantidad 2
- READ
- @11,35 GET C3 FONT "Arial" STYLE "Bold" && Cantidad 3
- READ
- @13,35 GET C4 FONT "Arial" STYLE "Bold" && Cantidad 4
- READ
- @15,35 GET C5 FONT "Arial" STYLE "Bold" && Cantidad 5
- READ
- * El usuario pone el precio de cada producto
- @5,57 SAY "PRECIO" FONT "Arial" STYLE "Bold"
- @7,55 GET PR1 FONT "Arial" STYLE "Bold"
- READ
- @9,55 GET PR2 FONT "Arial" STYLE "Bold"
- READ
- @11,55 GET PR3 FONT "Arial" STYLE "Bold"
- READ
- @13,55 GET PR4 FONT "Arial" STYLE "Bold"
- READ
- @15,55 GET PR5 FONT "Arial" STYLE "Bold"
- READ
- * Saldra el total a pagar por producto
- T1 = C1 * PR1
- T2 = C2 * PR2
- T3 = C3 * PR3
- T4 = C4 * PR4
- T5 = C5 * PR5
- @5,82 SAY "TOTAL" FONT "Arial" STYLE "Bold"
- @7,80 GET T1 FONT "Arial" STYLE "Bold"
- READ
- @9,80 GET T2 FONT "Arial" STYLE "Bold"
- READ
- @11,80 GET T3 FONT "Arial" STYLE "Bold"
- READ
- @13,80 GET T4 FONT "Arial" STYLE "Bold"
- READ
- @15,80 GET T5 FONT "Arial" STYLE "Bold"
- READ
- @17,80 SAY "TOTAL A PAGAR" FONT "Arial" STYLE "Bold"
- * Suma de todos los totales
- TP = T1 + T2 + T3 + T4 + T5
- @19,80 GET TP FONT "Arial" STYLE "Bold"
- READ
- DES = 0
- @21,80 SAY "DESCUENTO:" FONT "Arial" STYLE "Bold"
- @23,80 GET DES FONT "Arial" STYLE "Bold"
- READ
- SUBT = TP*DES/100
- @25,80 SAY "EFECTIVO RESTADO" FONT "Arial" STYLE "Bold"
- @27,80 GET SUBT PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- SUBTT = TP-SUBT
- @29,80 SAY "SUB-TOTAL A PAGAR" FONT "Arial" STYLE "Bold"
- @31,80 GET SUBTT PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- EFECT = 0.00
- @17,105 SAY "EFECTIVO" FONT "Arial" STYLE "Bold"
- @19,105 GET EFECT FONT "Arial" STYLE "Bold"
- READ
- CAM = EFECT - SUBTT
- @21,105 SAY "SU CAMBIO" FONT "Arial" STYLE "Bold"
- @23,105 GET CAM PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- CLEAR
- retorno = "¿Desea usar otra vez el programa?"
- resultado = MESSAGEBOX (retorno,36, "SuperRMarket")
- IF resultado = 6
- DO supermercado.prg
- ELSE
- QUIT
- ENDIF
- CLEA
- * El usuario pone el nombre del poducto a comprar
- @5,10 SAY "PRODUCTO" FONT "Arial" STYLE "Bold"
- @7,10 GET P1 FONT "Arial" STYLE "Bold" && Producto 1
- READ
- @9,10 GET P2 FONT "Arial" STYLE "Bold" && Producto 2
- READ
- @11,10 GET P3 FONT "Arial" STYLE "Bold" && Producto 3
- READ
- @13,10 GET P4 FONT "Arial" STYLE "Bold" && Producto 4
- READ
- @15,10 GET P5 FONT "Arial" STYLE "Bold" && Producto 5
- READ
- * El usuario pone la cantidad de productos a comprar
- @5,37 SAY "CANT" FONT "Arial" STYLE "Bold"
- @7,35 GET C1 FONT "Arial" STYLE "Bold" && Cantidad 1
- READ
- @9,35 GET C2 FONT "Arial" STYLE "Bold" && Cantidad 2
- READ
- @11,35 GET C3 FONT "Arial" STYLE "Bold" && Cantidad 3
- READ
- @13,35 GET C4 FONT "Arial" STYLE "Bold" && Cantidad 4
- READ
- @15,35 GET C5 FONT "Arial" STYLE "Bold" && Cantidad 5
- READ
- * El usuario pone el precio de cada producto
- @5,57 SAY "PRECIO" FONT "Arial" STYLE "Bold"
- @7,55 GET PR1 FONT "Arial" STYLE "Bold"
- READ
- @9,55 GET PR2 FONT "Arial" STYLE "Bold"
- READ
- @11,55 GET PR3 FONT "Arial" STYLE "Bold"
- READ
- @13,55 GET PR4 FONT "Arial" STYLE "Bold"
- READ
- @15,55 GET PR5 FONT "Arial" STYLE "Bold"
- READ
- * Saldra el total a pagar por producto
- T1 = C1 * PR1
- T2 = C2 * PR2
- T3 = C3 * PR3
- T4 = C4 * PR4
- T5 = C5 * PR5
- @5,82 SAY "TOTAL" FONT "Arial" STYLE "Bold"
- @7,80 GET T1 FONT "Arial" STYLE "Bold"
- READ
- @9,80 GET T2 FONT "Arial" STYLE "Bold"
- READ
- @11,80 GET T3 FONT "Arial" STYLE "Bold"
- READ
- @13,80 GET T4 FONT "Arial" STYLE "Bold"
- READ
- @15,80 GET T5 FONT "Arial" STYLE "Bold"
- READ
- @17,80 SAY "TOTAL A PAGAR" FONT "Arial" STYLE "Bold"
- * Suma de todos los totales
- TP = T1 + T2 + T3 + T4 + T5
- @19,80 GET TP FONT "Arial" STYLE "Bold"
- READ
- DES = 0
- @21,80 SAY "DESCUENTO:" FONT "Arial" STYLE "Bold"
- @23,80 GET DES FONT "Arial" STYLE "Bold"
- READ
- SUBT = TP*DES/100
- @25,80 SAY "EFECTIVO RESTADO" FONT "Arial" STYLE "Bold"
- @27,80 GET SUBT PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- SUBTT = TP-SUBT
- @29,80 SAY "SUB-TOTAL A PAGAR" FONT "Arial" STYLE "Bold"
- @31,80 GET SUBTT PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- EFECT = 0.00
- @17,105 SAY "EFECTIVO" FONT "Arial" STYLE "Bold"
- @19,105 GET EFECT FONT "Arial" STYLE "Bold"
- READ
- CAM = EFECT - SUBTT
- @21,105 SAY "SU CAMBIO" FONT "Arial" STYLE "Bold"
- @23,105 GET CAM PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- CLEAR
- retorno = "¿Desea usar otra vez el programa?"
- resultado = MESSAGEBOX (retorno,36, "SuperRMarket")
- IF resultado = 6
- DO supermercado.prg
- ELSE
- QUIT
- ENDIF
- CLEA
- * El usuario pone la cantidad de productos a comprar
- @5,37 SAY "CANT" FONT "Arial" STYLE "Bold"
- @7,35 GET C1 FONT "Arial" STYLE "Bold" && Cantidad 1
- READ
- @9,35 GET C2 FONT "Arial" STYLE "Bold" && Cantidad 2
- READ
- @11,35 GET C3 FONT "Arial" STYLE "Bold" && Cantidad 3
- READ
- @13,35 GET C4 FONT "Arial" STYLE "Bold" && Cantidad 4
- READ
- @15,35 GET C5 FONT "Arial" STYLE "Bold" && Cantidad 5
- READ
- * El usuario pone el precio de cada producto
- @5,57 SAY "PRECIO" FONT "Arial" STYLE "Bold"
- @7,55 GET PR1 FONT "Arial" STYLE "Bold"
- READ
- @9,55 GET PR2 FONT "Arial" STYLE "Bold"
- READ
- @11,55 GET PR3 FONT "Arial" STYLE "Bold"
- READ
- @13,55 GET PR4 FONT "Arial" STYLE "Bold"
- READ
- @15,55 GET PR5 FONT "Arial" STYLE "Bold"
- READ
- * Saldra el total a pagar por producto
- T1 = C1 * PR1
- T2 = C2 * PR2
- T3 = C3 * PR3
- T4 = C4 * PR4
- T5 = C5 * PR5
- @5,82 SAY "TOTAL" FONT "Arial" STYLE "Bold"
- @7,80 GET T1 FONT "Arial" STYLE "Bold"
- READ
- @9,80 GET T2 FONT "Arial" STYLE "Bold"
- READ
- @11,80 GET T3 FONT "Arial" STYLE "Bold"
- READ
- @13,80 GET T4 FONT "Arial" STYLE "Bold"
- READ
- @15,80 GET T5 FONT "Arial" STYLE "Bold"
- READ
- @17,80 SAY "TOTAL A PAGAR" FONT "Arial" STYLE "Bold"
- * Suma de todos los totales
- TP = T1 + T2 + T3 + T4 + T5
- @19,80 GET TP FONT "Arial" STYLE "Bold"
- READ
- DES = 0
- @21,80 SAY "DESCUENTO:" FONT "Arial" STYLE "Bold"
- @23,80 GET DES FONT "Arial" STYLE "Bold"
- READ
- SUBT = TP*DES/100
- @25,80 SAY "EFECTIVO RESTADO" FONT "Arial" STYLE "Bold"
- @27,80 GET SUBT PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- SUBTT = TP-SUBT
- @29,80 SAY "SUB-TOTAL A PAGAR" FONT "Arial" STYLE "Bold"
- @31,80 GET SUBTT PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- EFECT = 0.00
- @17,105 SAY "EFECTIVO" FONT "Arial" STYLE "Bold"
- @19,105 GET EFECT FONT "Arial" STYLE "Bold"
- READ
- CAM = EFECT - SUBTT
- @21,105 SAY "SU CAMBIO" FONT "Arial" STYLE "Bold"
- @23,105 GET CAM PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- CLEAR
- retorno = "¿Desea usar otra vez el programa?"
- resultado = MESSAGEBOX (retorno,36, "SuperRMarket")
- IF resultado = 6
- DO supermercado.prg
- ELSE
- QUIT
- ENDIF
- CLEA
- * El usuario pone el precio de cada producto
- @5,57 SAY "PRECIO" FONT "Arial" STYLE "Bold"
- @7,55 GET PR1 FONT "Arial" STYLE "Bold"
- READ
- @9,55 GET PR2 FONT "Arial" STYLE "Bold"
- READ
- @11,55 GET PR3 FONT "Arial" STYLE "Bold"
- READ
- @13,55 GET PR4 FONT "Arial" STYLE "Bold"
- READ
- @15,55 GET PR5 FONT "Arial" STYLE "Bold"
- READ
- * Saldra el total a pagar por producto
- T1 = C1 * PR1
- T2 = C2 * PR2
- T3 = C3 * PR3
- T4 = C4 * PR4
- T5 = C5 * PR5
- @5,82 SAY "TOTAL" FONT "Arial" STYLE "Bold"
- @7,80 GET T1 FONT "Arial" STYLE "Bold"
- READ
- @9,80 GET T2 FONT "Arial" STYLE "Bold"
- READ
- @11,80 GET T3 FONT "Arial" STYLE "Bold"
- READ
- @13,80 GET T4 FONT "Arial" STYLE "Bold"
- READ
- @15,80 GET T5 FONT "Arial" STYLE "Bold"
- READ
- @17,80 SAY "TOTAL A PAGAR" FONT "Arial" STYLE "Bold"
- * Suma de todos los totales
- TP = T1 + T2 + T3 + T4 + T5
- @19,80 GET TP FONT "Arial" STYLE "Bold"
- READ
- DES = 0
- @21,80 SAY "DESCUENTO:" FONT "Arial" STYLE "Bold"
- @23,80 GET DES FONT "Arial" STYLE "Bold"
- READ
- SUBT = TP*DES/100
- @25,80 SAY "EFECTIVO RESTADO" FONT "Arial" STYLE "Bold"
- @27,80 GET SUBT PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- SUBTT = TP-SUBT
- @29,80 SAY "SUB-TOTAL A PAGAR" FONT "Arial" STYLE "Bold"
- @31,80 GET SUBTT PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- EFECT = 0.00
- @17,105 SAY "EFECTIVO" FONT "Arial" STYLE "Bold"
- @19,105 GET EFECT FONT "Arial" STYLE "Bold"
- READ
- CAM = EFECT - SUBTT
- @21,105 SAY "SU CAMBIO" FONT "Arial" STYLE "Bold"
- @23,105 GET CAM PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- CLEAR
- retorno = "¿Desea usar otra vez el programa?"
- resultado = MESSAGEBOX (retorno,36, "SuperRMarket")
- IF resultado = 6
- DO supermercado.prg
- ELSE
- QUIT
- ENDIF
- CLEA
- * Saldra el total a pagar por producto
- T1 = C1 * PR1
- T2 = C2 * PR2
- T3 = C3 * PR3
- T4 = C4 * PR4
- T5 = C5 * PR5
- @5,82 SAY "TOTAL" FONT "Arial" STYLE "Bold"
- @7,80 GET T1 FONT "Arial" STYLE "Bold"
- READ
- @9,80 GET T2 FONT "Arial" STYLE "Bold"
- READ
- @11,80 GET T3 FONT "Arial" STYLE "Bold"
- READ
- @13,80 GET T4 FONT "Arial" STYLE "Bold"
- READ
- @15,80 GET T5 FONT "Arial" STYLE "Bold"
- READ
- @17,80 SAY "TOTAL A PAGAR" FONT "Arial" STYLE "Bold"
- * Suma de todos los totales
- TP = T1 + T2 + T3 + T4 + T5
- @19,80 GET TP FONT "Arial" STYLE "Bold"
- READ
- DES = 0
- @21,80 SAY "DESCUENTO:" FONT "Arial" STYLE "Bold"
- @23,80 GET DES FONT "Arial" STYLE "Bold"
- READ
- SUBT = TP*DES/100
- @25,80 SAY "EFECTIVO RESTADO" FONT "Arial" STYLE "Bold"
- @27,80 GET SUBT PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- SUBTT = TP-SUBT
- @29,80 SAY "SUB-TOTAL A PAGAR" FONT "Arial" STYLE "Bold"
- @31,80 GET SUBTT PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- EFECT = 0.00
- @17,105 SAY "EFECTIVO" FONT "Arial" STYLE "Bold"
- @19,105 GET EFECT FONT "Arial" STYLE "Bold"
- READ
- CAM = EFECT - SUBTT
- @21,105 SAY "SU CAMBIO" FONT "Arial" STYLE "Bold"
- @23,105 GET CAM PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- CLEAR
- retorno = "¿Desea usar otra vez el programa?"
- resultado = MESSAGEBOX (retorno,36, "SuperRMarket")
- IF resultado = 6
- DO supermercado.prg
- ELSE
- QUIT
- ENDIF
- CLEA
- * Suma de todos los totales
- TP = T1 + T2 + T3 + T4 + T5
- @19,80 GET TP FONT "Arial" STYLE "Bold"
- READ
- DES = 0
- @21,80 SAY "DESCUENTO:" FONT "Arial" STYLE "Bold"
- @23,80 GET DES FONT "Arial" STYLE "Bold"
- READ
- SUBT = TP*DES/100
- @25,80 SAY "EFECTIVO RESTADO" FONT "Arial" STYLE "Bold"
- @27,80 GET SUBT PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- SUBTT = TP-SUBT
- @29,80 SAY "SUB-TOTAL A PAGAR" FONT "Arial" STYLE "Bold"
- @31,80 GET SUBTT PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- EFECT = 0.00
- @17,105 SAY "EFECTIVO" FONT "Arial" STYLE "Bold"
- @19,105 GET EFECT FONT "Arial" STYLE "Bold"
- READ
- CAM = EFECT - SUBTT
- @21,105 SAY "SU CAMBIO" FONT "Arial" STYLE "Bold"
- @23,105 GET CAM PICT "999,999.99" FONT "Arial" STYLE "Bold"
- READ
- CLEAR
- retorno = "¿Desea usar otra vez el programa?"
- resultado = MESSAGEBOX (retorno,36, "SuperRMarket")
- IF resultado = 6
- DO supermercado.prg
- ELSE
- QUIT
- ENDIF
- CLEAR
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement