payer le caissier

Excellent! Une autre partie?

Bonjour!
Ce sera 
s'il-vous-plait.

Remise à zéro

Le compte est bon, 
je vous remercie!

Merci beaucoup, mais il y a            en trop.

Il manque encore            

M025_3 = (18, -3.5)
M05_2 = (28.2, -5.75)
M05_1 = (26, -3.5)
M010_2 = (22, -3.5)
M010_3 = (23.7, -5.5)
M025_2 = (16, -6)
M1_3 = (11.5, -6)
M1_2 = (9.5, -3.5)
M2_3 = (4.6, -3.5)
M2_2 = (2.3, -6)
M2_1 = (0, -3.5)
M1_1 = (7.25, -6)
M025_1 = (14, -3.5)
M010_1 = (20.3, -5.5)
M05_3 = (30.3, -3.5)
B20_3 = (24, -22)
B10_3 = (12, -22)
B20_2 = (24, -16.7)
B10_2 = (12, -16.7)
B5_3 = (0, -22)
B5_2 = (0, -16.7)
B20_1 = (24, -11.3)
B10_1 = (12, -11.3)
B5_1 = (0, -11.3)
montantDonne: If[y(B20_1) > 0, 20, 0] + If[y(B20_2) > 0, 20, 0] + If[y(B20_3) > 0, 20, 0] + If[y(B10_1) > 0, 10, 0] + If[y(B10_2) > 0, 10, 0] + If[y(B10_3) > 0, 10, 0] + If[y(B5_1) > 0, 5, 0] + If[y(B5_2) > 0, 5, 0] + If[y(B5_3) > 0, 5, 0] + If[y(M2_1) > 0, 2, 0] + If[y(M2_2) > 0, 2, 0] + If[y(M2_3) > 0, 2, 0] + If[y(M1_1) > 0, 1, 0] + If[y(M1_2) > 0, 1, 0] + If[y(M1_3) > 0, 1, 0] + If[y(M025_1) > 0, 0.25, 0] + If[y(M025_2) > 0, 0.25, 0] + If[y(M025_3) > 0, 0.25, 0] + If[y(M010_1) > 0, 0.1, 0] + If[y(M010_2) > 0, 0.1, 0] + If[y(M010_3) > 0, 0.1, 0] + If[y(M05_1) > 0, 0.05, 0] + If[y(M05_2) > 0, 0.05, 0] + If[y(M05_3) > 0, 0.05, 0]
listeMélangée: {0.1, 0.25, 2, 1, 20, 5, 20, 2, 5, 1, 2, 20, 0.1, 0.25, 0.05, 0.05, 10, 0.05, 10, 5, 1, 10, 0.1, 0.25}
nbDePieces = 7
listePartielle = Take(listeMélangée, 1, nbDePieces)
montantDesire = Sum(listePartielle)
polyA = Point(yAxis)
polyB = Intersect(xAxis, yAxis)
polyC = Point(xAxis)
polyD = (40, 12)
poly1, a, b, c, d = Polygon(polyA, polyB, polyC, polyD)
listeArgent: {0.05, 0.05, 0.05, 0.1, 0.1, 0.1, 0.25, 0.25, 0.25, 1, 1, 1, 2, 2, 2, 5, 5, 5, 10, 10, 10, 20, 20, 20}
solution = If(montantDesire ≟ montantDonne, 1, 0)
tMontant: "" + (Text[floor(montantDesire)]) + "," + (Text[Last[Text[(montantDesire * 100)], 2]]) + "$"
montantManque = If(montantDonne  <  montantDesire, montantDesire - montantDonne, 0)
montantTrop = If(montantDonne > montantDesire, montantDonne - montantDesire, 0)
tDonne: "" + (Text[floor(montantDonne)]) + "," + (Text[Last[Text[(montantDonne * 100)], 2]]) + "$"
tTrop: "" + (Text[floor(montantTrop)]) + "," + (Text[Last[Text[(montantTrop * 100)], 2]]) + "$"
tManque: "" + (Text[floor(montantManque)]) + "," + (If[montantManque ≟ 0.05, "05", Text[Last[Text[(montantManque * 100)], 2]]]) + "$"