Furthermore you should pay attention to the calculations involved in the program, its flow, and most importantly, the logic of the program. Sometimes, a grammatically correct sentence does not make any sense. For example, here is a verse from poem "Through the Looking Glass" written by Lewis Carol:
“Twas brillig, and the slithy toves
Did gyre and gimble in the wabe “
The grammar is correct but there is no meaning. Similarly, the sentence, "Mr. ABC sleeps thirty hours every day", is grammatically correct but it is illogical.
So it may happen that a program is grammatically correct. It compiles and runs but produces incorrect or absurd results and does not solve the problem. It is very important to pay attention to the logic of the program.
For previous lesson click here: What skills are needed
For next lesson click here: Think about the reusability
the easiest way to learn programming
introduction to programming
Paying attention to detail
0 comments:
Post a Comment