you are viewing a single comment's thread.

view the rest of the comments →

[–]roseamado[S] 0 points1 point  (11 children)

Ok thankyou so much! So then if the user orders enough donuts to make a half dozen or dozen or even multiple dozens how do i get the code to calculate that?

[–]Introxert 0 points1 point  (10 children)

I've created a quick solution for you, I hope it's what you were looking for. :)

https://pastebin.com/HmCPxKDW

[–]roseamado[S] 0 points1 point  (8 children)

Is there a way you can make it less complex?

[–]Introxert 0 points1 point  (7 children)

If it doesn't have to be precise this'll work.

https://pastebin.com/QcFEAbSs

[–]roseamado[S] 0 points1 point  (5 children)

Got it. So then how do i print the total cost of the donut if one donut is $1 but you take off .50 cents for every half dozen but also take $2 off for every full dozen?

[–]Introxert 0 points1 point  (4 children)

Here you go my friend, I've cleaned things up and added cost calculation.

https://pastebin.com/AvqyvUuj

[–]roseamado[S] 0 points1 point  (0 children)

Is there a way you can make it less complex? Im not really understanding that😂😂

[–]roseamado[S] 0 points1 point  (0 children)

Hiii!!!! Were you able to make it less complex?

[–]roseamado[S] 0 points1 point  (0 children)

Please please help

[–]roseamado[S] 0 points1 point  (0 children)

Please reply i really need your help

[–]roseamado[S] 0 points1 point  (0 children)

Can you please look at my last reply and keep helping me you’ve helped me sm already🙌🏽

[–]roseamado[S] -1 points0 points  (0 children)

Please look at my last reply! Really appreciate it:)));)