If the question is given like this one, which means that it cannot be solved even by using calculator, so it called logic error. So when we want to run the program, it will turn out like this:
In the questions given, there is different error or there is no error at all. We as the student need to know where is the error and know how to solve it until the program can be compile. After we solve the problem and can be compile, we have to check weather it can be run or not by typing 'java Test'.
How to solve all the problem is based on the program analysis chart. it is something like this:

I find that it is easier to use this method when having programming problem. because when we use this method, we will write it in order. So it is easy to see where is the mistake and easy to fix it.
That is all for this entry. Thank you.
P/S: Link to Atika's blog
ssk3100.blogspot.com
No comments:
Post a Comment