Posts

Showing posts from October, 2015

Latihan Lab 4(revision java)

Lab 4 latihan class dan method 1.        Berikan maksud class 2.        Berikan maksud object 3.        Berikan maksud method 4.        Apakah perbezaan class dan method 5.        Buat satu class yang bernama kalkulator, 6.        Buat method yang bernama tambah yang dapat menerima 2 variable bertype double   Dan method tersebut memulangkan(return hasil tambah bagi 2 nombor tersebut) 7.        Dari main import class calculator dan panggil method tambah untuk buat operasi penambahan. Nombor hendaklah diimput dari pengguna. 8.        Buat method bernama kirabmi untuk mengira bmi
Image
Ini adalah satu video menarik menerangkan operasi bagi linear queue. Antara kekurangan linear queue ialah pembaziran pada bahagian hadapan queue selepas operasi dequeue.Di mana bahagian hadapan yang kosong selepas operasi dequeue tidak dapat digunakan lagi.  Masalah ini dapat diatasi dengan menggunakan circular queue.

video circular queue

Image
What is Circular queue? A circular queue is a linear data structure. It follows FIFO principle. In  circular queue,  the last node is connected back to the first node to make a circle.  Circular  linked list fallow the First In First Out principle. Elements are added at the rear end and the elements are deleted at the front end of the  queue ( reference:  https://www.quora.com/What-is-a-circular-queue ) . rear = (rear+1)%max

Exercise Web1 Submission CheckList

 Please fill all the required information after submit your exercise web 1. Tq. Link to exercise web 1 submission check list

Web programming Exercise 1(repost)

Image
Write the program for all the problems below. Save your work in html file, zip all the file and send your works before class dismiss. Create a webpage that prints your name to the screen. Display five different images. Skip two lines between each image. Each image should have a title.   Display a table that has 4 rows, a border of size 2, a width of 200, and a height of 200. Display a website that when clicked will link to a search engine of your choice. (should be opened in a new window)     Create a registration form as below. Save the file as registrationForm.html.     *Submission Guideline Email: nurfadilaakma@gmail.com subject: noUk_exerciseWeb1 put all files in folder, zip and attach into email.