Friday 14 December 2018

LAB 1

Ouh hye, Dinie is back. Last Tuesday on 25th September, we proceed to next lab. This time the topic is about problem solving. After getting used with programming environment, we need to be able to identify common errors and programming pitfalls. Means that we were given all the coding and need to follow the programs but there are some errors inside the coding and we need to identify and fix by ourselves. So, at the first I just try the wrong coding that given and found out that the Java cannot run the program even there is only one error. To make it clear lets go through all the tests one by one.

Test 1

Test 2

Test 3

Test4
Test5

these are some of examples that we try to fix the errors. By doing this, we know the errors we shoud avoid while doing the coding. This is important to make sure the programme we create is running and success. 

For the question 2, we have to analyze the problem using PAC. PAC is stand for Problem Analysing Chart. This PAC is helpful as it help a lots in jotting down all the requirements needed to do coding. It organised our process while creating the program. In PAC, we need to list out the data, processing and the output. By referring the PAC, we can proceed to do the flowchart and coding.

So we applied the PAC in question 3. We need to choose one of the problem given and used the complete Java program to solve it. While doing this question, it makes me know what is the input that i need to know and what is the process of the program so that the output is print out succesfully.

In this lab, i need to improve and do more practice so that i can easily creating Java program to solve any problems !


No comments:

Post a Comment

LAB5

hallo ! i'm back for the reflection of lab5 :) so, the topic for lab5 in week 6 is switch statement, logical operators and conditional...