12/20/2012

Markah untuk test 1 BCS2233 OOP



Markah untuk test 1 adalah seperti berikut. Pelajar boleh dapatkan kertas masing-masing di bilik saya (kotak di luar bilik). Jawapan bagi test 1 adalah disertakan.

  


12/18/2012

STOP SMS Advertising

Communications and Multimedia Consumer Forum of Malaysia
http://cfm.org.my/ms

BCS1233 ALGORITHM DEVELOPMENT

No. Matric No. Course Quiz 1 Asgmt 1  Asgmt 2 (30) Asgmt 3 (20) (present asgmt 2) Test 1 (54)
1  12B08002  BCSC 8 29 19 15 34
2  12B08003  BCSC 4 32 15 18 51
3  12B08005  BCSC 10 35 15 18 51
4  12B08007  BCSC 10 27 29 20 54
5  12B08008  BCSC 2 32 27 19 44
6  12B08010  BCSC 10 26 19 16 37
7  12B08012  BCSC 5 29 19 15 47
8  12B08101  BCSC 10 27 29 20 38
9 12B08009  BCSC 10 27 29 20 46
10 12B08012  BCSC 6 26 19 16 37
11 12B08006  BCSC 10 35 15 15 41
12 12B08018  BCSC 10 35 15 15 34
13 12B08017  BCSC 2 32 27 19 54
14 12B08016  BCSC 2 32 27 19 51
15 12B08015  BCSC 4 32 15 15 39


Markah untuk quiz 1, Test 1, Assignment1,2 dan 3.

12/17/2012

DCT1133 Computer Maintenance. 18 Dec 12

Name:_______________________
Matric:_______________________
Course:______________________

Complete the following mind map; Write a name of devices for each category.

12/16/2012

SMS SCAM

1.TOPUP Cepat Susut
Jika anda merasa topup prepaid anda cepat susut walaupun tak banyak call- ada baiknya anda semak log call/sms/content purchase di https://onlinecustomerservice.celcom.com.my/ ( untuk celcom).


2. Content Purchase
Perkara yang sama berlaku pada saya. Semakan yang saya buat menunjukkan saya telah melanggan service daripada 33029. Setiap hari saya di kenakan RM2.50 dengan jumlah RM37.50 dalam tempah hampir sebulan.


3. Customer Service
Membuat panggilan kepada 1111 (celcom service center  untuk bertanyakan hal tersebut. Saya di beritahu bahawa kod 3XXXX adalah service luar (bukan celcom). Saya di minta membatalkannya dengan menaip "STOP ALL" dan hantar kepada 33029. 

Seterusnya saya menggunakan service di https://getsatisfaction.com/celcom/topics. "Responsenya" amat cepat dan sedikit maklumat tambahan saya perolehi iaitu saya telah melanggan content provider dari syarikat yang bernama Mestika Waras Sdn. Bhd. Pencarian saya di google tidak menjumpai sebarang maklumat tentang syarikat tersebut.


4. Kes-Kes Scam
Seterusnya saya dapati banyak terdapat kes-kes yang sama diperkatakan di forum-forum. Ramai pengguna tidak sedar dan tidak tahu bagaimana mereka melanggan service berkenaan. Mungkin ada "auto reply" di sebalik mesej-mesej iklan yang di hantar.



5. Pengesahan 
Langkah seterusnya - saya akan cuba dapatkan (daripada cawangan celcom)  "history" mesej saya kepada 33029. 

Mungkin pelajar & pembaca di luar sana ada pengalaman yang serupa?






12/08/2012

BCS2233 OOP : QUIZ 3

 Nama:________________________________
Matric:___________________________
Course:_________________________
*hantar sebelum jam 5:00pm  9/12/2012.
 
Answer any three (3) the following question :-
(Jawap mana-mana tiga (3) dari soalan berikut:-
  1. Describe the relationship between an object and its defining class.
    (2 Marks)
  2.  Describe Abstraction in object oriented programming.
    (2 Marks)
  3. What is  exceptions?   (2 Marks)
  4.  Explain the difference between a public and a private member of a class.
    (2 Marks)
  5. Explain the difference between a constructor and destructor.
    (2 Marks)
  6. What is inheritance and why use inheritance?  (2 Marks)

12/01/2012

BCS2233 OOP: CREATING CLASS

Write a class for each of the following specifications. In each case, include a constructor that set each member values to 0 and a member method named showdata() that can be used to display member values.

1. A class named TIME that has integer data members named SECS, MINS, and HOURS.                                

 2. A class named TRIANGLE that has integer data members LENGTH and WIDTH.  


3. A class named STUDENT that has string data members named NAME, ADDRESS and COURSE and a floating point data member named CPA.                



Jawapan untuk soalan 1.

class TIME {
private int SECS, MINS, HOURS;

TIME() {
SECS= MINS= HOURS=0;
}

public showdata() {
System.out.println("Second="+SECS);
System.out.println("Minute="+MINS);
System.out.println("Hour="+HOURS);
}

}

UML untuk class TIME  adalah spt berikut:

11/27/2012

BCS1223 AD latihan 28/11/12

Latihan Algorithm Development 28/11/12

Soalan 1

Soalan 2

Jawapan untuk soalan 1





BCS2233 OOP Class and Object

Power point slide untuk :-

Latihan untuk menguji kefahaman pelajar tentang object dan constructor
Tuliskan output untuk program berikut :-

public class TestRec {
    
    public static void main(String[] args) {
   
    Rectangle s4 = new Rectangle();
    System.out.println(" Perimeter s4=" + s4.per());
    System.out.println("Area s4 =" +s4.area());
    
        Rectangle segi4 = new Rectangle(3,5);
    System.out.println(" Perimeter segi4=" + segi4.per());
    System.out.println("Area segi4 =" +segi4.area());

}
}


class Rectangle {
double length, width;

double per()
{
 return 2*(length+width); }

double area()
{
 return length*width; }

Rectangle()
{
 width =1;
 length =2; }

Rectangle(double newwidth, double newlength)
{
 width =newwidth;
 length =newlength; }

}

11/24/2012

Class Activities 25 /11/2012


Class Activities 25 /11/2012 . Please submit before 5:00 pm in hard copy form.
Name :______________________
Matric:______________________
Course:_____________________



Please refer to Chapter 8 Objects and Classes (slide 4 to 7) + Google  to find the answer for the following questions.

QUESTION 1 (TRUE /  FALSE)

i) Object-oriented programming (OOP) involves programming using objects. (T/ F) 

ii)An object has both a state(also called properties or data field ) and behavior(also called methods). (T/ F) 

