You are on page 1of 3

6.

Searchings Technique In computer science, a search algorithm is an algorithm for finding an item with

soecified properties among a collection of items. The items may be stored individually as records in a database. Searching also refers to the operation of finding the location of a given item in a collection of items. The search is said to be successful if ITEM does appear in DATA and unsuccessful otherwise. Searching method can be divided by two ways, sequential search and binary search. As for our program, we choose to apply binary search. The main reason why we choose binary search as it suitable for the data which is already sorted either in ascending or descending order. In our program, we did arrange or sorted the data of the books according to books title alphabetically. As in our coding, the function of binary search happened when the user is being user choose button of search. In this context, once the user choose the button of search, it will display the desired book that the user want to borrow, according to alphabetically by its title. This is actually showing the process of sorting which had happened in admin, and showing the process of searching in user. The admin actually had sort all the details about the book according to the alphabet by its title before the data had been linked to user. As a result, the user can easily search the title book of he/she want, thus can easily get details about the book, for instance in the context of title,author,pages and status. The function of searching happen during user decide to find search book. It means, the user dont want to see all the book list, but just want to know the details about the book that he/she want to borrowed. Therefore, user just type the desired book that she/he looking for in the empty text field provided. Then, the user need to click the search button. Next, the information or details about the desired book according to its author title,author,pages and status will be print out or will be display in text area provided. Text Field and Text Area

are the two terms required in designing Graphic User Interface. Without Text Field, user cant type or search the desired book, and without Text Area, the information of book cant be display. We apply binary search in this section as the title of the book is already sorted. So, how does the binary search function? The function of this source is to find the middle item,then decide whether to look in the left or in the right half. If decide to look in one half, ignore the other one half. The process are repeated until it find the target. To be compared with sequential searching, binary search can be concluded as more faster than the sequential searching. For instance, if we are looking book in our bookstore, we may decide to look from half way, as we know the book is ordered alphabetically therefore if we decide the book is in the right half, we can disregard the left half or throw it away, but we just concentrate on the right half. This way of search is dramatically reduced because we only have book to search, which means the process of searching the title of books is much faster compared to sequential search which need to compare the desired book (target) with the first entry in the list, the second entry in the list, and so on until it either locates the desired book or look all the book without success. Thus, binary search is proven more efficient than the sequential search. As in the context of best case, both binary and sequential have a value of 0(1), but in the context of worst case, binary case is more efficient which 0(log n), compared with sequential which 0(n). Same in average case, binary case is more efficient which 0(log n) compared with sequential search which 0(n).

8.0 Graphic User Interface (Gui) In computing, graphical user interface (GUI) is a type of user interface that allows users to interact with electronic devices through graphical icons and visual indicators such as secondary notation, as opposed to text-based interfaces, typed command labels or text navigation. GUIs were introduced in reaction to the perceived steep learning curve of command-line interfaces (CLI),which require commands to be typed on the keyboard. The graphical user interface is presented (displayed) on the computer screen. It is the result of processed user input and usually the primary interface for human-machine interaction.This allows the user to select or design a different skin at will, and eases the designer's work to change the interface as the user needs evolve. Good user interface design relates to the user, not the system architecture. The goal of user interface design is to make the user's interaction as simple and efficient as possible, in terms of accomplishing user goalswhat is often called user-centered design. Good user interface design facilitates finishing the task at hand without drawing unnecessary attention to itself. Graphic design may be utilized to support its usability. The design process must balance technical functionality and visual elements (e.g., mental model) to create a system that is not only operational but also usable and adaptable to changing user needs. As in our program, we had print screen a few interface to show the flow from the first interface to the last interface.

You might also like