Upload
nicolasbuffa
View
213
Download
0
Embed Size (px)
DESCRIPTION
Algoritmo
Citation preview
AlgoritmoAlmacenesTipo Registro: AlmacenInicio Entero: cant_A, cant_B, opcin Real: monto_vtaA, monto_vtaB Lgico: ban_1, ban_2Fin_registroArray1!"# $e almacen: vector%ar Lgico: &ay_stoc' %ector: %1 Entero: op, i, (_alm, tipo_pro$, cant, tipo_venta Real: monto_$escInicio )p1 *onto_$esc+ )pcion+ $es$e i1&asta " &acer %1i#,monto_vtaA+ %1i#,monto_vtaB+ %1i#,cant_A-+ %1i#,cant_B-+ %1i#,ban_1.also %1i#,ban_2.also Fin_$es$e *onto_$esc+ *ientras op/1 &acer *ostrar01Almacen 21, 2 o "345 Leer0(_alm5 *ostrar016ara pro$7cto A ingresar 1, para pro$7cto B ingresar 245 Leer0tipo_pro$5 *ostrar01Ingresar canti$a$ $e pro$7cto45 Leer0cant5 8ay_stoc'vali$a_venta0%1, (_alm, tipo_pro$, cant5 9i &ay_stoc'/ver$a$ero entonces *ostrar016ara pago $e conta$o 1, para otro tipo $e pago 245 Leer0tipo_venta5 Llamar_a registrar_venta0%1,(_alm, tipo_pro$, cant, tipo_venta, monto_$esc5 9i_no *ostrar01La canti$a$ a ven$er no esta en el almacen45 Fin_si *ostrar016ara reali:ar otra venta ingresar 1, para .inali:ar ingresar otro n7mero45Si Leer0op5 Fin_mientras )pcioncons7ltas0 5 9eg;n_sea opcin entonces