QUESTION 2 (SHORT ANSWER)

Consider the following class and answer the questions below:-


i) What is the name of the above class?


ii)List the state of the above class.


iii) List the behavior of the above class.


iv) What is Constructor






11/20/2012

BCS1223 EXERCISE "FOR LOOP"

1. Draw a flowchart to input an integer and calculate it factorial.


 2. Draw a flowchart for computing and printing the simple interest rate for 1 to 10 years at the rate of 3% per annum on an investment of RM 100.



Terima Kasih untuk pelajar atas sumbangan jawapan.

11/18/2012

Assignment 2 BCS 1223 AD

1. A University has 3000 students. These students are divided in four catogeries:

i) B. Tech
ii) M. Tech
iii) M.S
iV) Ph.D

Write an algorithm or for finding the percentage of the students in each category.

 2. Write an algorithm  for a program that prompts the user to enter the number of students and each student's name and score, and finally displays the student with the highest score


 3. Write an algorithm  for a program that reads an unspecified number of integers, determines how many positive and negative values have been read, and computes the total and average of the input values, not counting zeros. Your program ends with the input 0. Display the average as a floating-point number. (For example, if you entered 1, 2, and 0, the average should be 1.5.)



11/06/2012

BCS1233 AD Jawapan Test 1




BCS2233 OO Markah Quiz 1 dan Asgmt 1




No. Matric No. Course Quiz 1 (17) Asgmt 1
1  12B07101  BCNS   22
2  12B07102  BCNS   30
3  12B07104  BCNS 15 14
4  12B07106  BCNS   39
5  12B07107  BCNS   37
6  12B07108  BCNS 15 37
7  12B07109  BCNS 15 39
8  12B07110  BCNS   30
9  12B07111  BCNS   37
10  12B07112  BCNS 15 37
11  12B07114  BCNS   35
12  12B07115  BCNS 15 38
13  12B07116  BCNS 14 28
14  12B07118  BCNS   35
15  12B07119  BCNS 14 28
16 12B04108 BCBM 15 39
17 11B04018   13 22




