Re: programming logic?

And as you build simple programs, try to impruve them in any way you like, but do impruve them. I mean don't make a tun of simple projects that are all in a same level in simplicity. when you translate your idea to code, You might want to re-check the code and analyse it for any none matching piece of code with your idea. Don't throw a simple look and pass over it. Think about your code. Think about what could be wrong in your code and why that part is wrong. When you get the reason, I can make sure you can find a way to fix that part of code.
Here's a simple algorythm. We have three number. A, b, c. Tell the computer to find the greater number and print it.
here's how
if a > b and b > c then we know that A is greater than b, and b is greater than c. What does that mean? It means A is the greatest one. So what if this isn't true. This program always finds out if A is the greatest one or if it's not. It doesn't check other numbers. The same formula for other numbers:
if b >c and c > a: Now b is the greatest one
if c >a and a > b: Now c is the greatest one
Before reading the text below, Go back and see what is the problem with my code. Period
If you found the fact that it doesn't cover all situations like what if a > c and c > b. What happens now! Program won't print anything!
You are right. This is one of those situations that you have to analyse your code and think about it. So. Basicly you find an idea, Translate it to code, Go back and think about your code, Find any problems, Think about their possible reasons, Think about how to deal with them, and fix them.
This was all my own opinions. There are a lot more people here that know programming more than me and their programming logic is impressive. Anyways. I hope i could help as much as I can. Lol!

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Diego via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : NicklasMCHD via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : visualstudio via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : kianoosh via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : kianoosh via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : NicklasMCHD via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : kianoosh via Audiogames-reflector

Reply via email to