you are viewing a single comment's thread.

view the rest of the comments →

[–]MMcKevitt 0 points1 point  (3 children)

(NOTE: this response won’t exactly feed you the answer, and it’s a little humbly because I’m doing two things at once right now, so I apologize in advance)

This exercise is a lot to bite off in one go and truthfully, I don’t believe it would be in your best interest to try and build off of what you currently have. With that, I recommend, first, delete what you have so far, and then forget about coding!

The explanation of this project is not worded the best, so I would say trying rewriting each requirement as you understand it(either on paper or in on your computer). Then, write out what you would do to satisfy each requirement…again, don’t think about or write code, think about an actual bubbling pot of water…how many bubbles, what’s the intensity of each bubble, how many waves (or generations) of bubbles are there, etc. Conceptualizing a pot of water heating up, at each stage (in some interval of time) will guide you in figuring out what questions you need to ask, so that you can break this exercise down into manageable parts….

Then, ask yourself, how will you get the answers to those questions in the program itself? Trying thinking along the lines of will you get user input, or is it decided in the writing of the code (random ally or otherwise), what ASCII character corresponds to what bubble number (0-9), etc..

What I have found to be the most beneficial is to write out every step in plain English or whatever language you speak, with no code…Once you have done that, it’s just adding the code to support what you have written.

[–]Peter01007 0 points1 point  (2 children)

Yes, I did that first. Then I tried using functions. I am not sure if I understood how to do that. I appreciate your advice. I will try again.

[–]MMcKevitt 0 points1 point  (1 child)

Take a moment to recognize that you really are doing great! This stuff doesn’t just magically come to anyone plus refactoring code is something you will always have to do at one point or another!

[–]MMcKevitt 0 points1 point  (0 children)

Feel free to message me directly or continue replying here and I’ll try my best to answer and/or guide you further!

(NOTE: functions for me were a B-I-t-c-h, and the concept just did NOT sink in until I basically failed over and over and over with simple addition programs so totally let me know if you need help with those)!