Wednesday, 26 September 2018

LAB 1

Hello everyone! Today is the second lecture for computer programming subject. For today assessment, we are given task which is problem solving.
We have three question to be solved. Actually for this activities, Dr Erzam helps us to be more understand about how to write the java program. This is because for the previous class, we are just doing the basic one and many student confuse about that.

Question 1.
For this question, we need to identify and fix the errors and we need to write it in separate java files. The question is given below.

Test 1

Question

Answer :




Test 2


Answer :


Test 3



Answer :

Test 4


Answer :


Test 5


Answer :


Test 6


Answer :


Test 7

Answer :

Test 8


Answer :

Test 9


Answer :


Test Celsius To Farenheit


Answer : 


Test Welcome


Answer :

From the above activities, i have corrected all the mistakes that i found. Here is the result when i test all of the test above using java programme. From this activities also, i can know where is the mistakes when i do it many times. I can see that when I do a lot of exercise, I may be more understand about it.

Question 2

For the next question, i have been given 3 sub questions which are : 



Answer : 

Data
Processing
Output
Acre of land in square feet.
Calculate number of acres  in a tract of a land.
Total acres for a land with 389,767 square feet.



Answer :

Data
Processing
Output
Test scores
Calculate average test scores.
Average of three test scores.



Answer : 

Data
Processing
Output
Percentage of profit.
Calculate retail price of a circuit board

Calculate the amount of profit earned for that product.
The retail price of a circuit board.

The amount of profit earned for that product.


From Question 2, I learn on how to analyze the problem using Problem Analysis Chart (PAC). This chart will help students to do this java program. The advantages of doing PAC is it can shows the data that we have and from there, we can calculate the projected outcome. Once we have done that, we can figure out our next step and any other alternative solutions. For me, it is better for students to do this PAC as it can reduce the mistakes that we may be done.

Question 3 

From Question 3, I need to choose one of the following problems and analyze using PAC and after that I need to write complete Java program to solve it. I choose to answer for Question 3(a) which is :



Answer : 

Data
Processing
Output
Airplane’s length for take-off speed.

Airplane’s acceleration.
Calculate runway length needed for an airplane to take off
Length for an airplane to take off.





From this activities, it also can helps us to be more understand about Java program. I think that we should use it before doing Java program so that we can analyze what is our mistakes when we done something wrong. 

Thank you readers. Till we meet again! 

Wednesday, 19 September 2018

New Experience in Programming


Assalamualaikum and hi! 
Actually this is my first time to learn about programming. I am thankful to the university that make this subject is compulsory in my course so that I can learn little bit about programming. Before this, I am always hear that programming is quite difficult work so I respect those who work on this field. 

For the first class, I have learnt about introduction to programming. For the first topic, Dr Erzam teach us to understand about the programming environment and teach us how to write, compile and run a simple computer program written in Java.

At first, I am quite confused because I didn't have any experiences in programming. This is my first time in my life I learn programming. When I learn about this topic, I know how to run a simple computer program written in Java. First of all, I need to make sure that the computer have two tools which are an editor to write content of the program and a compiler that will compile the written program to instructions that can be executed by the computer.

I have learnt to use windows command prompt to browse around existing folder in my computer. Windows command prompt is a program that provides a non-graphical interface for user
direct communication to the operating system. When I learn about this, I am already know that it is quite challenging to open the folder using this step because before this, I just click only straight to the folder that I want. But now I need to use windows command prompt to open the folder.

Other than that, I learn how to create a folder by typing 'mkdir <my name>' and inside the folder I need to create another folder named 'Lab0' . For this step, I feels easy to do, but for the second step which is compiling the written program, i feel confused and quite difficult. I am trying for many times and lastly I can get the answer which is the words 'Hello World'.

I am very happy when I can get the answer finally after my hard work. Now, I can understand how to run a simple program written in Java. I am waiting for the next task for this subject. Hope that I can understand more in this subject. Amin. Thank you Dr Erzam for teaching me this subject.




Thank you for reading my story. 




Lab 10

Hello everyone! Now is our Lab 10 exercise. For this topic, we learn  Multi-Dimensional Array and having lab for this sub-topic. We learn ho...