Aug 8, 2008
Sarcastic and Sarcasm...
sarcastic
adj. showing or expressing sarcasm.
sarcasm
n. a way of using words that are the opposite of what you mean in order to be unpleasant to sb or to make fun of them.
I learnt many literary devices and one of it is irony which most often known as sarcastic irony. It came out during the English Test -- which makes people thinking of suicide -- haha. 'Hambar sungguh cerita pasal test ini.'
Really fun to use this word.
You can read article on sarcastic at http://www.livescience.com/history/080620-hn-sarcasm.html
That article is about how the brain comprehends sarcastic -- a health articles. Also do refer to the picture above.
But, most important, I want to share a movie -- The Onion: Report - 70 Percent of All Praise Sarcastic -- Imagine that! How often people have done sarcastic to you.
Aug 5, 2008
Java, java and java
Java, java and java. Why don't you give it a try. That's what we learn everyday in computer class. Salman is a good student, who always did programming fast. The same goes to Helmi, Muhammad Thaqif and Amiruddin. Among all, Ong Shang Khoon will be called if there only limited time, because Mr Hiung view him as a very good student. And, also Prasshant. Aye Thun progress better from day to day. Farah and Farihin are two malays girls, in the beginning, always been asked questions. Tey Pok Lin... No comment.
Other students - There are all great! - Anderson, Chung Nian Yi, Goh Xin Ying, Joshua, Juzer, Lim Shao Xian, Liong Siew Chek, Muzammil, Stephen, Zaw Linn Naung.
I have listed all my classmates. That's not bad.
Tomorrow is the java lab assignment. Students are to answer the question, and can refer to any resource except discussing or chatting with friends.
I have made note below for me and some who knew this blog to refer tomorrow.
Before that, let me try to recall important things:
** Use correct data types
** Use correct variables
** Use str for String
** Make the program readable
** \\Write comments (2marks)
** constant, CAPITAL_LETTER
** Class name - begin with Capital letter
[sampleCodes]
CalculateSquareRoot
import MyInput;
public class CalculateSquareRoot {
public static void main(String[] args) {
//read the integer from the user
System.out.println("Please enter an integer: ");
double num = MyInput.readDouble();
//compute the square root of this integer
double squareRoot = Math.sqrt(num);
//display the output on the screen
System.out.println("The square root of " + num + " is +/- " + squareRoot);
CalculateAreaJOptionPane
//constant
final double PI = Math.PI;
//read the radius from the user
String str = JOptionPane.showInputDialog(null, "Please enter the radius: ",
"First Radius Input",
JOptionPane.QUESTION_MESSAGE);
double radius = Double.parseDouble(str);
//compute the area of a circle
double area = Math.pow(radius,2) * PI;
//display the answer on the screen
JOptionPane.showMessageDialog(null, "The radius is " + radius + " \nThe area is: " +
area, "Area Result",
JOptionPane.INFORMATION_MESSAGE);
System.exit(0); //terminate program normally
CalculateArea
//constant
final double PI = Math.PI;
//read the radius from the user
System.out.println("Please enter the radius: ");
double radius = MyInput.readDouble();
//compute the area of a circle
double area = PI * Math.pow(radius,2);
//display the answer on the screen
System.out.println("The radius is " + radius);
System.out.println("The area is " + area);