What is a logic ?
In a program logic is a code or set of instructions to solve a
particular problem. Logic is important in each and every program as
every program have some logic to solve the problem.
How to think logically ?
Also read:Introduction To Logical Thinking For a Programmer.
How to develop a logic ?
To develop logic for a program we should be capable of thinking
logically. only a logical thinker can be capable of developing logic for
a program. but most of the programmers and beginners struggle a lot in
order to improve their logical thinking skills.
Points to be remember while developing a logic :-
Feel you are talented than computer:
Always feel that you are talented than computer. This will increase your
confidence level. because computer cannot understand anything unless
we write a code for it. we will write logic for a computer to solve a
particular problem. so with out your logic a computer cannot solve any
problem. so a computer needs your logic in order to solve a particular
problem.
Recall all Programming concepts you have learnt:
Developing a logic is nothing but using the available resources in a
particular way and achieving solution for the problem. So it is
necessary for a programmer to learn all the programming concepts and
recall them while developing logic for a particular problem.
Think in a machine oriented way:
So by thinking in a machine oriented way, you can be capable to write
logic for a program which is used by the computer to solve the problem.
Real Time application of Logic :-
-> Whether there any travelling
resources like a bike or car is provided to reach the shop. if it is
provided then you will go forward otherwise you will ask them to provide
transport facility.
-> After that you will think of
reaching the exact place. for this you should think which route is used
to reach the desired place. after choosing the desired place then you
will go there, buy the book and return back.
-> Starting from number 1
-> If the remainder is zero(if it is even) then you will write the number.
-> Then you will go for the next
number and check whether the given number is even or not. you will
continue the above steps until the number 10.
Step 1 :-
Step 2:-
Step 3:-
Final conclusion:-
In a program logic is a code or set of instructions to solve a
particular problem. Logic is important in each and every program as
every program have some logic to solve the problem.
Logic is a special set of instructions given to the computer. The
computer executes the given instructions specified in the logic and
solve the problem by using those instructions.
How to think logically ?Every programmer should think logically in order to develop logic for a program. but the problem arises here is how to think logically ?
So in order to think logically we should learn how a logic will work and how to develop a logic for a program.
Also read:Introduction To Logical Thinking For a Programmer.
How to develop a logic ?
To develop logic for a program we should be capable of thinking
logically. only a logical thinker can be capable of developing logic for
a program. but most of the programmers and beginners struggle a lot in
order to improve their logical thinking skills.
Points to be remember while developing a logic :-Feel you are talented than computer:
with out my permission y u have copied this from my blog CODERS HUNT
ReplyDeleteRespected Admin,
ReplyDeleteWe have found your article i.e. http://aroundtheworld2k13.wordpress.com/2012/12/22/how-to-think-logically-in-programming-to-develop-logic/ as a complete violation of our copyrights. The article is a duplicate copy of the original post published on CODERSHUNT @ http://www.codershunt.com/2012/06/how-programmer-should-think-logically.html. Republication of such content is a serious loss to our SERP ranking and reputation. We thereby request you to remove the post completely within 48 hours.
Failure to comply will result in a complete deletion of your article. Your URL will be reported to both AdSense and GOOGLE DMCA. We therefore earnestly believe that you understand the consequences and expect sincere cooperation from your side.
Original Content URL: http://www.codershunt.com/2012/06/how-programmer-should-think-logically.html
Duplicate Content URL: http://aroundtheworld2k13.wordpress.com/2012/12/22/how-to-think-logically-in-programming-to-develop-logic/
Regards,
doodi srinath reddy
Founder and Author : www.codershunt.com
this will be helpful :
ReplyDeletehttp://www.kodingexamples.blogspot.com/2014/03/8-Great-Tips-For-Developing-Logic-in-Programming.html
coder hunt is not help full
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteI will really appreciate the writer's choice for choosing this excellent article appropriate to my matter.Here is deep description about the article matter which helped me more. sports surge
ReplyDeleteLooking for a hassle-free pathway to secure a seat at Vydehi Medical College? College Dhundo offers valuable insights on "Direct Admission In Vydehi Medical College Direct Admission In Vydehi Medical College Explore this informative resource to simplify your admission process and achieve your medical education goals.
ReplyDelete