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

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