No. Matric No. Course quiz1 (17) Asgmt 1
1  11B04002  BCBM 8 23
2  11B04003  BCBM 8 39
3  11B04004  BCBM 15 36
4  11B04005  BCBM 8 39
5  11B04006  BCBM 8 17
6  11B04007  BCBM 12 23
7  11B04008  BCBM 15 39
8  11B04009  BCBM 12 31
9  11B04012  BCBM 9 27
10  11B04013  BCBM 7 33
11  11B04016  BCBM 8 27
12  11B04017  BCBM 15 31
13  11B04018  BCBM 13  
14  11B04022  BCBM 7 33
15  11B04023  BCBM 10 30
16  11B04025  BCBM 8 36
17  11B04105  BCBM    
18  11B04106  BCBM 12 30
19 12B04108  BCBM   39

11/05/2012

BCS 2233 OOP Assignment 2


1. You are required to provide (i) Algorithm (Flowchart or  Pseudocode)  and (ii) Java program for each of the following problems.

I. Write a program for finding the sum of first 100 even numbers starting from 0.

II. Read 10 integers and find the total of even number and odd number entered.

III. Read 10 integers and find the total of positive number and negative number.

IV. Write a program that prompts the user to enter the number of students and each student's name and score, and finally displays the student with the highest score.




2. Write method headers for the following methods:
  1. Computing a sales commission, given the sales amount and the commission rate.
  2. Printing the calendar for a month, given the month and year.
  3. Computing a square root.
  4. Testing whether a number is even, and returning true if it is.
  5. Printing a message a specified number of times.
  6. Computing the monthly payment, given the loan amount, number of years, and annual interest rate.
  7. Finding the corresponding uppercase letter, given a lowercase letter.
3.
(Converting an uppercase letter to lowercase) Write a method that converts an uppercase letter to a lowercase letter. Use the following method header:
public static char upperCaseToLowerCase(char ch)
4.
(Computing commissions) Write a method that computes the commission, using the following rate table . The header of the method is:
public static double computeCommission(double salesAmount)

Sales Amount                      Commission Rate
$0.01–$5,000                        8 percent
$5,000.01–$10,000             10 percent
$10,000.01 and above        12 percent

11/03/2012

BCS2233 QUIZ 2 (CHAPTER 4 LOOPS)


QUIZ 2 (CHAPTER 4 LOOPS)
Name:_______________
Matric:______________

Please submit before 5:00 pm 4/11/12.

SECTION A

  • 1. There are three types of control statements: sequence, selection, and repetition. (T/F)

    2.There are three types of repetition statements: the while loop, the do-while loop, and the for loop.(T/F)


  • 3. In while loop, if the condition is false, the loop body is executed; if it is true, the loop terminates. (T/F)


    4. The do-while loop is similar to the while loop, except that the do-while loop executes the loop body first and then checks the loop-continuation-condition to decide whether to continue or to terminate.(T/F)


  • 5.The while loop and the do-while loop are often used when the number of repetitions is unspecified.(T/F)


    6. The for loop control has two parts. The first part is an initial action that often initializes a control variable. The second part, the loop-continuation-condition, determines whether the loop body is to be executed. (T/F)


  • 7. The for loop is generally used to execute a loop body a predictable number of times; (T/F)

    SECTION B


11/01/2012

DCT1033 P1 : Markah Penilaian EI

Sila semak markah anda. Jika ada kesilapan- sila maklumkan pada saya.  Pelajar yang belum menghantar mana-mana tugasan sila hantar sebelum 7/11/12 (akan di tolak markah atas kelewatan).


