I started to teach myself how to program about 4 days ago. While I consider myself more technologically literate than the average individual, I still didn't know how to write even one line of code just 4 days ago when I started. So, it was a completely fresh start. I'm also not a CS major or anything like that, so I really had no foundation at all.
I started with some Youtube videos to learn the basic programming motifs - if/then conditionals, loops, functions/methods, variables, objects and classes, etc. I then jumped right into Java, which was probably a mistake, as apparently it's not the most welcoming language for a complete beginner.
Today I decided not to learn anymore new information, and to instead actually build something. So I did. Each of these programs are incredibly basic, and probably suck, and many of you who know how to code could probably write each of these in your sleep in about 5 minutes, but again, I'm only on day 4 here. Each of these took me about 30-45 minutes to write, and then about another hour of working out the bugs.
The first program is a simple questionnaire - it asks the user for their name, and then poses two questions to them. The program will tell them whether their responses to each of the questions are correct, and will then tell them how many questions of the 2 they answered correctly.
The second program generates a random number which ranges from 0-10, concealing it from the user, and then it asks the user to guess the random number. If the first guess is correct, they are congratulated and the program ends. If they are incorrect, the program provides a qualitative assessment of how far off they are (basically a hint), which is actually based on how numerically far away their guess was from the randomly generated number. It then asks for their guess again, and will continue doing so until the user provides the correct answer, after which the program ends.
So, that's about the limit of what I can do so far after 4 days. Input? Suggestions? I certainly don't want to pick up any bad habits.
Does the style suck or am I making errors anywhere? Should I be able to do more than this after 4 days?
I started with some Youtube videos to learn the basic programming motifs - if/then conditionals, loops, functions/methods, variables, objects and classes, etc. I then jumped right into Java, which was probably a mistake, as apparently it's not the most welcoming language for a complete beginner.
Today I decided not to learn anymore new information, and to instead actually build something. So I did. Each of these programs are incredibly basic, and probably suck, and many of you who know how to code could probably write each of these in your sleep in about 5 minutes, but again, I'm only on day 4 here. Each of these took me about 30-45 minutes to write, and then about another hour of working out the bugs.
The first program is a simple questionnaire - it asks the user for their name, and then poses two questions to them. The program will tell them whether their responses to each of the questions are correct, and will then tell them how many questions of the 2 they answered correctly.

The second program generates a random number which ranges from 0-10, concealing it from the user, and then it asks the user to guess the random number. If the first guess is correct, they are congratulated and the program ends. If they are incorrect, the program provides a qualitative assessment of how far off they are (basically a hint), which is actually based on how numerically far away their guess was from the randomly generated number. It then asks for their guess again, and will continue doing so until the user provides the correct answer, after which the program ends.

So, that's about the limit of what I can do so far after 4 days. Input? Suggestions? I certainly don't want to pick up any bad habits.
Does the style suck or am I making errors anywhere? Should I be able to do more than this after 4 days?