#Programming an "Exact Change" Program (Beginner)

1 messages · Page 1 of 1 (latest)

plucky smelt
#

Basically you need you get users input, and use any method possible to make the exact change possible the only twist is "using singular and plural coin names like 1 Penny vs. 2 Pennies"

digital steppeBOT
#

<@&987246399047479336> please have a look, thanks.

digital steppeBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

plucky smelt
#

So far I have this:

surreal jasper
#

before you code, I'd recommend to do it in abstraction at first place.

#

That means, better to write down what steps to solve the problem, then you start to do the coding

#

with that being said, I think: since your first step is to get the total amount of Quarters, and you get the value.
Then you probably want to subtract that value from the total. Get the reminder, then work on next coin name

plucky smelt
#

Thanks, Ill reach out for any other questions.

plucky smelt
#

Just finished thanks a a lot. Let me know if i need to restructure, or concise my code. Overall the program works.

#

That's too small hold up

#

@surreal jasper ^

surreal jasper
#

tbh, it's un-readable catwut

#

you said it worked, congrats

#

we have basic convention like, how you structure the curly brackets

#

probably when you learn more, you'd approach all these by "small methods", then it'd be cleaner

#

basically, when you sleep and wake up, read your own code again, you'll think: "ok, wtf am I doing here?" we all been there

#

anyway, good job for now, keep going

plucky smelt
#

Yeah thanks, I'm still learning lmao. Just trying to catch up on some assignment for school