No. Matric No. Course Quiz 1 Nota / Quiz 2 Quiz 3 TOTAL QUIZ (10%) Test 1 (51) Test 1 (100%) Test 2 (29) Test 2 (100%) TOTAL TEST (20%) asgmt 1 (58) Asgmt 2 (63) TOTAL ASGMT (30%) TOTAL CARRY MARKS (60%)
1  11A06013  EI           0.0   0.0          
2  11A06044  EI           0.0   0.0          
3  11A06065  EI           0.0   0.0          
4  12A06001  EI 8 5 8 8.4 43 84.3 23.0 79.3 16.4 52 54 26.3 51.0
5  12A06002  EI 6 0   2.4 15 29.4 16.0 55.2 8.5 38 29 16.6 27.5
6  12A06003  EI 8 5 6 7.6 40 78.4 17.0 58.6 13.7 45 34 19.6 40.9
7  12A06004  EI 6 5 3 5.6 29 56.9 22.0 75.9 13.3 45 33 19.3 38.2
8  12A06005  EI   0   0   0.0 18.5 63.8 6.4   21 5.2 11.6
9  12A06009  EI 6 5 5 6.4 23 45.1 22.0 75.9 12.1 44 36 19.8 38.3
10  12A06010  EI 10 0   4 31 60.8 15.0 51.7 11.3 40 19 14.6 29.9
11  12A06011  EI 10 0 6 6.4 18 35.3 17.0 58.6 9.4 33 43 18.8 34.6
12  12A06012  EI 7 0 8 6 42 82.4 21.0 72.4 15.5 42 44 21.3 42.8
13  12A06014  EI   5 10 6 32 62.7 17.0 58.6 12.1 52 30 20.3 38.5
14  12A06017  EI 6 5 6 6.8 29 56.9 16.0 55.2 11.2 49 38 21.6 39.6
15  12A06018  EI 6 5 10 8.4 33 64.7 19.0 65.5 13.0 46 35 20.1 41.5
16  12A06020  EI 6 0   2.4   0.0 18.5 63.8 6.4   28 6.9 15.7
17  12A06021  EI 6 0   2.4   0.0   0.0 0.0     0.0 2.4
18  12A06023  EI   0   0 41 80.4 17.0 58.6 13.9 47 44 22.6 36.5
19  12A06024  EI 8 4 7 7.6 13 25.5 19.0 65.5 9.1 42 44 21.3 38.0
20  12A06025  EI 10 5 6 8.4 43 84.3 18.0 62.1 14.6 37 47 20.8 43.9
21  12A06026  EI 2 4 8 5.6 39 76.5 20.0 69.0 14.5 51 28 19.6 39.7
22  12A06027  EI   0   0 16 31.4   0.0 3.1 30   7.4 10.6
23  12A06028  EI 4 0 9 5.2 28 54.9 20.0 69.0 12.4 31 32 15.6 33.2
24  12A06029  EI   0   0   0.0   0.0 0.0   44 10.9 10.9
25  12A06030  EI 4 5 6 6 23 45.1 17.0 58.6 10.4 37 44 20.1 36.5
26  12A06031  EI 8 5 10 9.2 43 84.3 21.0 72.4 15.7 55 30 21.1 45.9
27  12A06033  EI 9 0 10 7.6 31 60.8 21.0 72.4 13.3 49 35 20.8 41.7
28  12A06034  EI 8 0 10 7.2 41 80.4 20.0 69.0 14.9 55 38 23.1 45.2
29  12A06035  EI 9 0 10 7.6 26 51.0 22.0 75.9 12.7 55 35 22.3 42.6
30  12A06036  EI 4 4 6 5.6 28 54.9 18.0 62.1 11.7 41 44 21.1 38.4
31  12A06037  EI 9 0 8 6.8 10 19.6 17.0 58.6 7.8   34 8.4 23.1
32  12A06038  EI 4 5 6 6 13 25.5 18.0 62.1 8.8 46 29 18.6 33.4
33  12A06041  EI 2 4 10 6.4 16 31.4 17.0 58.6 9.0 50 28 19.3 34.7
34  12A06044  EI 7 5 6 7.2 26 51.0 18.0 62.1 11.3 35 41 18.8 37.3
35  12A06045  EI 6 4 10 8 41 80.4 20.0 69.0 14.9 53 28 20.1 43.0
36  12A06046  EI 6 0 10 6.4 25 49.0 21.0 72.4 12.1 42 31 18.1 36.6
37  12A06047  EI 8 0 8 6.4 29 56.9 17.0 58.6 11.5   39 9.7 27.6
38  12A06048  EI 8 5 3 6.4 40 78.4 20.0 69.0 14.7 49 43 22.8 43.9
39  12A06049  EI 4 4 5 5.2 27 52.9 20.0 69.0 12.2 41 44 21.1 38.5
40  12A06052  EI 4 4 9 6.8 35 68.6 18.0 62.1 13.1 39 33 17.9 37.7
41  12A06053  EI 10 4   5.6 37 72.5 20.0 69.0 14.2 38 27 16.1 35.9
42  12A06054  EI 10 4   5.6 36 70.6 17.0 58.6 12.9 39 31 17.4 35.9
43  12A06055  EI 8 4   4.8 9 17.6 14.0 48.3 6.6 41 21 15.4 26.8
44 12A14008 EI 2 0 3 2 23 45.1 17.0 58.6 10.4 40 36 18.8 31.2
45 12A06013 EI 4 5   3.6 26 51.0 20.0 69.0 12.0 44 44 21.8 37.4

12A03046 EI
5 6 4.4 15 29.4 18.0 62.1 9.1 35 43 19.3 32.9





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