REFLECTION LAB 1
NAME : SITI KHADIJAH BINTI ZULKIPLI
MATRIX NO : 188795
Assalamualaikum and Hello. This is my second reflection on my second programming lab which is Lab 1.
First of all, the objectives of doing Lab 1 are to identify the common errors and programming pitfalls, designing solutions to a problem using a Program Analysis Chart and to write, compile and run a simple computer program based on PAC.
As usual, firstly we need to run the java compiler. But, i actually forgot to run the java compiler at first until the lecturer told us to do so.
For first objective, we are required to identify the common errors from the given question. so, there are actually several errors found during the lab session. The errors are,
1. syntax error that occur when we spell a word incorrectly.
2. There are also runtime error that occurs when we insert wrong input to run a program.
3. Logic error also one of the error that we identified during the lab which occurs because the computer only can read what we type. For example, 1/0 is logic error since any numbers are cannot be devided by o. thus it is logically error.
After identifying the errors, we will fix, compile, and run the program.We need to define all of the variables that exist so that the program can be run. Following are the examples of program that have been fixed.
NAME : SITI KHADIJAH BINTI ZULKIPLI
MATRIX NO : 188795
Assalamualaikum and Hello. This is my second reflection on my second programming lab which is Lab 1.
First of all, the objectives of doing Lab 1 are to identify the common errors and programming pitfalls, designing solutions to a problem using a Program Analysis Chart and to write, compile and run a simple computer program based on PAC.
As usual, firstly we need to run the java compiler. But, i actually forgot to run the java compiler at first until the lecturer told us to do so.
For first objective, we are required to identify the common errors from the given question. so, there are actually several errors found during the lab session. The errors are,
1. syntax error that occur when we spell a word incorrectly.
2. There are also runtime error that occurs when we insert wrong input to run a program.
3. Logic error also one of the error that we identified during the lab which occurs because the computer only can read what we type. For example, 1/0 is logic error since any numbers are cannot be devided by o. thus it is logically error.
After identifying the errors, we will fix, compile, and run the program.We need to define all of the variables that exist so that the program can be run. Following are the examples of program that have been fixed.
For the second part, we need to analyzed the problems using PAC and run a simple computer program using PAC. for this part, i feel a bit difficult to come out with a chart that analyzed the problems from the statement given.
Link To Muzamil's Blog : http://muzamil188057.blogspot.com/


Comments
Post a Comment