Friday 14 December 2018

LAB 2

Holla Holli Hullu !

Hi guys, i'm going to share what i have learnt during lab 2. this is the very late post to do my reflection and sorry for that. This is because i keep doing my coding and forgot to do the reflection. Sorry Dr Erzam :)) hihihihihi

So the topic for lab2 is problem solving. At the end of this lab, all of us should be able to trace a program and designing solution to a problem using PAC and IPO. From the previous post i have shared what is PAC. For IPO it is stand for Input Process Output Chart. IPO is almost likely to PAC. It only have a little bit different as IPO is more details than PAC. In PAC we just analyse the problem generally while IPO we put all the details in each input, process and output. So for those who wants to know or and learn more about this you can straightly google it and you can see the difference. after learning IPO, i should be able to write, compile and run a simple computer programme based on IPO.

Here we go !
This lab consists 6 questions. For the first question, we have to trace the programme and show their ouput. I need a Trace Program Table to trace the program given. To trace the program, we have to through line by line. Write a line that contain value and show the output.

After tracing each program, i need to identify the error in the program. This is where we can find the error and correct it. While tracing the program, we will know each error and the error can be logic error.

For the next questions i have to be able analyse the probem given using PAC and IPO. I need to the PAC and continue for IPO. IPO we refer to the PAC and come out with all the details. Then, i have to create Java program and run. I want to say that this method is really helping me in designing solution for the problem.

There is also a program that using different variables according to the input. The variables i mentioned is the data type such as Byte, Long, Double and others.

so lets move to the next lab.



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...