Wednesday, October 10, 2018

...Lab3...


Assalamu’alaikum and hello. This is my reflection on Lab 3. Based on the programs given, we need to trace the programs either there were any errors or not. As usual, there were errors in the programs after we compile and run it and we need to fix it.

For example, in this Test2 program, we need to uncomment the line 11. However, there was an error when we uncomment it. So, the best way, we can just delete line 11 or declare the value of a and b then print the sentence of the submission between a and b.






I also learn the used of one-way if statements in java program through this Lab. After the word ‘if’, we need to put bracket between the Boolean expressions and put the block between the statements. The block itself is a type of statement. Thus, we can execute more than one statement between the block. For example,

if (booleanExpression) {
   statement(s);
}



Other than that, we need to write programs. It’s quite difficult to make the programs as required. I have done it several times which there were a lot of errors before getting the best results. Here I show you one of the programs that I have done as required:





That's all from me for Lab3. Thank you ^_^


Nurazreen binti Mohd Nor (182433)

SSK3100 (Group 15)





Next blog : kychoong.blogspot.com (Choong Kar Yee)






No comments:

Post a Comment

...Lab10...

Assalamu'alaikum and hello I'm going to share about the assignment that has given (Lab10) on topic array. We are required to def...