10/12/2010

Vbuster

Setiap komputer memerlukan perisian "antivirus" bagi membolehkan ianya beroperasi dengan baik dan menghalang kehilangan data.












Antivirus

Antara perisian "antivirus" yang terkenal dewasa ini adalah Kaspersky, Avira , Avast serta lain-lain lagi.

VBuster

Pada tahun 1991 terdapat satu "antivirus" jenama malaysia yang bernama VBuster. Perisian tersebut di hasilkan oleh Dr. Looi Hoong Thoong yang berasal dari pulau pinang. Beliau
bukan berlatarbelakangkan (pendidikan) komputer sebaliknya Pemegang Ijazah Sarjana Muda Arkitektur. Namun minat yang mendalam terhadap bidang komputer dan perisian membolehkan beliau menghasilkan perisian tersebut. Saya sempat menggunakan VBuster ketika berada di UTM sekitar tahun 1993. VBuster tidak memerlukan sebarang installation,saiznya kurang dari 1 MB. Ianya masih di jual sehingga kini dan dikatakan boleh mengesan sehingga 750,000 virus. Kosmo telah membuat temubual istimewa dan artikel bertarikh 12/10/2010 tersebut boleh di baca dari pautan berikut. Laman web rasmi Vbuster boleh di dapati daripada pautan berikut. Anda boleh muat turun secara percuma perisian (demo) tersebut.

BCS2234 13/10/ 2010 String Class


Section 8 The String Class
8.1
Suppose that s1, s2, s3, and s4 are four strings, given as follows:
String s1 = "Welcome to Java";
String s2 = s1;
String s3 = new String("Welcome to Java");
String s4 = s3.intern();
What are the results of the following expressions?
(1)A s1 == s2
(2) s1 == s3
(3)A s1.equals(s2)
(4) s2.equals(s3)
(5) s1.compareTo(s2) (15) s1.substring(5, 11)
(6) s2.compareTo(s3) (16) s1.startsWith("Wel")
(7) s1 == s4 (17) s1.endsWith("Java")
(8) s1.charAt(0) (18) s1.toLowerCase()
(9)A s1.indexOf('j') (19) s1.toUpperCase()
(10) s1.indexOf("to") (20) " Welcome ".trim()
(11) s1.lastIndexOf('a') (21) A s1.replace('o', 'T')
(12) s1.lastIndexOf("o", 15) (22) s1.replaceAll("o", "T")
(13) s1.length() (23) s1.replaceFirst("o", "T")
(14)A s1.substring(5) (24) s1.toCharArray()
8.4
(Occurrences of a specified character) Write a method that finds the number of occurrences of a specified character in the string using the following header:
public static int count(String str, char a)
For example, count("Welcome", 'e') returns 2.
8.6
(Counting the letters in a string) Write a method that counts the number of letters in the string using the following header:
public static int countLetters(String s)
Write a main method to invoke countLetters("Java in 2008") and display its return value.
8.8
(Binary to decimal) Write a method that parses a binary number as a string into a decimal integer. The method header is as follows:
public static int parseBinary(String binaryString)
For example, binaryString 10001 is 17 (1 x 24 + 0 x 23 + 0 x 22 + 0 x 2 + 1 = 17) So, parseBinary("10001") returns 17. Use binary string 11111111 to test the method. Note that Integer.parseInt("10001", 2) parses a binary string to a decimal value. Do not use this method in this exercise.
Solutions
8.1 (1) True
8.1 (3) True
8.1 (9) -1
8.1 (14) me to Java
8.1 (21) WelcTme tT Java
Solutions for 8.4 is provided by shah. Click on comments section.
8.6

9/28/2010

BCS2234 27/9/ 2010 Lab OOP (defining class for objects) 2




Design a class named Rectangle to represent a rectangle. The class contains:
  • Two double data fields named width and height that specify the width and height of the rectangle. The default values are 1 (one) for both width and height.

  • A string data field named color that specifies the color of a rectangle. Hypothetically, assume that all rectangles have the same color. The default color is white.

  • A no-arg constructor that creates a default rectangle.

  • A constructor that creates a rectangle with the specified width and height.

  • A method named getArea() that returns the area of this rectangle.

  • A method named getPerimeter() that returns the perimeter.

*Please refer to previous lab activities as a guidance

9/27/2010

BCS2234 27/9/ 2010 Lab OOP









Design a class named Rectangle to represent a rectangle. The class contains:
  • Two integer data fields named width and height that specify the width and height of the rectangle. The default values are 1 (one) for both width and height.

  • A constructor that creates a default rectangle.

  • A constructor that creates a rectangle with the specified width and height.

  • A method named getArea() that returns the area of this rectangle.


**
* @(#)class_rec.java
*
* class_rec application
*
* @author
* @version 1.00 2010/9/27
*/

public class class_rec {

public static void main(String[] args) {

// TODO, add your application code
System.out.println("Hello World!");
rectangle myrectangle = new rectangle(3,4);
System.out.println(myrectangle.width + " " + myrectangle.length);
System.out.println(myrectangle.getArea());


rectangle yourrectangle = new rectangle();
System.out.println(yourrectangle.width + " " + yourrectangle.length);
System.out.println(yourrectangle.getArea());

}
}


class rectangle {
int width, length;

rectangle() { // constructor for default rectangle
width =1;
length =1;
}

rectangle(int newwidth, int newlength) { // constructor for specified width and height.
width =newwidth;
length = newlength;
}

int getArea() // getArea()method
{
return width*length;
}

} //end rectangle class

9/21/2010

BCS2234 Test 1

Topics Covered:- Chapter 1 to Chapter 5
Questions Type:- Definition, Identify identifier, Evaluate Math Expression , write a java program on various loop , Write a header of methods.

Date : 30/9/2010
Time : 11:00 am - 12:30 am

This is an open book test.

Cara download Installer windows 10 dalam format ISO

1. Jika anda bercadang untuk download windows 10 melalui website rasmi windows - pilihan untuk download dalam format ISO tidak di berikan.  ...