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!
Next blog : saiful21ikhwan.blogspot.com