Thursday, December 20, 2018

LAB 10


13th December is our tenth and last laboratory class for computer programming. Our 10th lab assignment consist 4 questions. Today topic is Array. Java provides a data structure, the array, which stores a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type. This topic is quite confusing and difficult for me.

Although, this lab consist only 4 questions but the solutions are very long. Before attempt these questions, we should ensure understand the concept because the questions are quite tricky. I did all these 4 questions by discussing with my friends. Every question approximately took 1 to 2 hours to solve and get a correct output. We also search some examples in internet. First and Last questions is quite challenging because it took time to understand the concept. However, I managed to get output from user. Overall, I learnt how to define, declare and process array. In addition, I also learnt how to solve problem using array. 

Sadly, this is my last Lab assignment. Successfully I have done all my Labs except Lab8. I am happy for myself as I learnt a lot from the lectures. I also want Thank few peoples, include my lecture,Dr Erzam, my demo, Miss Husna, my fellow friends who help and guide me in this whole semester. Thank You and BYE.


Anjalay A/P Raman
182695
SSK3100 (Group 15)




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







Friday, December 14, 2018

LAB 9


6th Disember is our ninth laboratory class for computer programming. Our 9th lab assignment consist 9 questions. Today topic is Single-Dimensional Array. Single-Dimensional Array is a type of linear array. Accessing its elements involves a single subscript which can either represent a row or column  index. This topic is one of my favourite because I able to understand how this concept work.

First question is about the basic concept of Single-Dimensional Array. Actually, I was confused abit at this part as they asked us to write a statement. I was happy because I did question 2, 3, 4 and 5 by myself as I understand deeply. From question 6 to 8 are quite challenging but I manage to finish it by discussing with my friend.

The last question is quite difficult because we have to write FindingRoot program. At first, the questions a bit confusing but later on my friend explain the concept. Although, it tooks time to get output.

Overall, I able to declare, create, initialize and process single-dimensional array. Also, I can  program common array operations and apply array in application development from this end of the exercise. 


Anjalay A/P Raman
182695
SSK3100 (Group 15)




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



LAB 8


22nd November is our eight laboratory class for computer programming. Our 8th lab assignment consist 5 questions. We cover a new concept which is method where it's very useful in programming. A method is a set of code which is referred to by name and can be called (invoked) at any point in a program simply by utilizing the method's name. Think of a method as a subprogram that acts on data and often returns a value. Each method has its own name. I am able to understand about 50% only during the lecturer. 

My lecturer gave us 2 weeks for this laboratory. However, I could not able to finish this lab assignment as I stop at second question. The rest of 3 questions are difficult and quite confusing too. It took a lot time to identify the error for two questions in my coding.  But, I manage to get the output from user. From this lab, I learnt to define and invoke various types of methods.


Anjalay A/P Raman
182695
SSK3100 (Group 15)




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






Saturday, November 24, 2018

LAB 7


15th November is our seventh laboratory class for computer programming. Our 7th lab assignment consist 10 questions. Although there are so many questions, however from question 1 to 6 are basic of loops. We cover a new topic which is Loops where it's very vital in programming.We used Loops in order to solve the problem that doing the same task over and over for different sets of data. Before doing lab, I am still could not capture the concept of loops and how actually it work. During the lecturer also I am still lost on this topic.

In the lab, I saw some videos about loops in Youtube. Then, I also study loops in lecturer notes before start my lab work. It takes 1 hour for me to understand how it works. I able to answer 6 question by myself. Question 7 is quite challenging  as it tooks time where I should  insert the loop. Yet, I refer  my friend tn this questions. At the end of this lab, I able to write programs for executing statements repeatedly; nested loops and how to apply loops in solving computational problems.  From this assignment, I well understand the uses of while, do while, for, break and continue.

Overall, this lab assignment has increased my understanding on Loops and I realise its very beneficial concept in programming language.



Anjalay A/P Raman
182695
SSK3100 (Group 15)




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


Wednesday, November 14, 2018

LAB 6


25th October is our sixth laboratory class for computer programming. Our 6th lab assignment consist 6 questions. The lab covered Character and String class. During the class, I still blur this topic but eventually this lab helped me read strings and characters from the console, also declaring and manipulating strings and character using methods provided by Character and String class.

I have difficulty on first question and last question. Even though the first question is about finding output but I do not understand the equation in System out println. Then, I able to understand after asked my friend,Patrina to interpret the equation. Next question is quite challenging for me as it requires writing a program that prompts the user to enter a password and displays Valid Password if the rules are followed or Invalid Password otherwise. I did this question in my house as I could not solve by myself because I was trapped in executing the password rules as given. I saw some examples in internet and it took time for me to get the final output. From this lab assignment, I also aware about ASCII code after question 5.

Overall, this lab assignment has increased my understanding of String.


Anjalay A/P Raman
182695
SSK3100 (Group 15)




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

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)

Wednesday, September 26, 2018

LAB 1

20th September is our second laboratory class for computer programming. Our second week lecturer is about problem solving. Therefore, our 2nd lab assignment is on it with consist 3 questions. We were given instructions as usual on this task.  First questions is to practice of identifying common errors and fix it. At first, I rewritten the encoding and ran the program. Then, there have some error display on cmd and I try to fix it. Later on, there have one error keep mentioning and I could not fix it on that error . I refer some of my friends but there have not such problem exist in their coding. I almost wasted 2 hours on this part. Be honest, I just frustrated on these assignment and give up on it. Then my demon check my notepad and stated the problem. The first line with begins with "public class file name' should be same with the name we save in Java file. Finally, I managed to correct my error, complete my first questions and almost it took 1 and half hour. 


Due to time constraint, I tried to draft some ideas for the rest of two questions  in room. I continue my lab work on next Monday. Second is question is about  to design solution to a problem using Program Analysis Chart. I made a comparison with my draft and my another friend in Lab. There were few  differences slightly on both answer but we manage to design  it successfully in word. 

Third question is quite challenging for me as it require to compile and run a simple computer program based on PAC.  We have to choose either one question and I took a. At first, I discuss with my friend regarding this problem and manage to do coding in notepad. It almost takes 1 hour to completed it. Overall, the mistakes that I made in beginning makes vigilant toward further coding. I would like to thank my friend who spent some time to fix the error. 


Anjalay A/P Raman
182695
SSK3100 (Group 15)


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




Wednesday, September 19, 2018


REFLECTION: LAB0

13th September is our first lab class for computer programming. Our first lecture begins with introduction to computer components. Then, our lecturer gave us one lab assignment  in order to familiarize with the lab and programming world. We were given instructions on this task. At first, I does not understand how to execute the instructions step by step since its very new for me. I refer my friend and asked to explain about it. Then, I try to do it myself  on compiling and running a simple computer program written in Java. I get to know the importance of using the command “cd” to go the parent directory, “dir” to list all the files in a directory and “mkdir” is to create a folder in the hard disk with my name. I able to complete until no3 by typing the code that given and I saved it as MyFirstJavaProgram.java in Lab0. Then, I stuck on No 4 because it could not able to run my program. After few attempts only I able to run the program and successfully it display Hello World. Overall, it is new experience and I am sure it would be a challenging subject as I have no programming background. However, I am very excited to do more lab work regarding this programming.



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