10/27/2014

BCS3473 OOADD : Quiz 1

QUIZ 1

1. Define object, class, instance and inheritance. (6M)
2. Consider Java program above and answer the following questions.

Java Code 1
2.1 Identify the superclass and subclass (4M)
2.2 Explain Generalization and Specialization. Use Java program above to support your explanation. (5M)

PHP: Connection to Database, Display Data dan Delete Record

1. Pelajar Diploma IT telah pun membentangkan FYP (Final Year Project) masing-masing pada manakala pelajar bachelor telah masuk minggu ke 7. Ramai pelajar memilih untuk membangunkan sistem maklumat.

2. Antara proses wajib yang ada dalam  sistem maklumat ialah  display, add, edit dan delete record/data.

3. Posting kali ini menerangkan arahan asas proses display data dan delete data.

4. Berikut di senaraikan item-item yang digunakan:-
     4.1 Personnel Web Server guna Apache dan Database guna MySQL. Dua-duanya dalam pakej XAMPP.


    4.2 Struktur Database:-
          Nama Database: mydb
          Nama Table dan Field: tbadmin(adminID,adminName,adminPWD)

4.3 Beberapa data telah sedia dimasukkan dalam table "tbadmin" tersebut

5. Berikut adalah koding yang saya namakan sebagai simpledisplayv2.php
     5.1 Koding simpledisplayv2.php

    5.2 Hasil di browser

     5.3 Koding delete.php adalah seperti berikut:-

    6. Proses delete biasanya memerlukan 'confirmation'.

     6.1 Perubahan pada koding simpledisplayv2.php dengan memasukkan java script.


10/20/2014

FCT1033 Intro to Programming.

Berikut adalah markah untuk quiz 2 dan ujian 2. Masing-masing akan menyumbang 5% dan 10% kepada 'total mark'.
No. Matric No.  QUIZ 2 TEST 2

Q2 T2
5% 10%
1  14A12012  2.5 7.4
2  14C19003  5 0.0
3  14C19005  5 8.6
4  14C19006  2.5 5.1
5  14C19007  2.5 5.6
6  14C19013  5 4.4
7  14C19016  5 8.6
8  14C19017  5 0.0
9  14C19020  5 9.3
10  14C19022  2.5 7.7
11  14C19027  5 6.3
12  14C19028  2 9.3
13  14C19029  0 0.0

10/19/2014

10/12/2014

BCS2233 OOP Assignment 1

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

1.  Develop a program to input height and length of a right triangle and calculate and print the area of a right triangle.

        Area of right triangle = (height x length) /2


2. Write a java program to input three integers and print the smallest and largest.


3.  An electric supply company charges the following rates for its customers:-

No. of unit consumed                              Charges/unit (RM) 
1     - 200                                                           0.218 
201 - 300                                                           0.334                                                   
>= 301                                                               0.516

Read unit consumed and calculates the net amount of the bill for each consumer and print it.


BCS2233 OOP Quiz 1

1. Write a java program to input three integers and print the largest.

2.A bicycle shop in a city hires bicycles by the day at different rates for different model below:

Model No. Hire rate per Day (RM)
Model No. 1            14.00
Model No. 2            12.00
Model No. 3            10.00


In order to attract customers, the shopkeeper gives a discount on the number of days a bicycle is hired for. The policy of discount is as given below:

No. of days Discount rate (%)
1-5                            0.00
6-10                8
11 and over 15

For every bicycle hired, a deposit of RM 30.00 must be paid.
Write an algorithm (flowchart or pseudocode).

--------------------------------------------------------------
Solution (flowchart) for Question 1.























Solution (Flowchart) for question 2.



BCS2233 OOP Assignment 1

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


1.  Develop a program to input height and length of a right triangle and calculate and print the area of a right triangle.
Area of right triangle = (height x length) /2


2. Write a java program to input three integers and print the smallest and largest.


3.  An electric supply company charges the following rates for its customers:-

No. of unit consumed                              Charges/unit (RM)
1     - 200                                                           0.218
201 - 300                                                           0.334                                                  
>= 301                                                               0.516

Read unit consumed and calculates the net amount of the bill for each consumer and print it.

Due date : 27/10/2014

10/07/2014

FCT1033 Contoh Ujian 2



FCT1033 Selection, Looping Exercise




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


2.Write an algorithm (pseudocode or flowchart) for a program that read 10 integers. Find the maximum and minimum number among the 10 (hint: use selection statements together with looping statements). 



3. A Book Publisher offers discount to customers on the basis of customer type and number of copies ordered as shown below:


Customer number, name, type, book number, number of copies ordered and unit price are given as input. Draw a flowchart to calculate the net amount of the bill for each customer and print it.


Flowchart (Jawapan) untuk soalan no 3
T=Total


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