Prezi

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in the manual

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

Algoritmo de dar cambio respecto a un pago

No description
by Giovanna Mendez Rodriguez on 6 September 2013

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Algoritmo de dar cambio respecto a un pago

Algoritmo: Dar cambio respecto a un pago
Pasos:
1. Pedir A (Costo del producto) y B (Pago)
2. B-A=C
3. Contar cifras de C de derecha a izquierda
4. Guardar: primera cifra en 1
segunda cifra en 2
tercera cifra en 3
cuarta cifra en 4
5. Buscar en base de datos las cifras del 1 al 4
6. Imprimir combinación resultante de la base de datos

Base de datos
D: moneda de 1 peso
E: moneda de 2 pesos
F: moneda de 5 pesos
G: moneda de 10 pesos
H: billete de 20 pesos
I: billete de 50 pesos
J: billete de 100 pesos
K: billete de 200 pesos
L: billete de 500 pesos
M: billete de 1000 pesos
N: Nada
1.
9: F y 2 E
8: F, E, D
7: F, E
6: F, D
5: F
4: 2E
3: E, D
2: E
1: D
0: N
2.
9: I, 2H
8: I, H, J
7: I, H
6: I, J
5: I
4: 2H
3: H, G
2: H
1: G
0: N
3.
9: L, 2K
8: L, K, J
7: L, K
6: L, J
5: L
4: 2K
3: K, J
2: K
1: J
0: N
4.
9: 9M
8: 8M
7: 7M
6: 6M
5: 5M
4: 4M
3: 3M
2: 2M
1: 1M
A (Producto): 850
B (Pago): 1 000
B: 1 000
- A: 850
__________
150
150
1: 0
2: 5
3: 1
1. N: Nada


2. I: Billete de 50

3. D: Billete de 100
Resultado:
Ejemplo:
See the full transcript