4/26/2015

BCS2233 OOP: Assignment 3



1. Explain the following terms:-

a). Class
b). Object
c). Instances
d). Public
e). Private
f). Super Class
g). Inheritances.



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

a). A class named time that has integer data members named secs, mins, and hours.

b). A class named rectangle that has integer data members named height and length.

3. Create a base class named Point consisting of x and y data members representing point coordinates. From this class, derive a class named Circle with another data member named radius. For this derived class, the x and y data members represent a circle’s centre coordinates. The member method of the Point class should consist of a constructor that set the value for x and y to 0, an area() method that return 0, and distance() method that returns the distance between two points, (x1,y1) and (x2,y2), where


Additionally, the derived class should has an overided method named area() that return’s a circle area

Area = 3.14 x radius2.

Draw UML diagram that for the class Point and class Circle.


4/19/2015

BCS2233 OOP: LAB WEEK 12

Tuliskan semula  program java berikut dan 'run'. Tuliskan output yang terhasil. Yang manakah di katakan sebagai  'constructor' (dalam program java).

4/18/2015

BCS1333 Markah quiz 2 ujian 1 (ulangan)

Berikut adalah markah bagi quiz 2  test 1 (ulangan) 

NO NAME COURSE MATRIC quiz 2 (10) Test1(#2) 100%
1 CHE KU NOR FARAH AIN BT CHE KU HASSAN 1BCBM 14B04001 10 87.2
2 NUR ATHIRA BT AMAN 1BCBM 14B04015 10 95.7
3 NOR AIN AQIRA BT KAMAR 1BCBM 14B04013 10 95.7
4 NORFARHANA BT OMAR 1BCBM 14B04014 10 93.6
5 NURUL AMALINA BT ISMAIL 1BCBM 14B04019 10 93.6
6 SITI NURFARHAN BT KAMAR JEHAN 1BCBM 14B04024 10 100.0
7 NOOR NAFIZAH BT MOHD RODZI 1BCBM 14B07012 10 74.5
8 NURUL DIYANA BT YAHAYA 1BCBM 14B04029 8 93.6
9 SYAZWANI BT NGAH @ MOHD NOOR 1BCBM 14B04026 8 95.7
10 NAJWA SYAHIRAH BT SUHAIDI 1BCBM 14B04011 10 93.6
11 NURUL AINA MADIENA BT MAD DAHAN 1BCBM 14B04018 10 93.6
12 HANI DALILA BT RADZALI 1BCBM 14B04003 10 87.2
13 NURUL ZUHAIRAH BT RAZALI 1BCBM 14B04022 10 93.6
14 NUR FATIMAH BT MOHD ROSLY 1BCBM 14B04017 10 85.1
15 SAZARUL SYAFIQAH BT ZAKARIA 1BCBM 14B04023 10 95.7
16 NURUL SHAHIRAH BT MOHD NOOR 1BCBM 14B04021 8 93.6
17 MOHAMOD IKHWAN BIN MOHD ZUKI 1BCBM 14B04004   0.0
18 MUHAMMAD THAQIF BIN MOHD TAUFEK 1BCBM 14B04030 9 83.0
19 KAMARUL AIMAN BIN KAMARAZI 1BCBM 14B04028 4 80.9
20 FAIZ NOOR HAFIZ BIN MOHD ALWE 1BCBM 14B04027 4 91.5
21 IZZAT ARSYAD BIN AWANG 1BCBM 14B04005 10 84.0
22 MUHAMMAD RIZAL RIDZUAN BIN HASHIM 1BCBM 14B04009 5 72.3
23 KAMARUL NAZERI BIN IBRAHIM 1BCBM 14B04006 3 97.9
24 MUHAMMAD ALEFF BIN HAZNI 2BCNS 14B07010 10 91.5
25 MOHAMAD FAHMI BIN RAFEZIN 2BCNS 14B04007 10 85.1
26 MOHAMAD IKHWAN BIN MOHD ZUKI 2BCNS 14B07004 10 95.7
27 MOHD IZAHAR BIN ZAKARIA   14B07006 10 89.4
28 MUHAMMAD NAFIZ IKHSAN BIN MUHAMMAD   14B07027 10 93.6
 29 MOHD HISHAMUDDIN WAHAB   12B07110   76.6


BCS1333 Assignment 2 & Assignment 3

ASSIGNMENT 2

1. Describe the differences among short-term and long-term scheduling.

2. Describe the actions taken by a kernel to context-switch between processes.
3. The benefits of multithreaded programming can be broken down into four major categories (Responsiveness, Resources Sharing, Economy, utilization of multiprocessor): Briefly explain each of them.
4. Explain the three models of multithreading.

ASSIGNMENT 3
1.      There are five criterions that have been suggested for comparing CPU scheduling algorithms. List and briefly explain each of them.

2.      Consider the  following set of processes that arrive at time 0, with the length of the CPU burst given in milliseconds:

Process                        Burst Time                         Priority
P1                                 15                                3
P2                                 10                                1
P3                                 3                                  3
P4                                 5                                  2
P5                                 9                                  4
The processes are assumed to have arrives in order P1,P2,P3,P4,P5 all at time 0.
a.      Draw four Gantt charts that illustrate the execution of these processes using the following scheduling algorithms : FCFS, SJF, nonpreemptive priority ( a smaller priority number implies a higher priority), and RR (quantum = 5).

b.      What is the average waiting time of each process of the scheduling algorithms in part a?

c.        What is the turnaround time of each process of the scheduling algorithms in part a?

d.      Which of the algorithms in part a results in the minimum average waiting time (over all processes)?

3.      A file attribute is metadata that describes or is associated with a computer file. Typically there are 7 common file’s attributes. Briefly explain each of them.





4.      There are four (4) pieces of information are associates with an open file. Explain each of them


4/04/2015

BCS1333 OS: 5 April 2015

'Test 1' akan di adakan pada ketetapan berikut:-
Tarikh : 12/4/2015
Masa : 8.30 am - 9:30 am
Chapter: 2- OS Structures, 3- Processes, 4: Threads



Latihan Chapter 5: CPU Scheduling

  Consider the following table 4.1. Four processes are arrived at time 0, with the length of the CPU burst given in milliseconds:

Process          Burst Time     _______ * Priority
P1                                10                                3
P2                                15                                1
P3                                3                                  3
P4                                5                                  2
*smaller priority number implies a higher priority
Table 4.1 List of processes that are arrived at time 0

The processes are assumed to have arrives in order P1, P2, P3, P4 all at time 0.
      I.        Draw FOUR (4) Gantt charts that illustrate the execution of these processes using the following scheduling algorithms: FCFS, SJF, Priority, and RR (quantum = 5).

4/02/2015

BCS1333 OS : Assignment 2

1.Describe the differences among short-term and longterm scheduling.

2.Describe the actions taken by a kernel to context-switch between processes.

3.The benefits of multithreaded programming can be broken down into four major categories (Responsiveness, Resources Sharing, Economy, utilization of multiprocessor): Briefly explain each of them.

4. Explain the three models of multithreading.

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