Tuesday, October 23, 2018

LAB 5


18th October is our fifth laboratory class for computer programming. Our 5th lab assignment   contains 9 questions. This lab assignment covered Switch statement, Logical Operators and Conditional Operator. This is one of the assignments that I really enjoyed and 70% I'm doing myself. One of the reasons, I understand the concept of the topic that I mentioned above during the last lecturer. Also, I could understand much better after the Test 1. Therefore, it foster my coding skill.

The last question is quite challenging because we have to write a program to compute personal income tax based on the filing status using switch statement. At first, the questions a bit confusing but later on my friend explain the concept. In fact, it becomes boring after I understand the steps and concept for this type of question. Finally, I managed to handle this case. Besides, there is one question where I have to write a program that randomly generates an integer between 1 and 12. For this question, I refer my demo, as she asks to search in goggle for this term. Then, i understand the function of (Math.random()*(max - min)) + min. 

End of this lab, I able to use switch statement, logical operators to combine Boolean expressions and conditional operators. Overall, it is one of my favorite lab that I can said because I did the whole work by myself as I satisfied a lot on my work. To be honest, I never used my hand phone for the first time during the class because I am very excited about the questions given. It also builds my confident level that I feel I can score on this subject. Hopefully, it will sustain and increase my excitement level for  further labs.



Anjalay A/P Raman
182695
SSK3100 (Group 15)




Next blog: nadiahjavajourney.blogspot.com (NURNADIAH BINTI ABDUL GHANI)

Wednesday, October 17, 2018

LAB 4


11th October is our fifth laboratory class for computer programming. Our 5th lab assignment   consists with only 1 question. I have mix feeling when I started to read the whole questions. Of course, I have no idea how to execute the instructions as well. Even none of us could understand and figure out a way to write the code. Basically the task is to create an adventure game by writing a program to get the user instructions and implement at least ten rooms for the player of your adventure game to explore and two ways for the game to end. My demo instructs and gives some ideas on this task. Some of my friends refer some internet source and come up with rough coding idea.



I was guilty because I just wasted 3 hours in Lab and this is the first time I doing nothing at Lab.  One of my friend, Kiran guide me how to write the coding as I realized it actually easy if we understand if and else concept. He explained me his game adventure in order to understand more. Then, I draft my own story in piece of paper. My game adventure starts at an haunted old hotel. In my story, I create 10 rooms and at the end of my story, there have 2 ways that we could escape from the hotel: one is bathroom and second is balcony. I found some error in my coding and finally I fix it. Successfully, I could run my program and my story well executed there. I would like to thank Kiran who help throughout this task. Overall, it is an awesome experience and I could understand how difficult to create a game that we often play in laptop and hand phone as well.



Anjalay A/P Raman
182695
SSK3100 (Group 15)





Next blog: nadiahjavajourney.blogspot.com (NURNADIAH BINTI ABDUL GHANI)

Saturday, October 13, 2018

LAB 3

4th October is our fourth laboratory class for computer programming. Our 4th lab assignment   consists with 8 questions. To be honest, I just felt disappointed after scan the questions as it a lot as not usual as before task. We were given instructions on this task.

First, Second and Third questions are relate to one another. These 3 questions are quite simple as we already know the method and have practiced some exercises in the class. But, this time I was able to trace the program given in the question. At the end of output of my work in Excel and computer are shows same answer. From here, I can see the  functions of increment and decrements operators in coding.

Fourth questions is the type of boolean .  A Boolean value is one with who choices: True or False statement in Java. I refer this type of data in my lecture notes. We have some errors at beginning stage but finally run this program. From my observation I noticed that I should emphasized on the uses of enclosures involved in coding.

Fifth questions is quite interesting but I'm confused in output parts as it confuse the statements of before and after. However, I refer internet source on how to do this type of question and ask my friend too. Such questions need to be handle carefully as it  can confuse us.


Questions six,seven and last is quite hard because their coding is long and have to identify their inputs and processes. However, I tried to do it myself in my room as I successfully install "Java program" in my computer. There have 9 to 10 errors displays for 7th questions and manged to fix it. Last questions is "if statement" type and I could run the program. Overall, I realized that things getting harder and I should alert on questions.



Anjalay A/P Raman
182695
SSK3100 (Group 15)




Next blog: nadiahjavajourney.blogspot.com (NURNADIAH BINTI ABDUL GHANI)

Wednesday, October 3, 2018

LAB 2

27th September is our third laboratory class for computer programming. Our third week lecturer is actually continuous of  problem solving. So, our 3rd lab assignment is on it with consists 6 questions. We were given instructions as usual on this task.  

First question is about tracing a program and I managed to completed this questions. Question 2 and 3 is relate to the precious question by spotting an error and fix it. From my observation, I could said that I able to fix  it without having any doubtful and  I have been accustomed to some  errors as well. 

Fourth question is quite easy but very helpful as it built my confidence level to create a program for each data type available in Java. I google it some information regarding data types available in Java and I studied on it before creating a program. 

Next fifth and sixth are involved with designing solution to a problem using Problem Analysis Chart (PAC) and Input Process Output Chart (IPO) and solve the program with aid of PAC and IPO. I realized that constructing PAC and IPO is very helpful tools to solve an complicated or long questions as it will guide us throughout the questions. Since , PAC and IPO is new for me; therefore i refer some examples from internet on how to construct PAC and IPO. 

Overall, these lab work has been familiarize the Java program and I still have to work on and should avoid some petty mistakes on coding.

Anjalay A/P Raman
182695
SSK3100 (Group 15)



Next blog: nadiahjavajourney.blogspot.com (NURNADIAH BINTI ABDUL GHANI)

LAB 10 13th December is our tenth and last laboratory class for computer programming. Our 10th lab assignment consist 4 questions. Tod...