+ 1
I know how to program but I have difficulty creating my programs. What is wrong?
I know how to program but I have difficulty creating my programs. What is wrong?
4 Respuestas
+ 2
I find creating a program difficult when I dont plan it.
If I jump straight into a project with a brute force approach I end up confusing myself and needing to constantly re-write portions of it which ultimately leads to disorganization and messy code.
If I plan and write it out, as in determine exactly what it is my program is going to do and how it is going to do it by generating a skeleton and formulating my algorithms through pseudocode and flowcharts, I have a much easier time keeping things relevant and organized.
+ 2
Do you lack ideas?
+ 1
you may be trying stuffs of too much complexity for your current knowledge, try easy challenges. e.g
1 - print ASCII values of some text the user entered
2 - the stuff you learn in math you can write programs for it. e.g
- program to get hypotenuse of a triangle if user enters size a and b.
- program to get volume of a sphere given the radius (V = 3/4*PI*r^3), this is the formula for getting volume of a sphere.
- program to get a certain percentage of an amount
etc.
0
Depends, what problem are you having?