View RSS Feed

koding88

  1. My two books in computer and programming

    by on 03-05-2010 at 08:53 AM
    At February 28, 2010 I went to book store. I bought some books about computer and programming. Two of them are :

    1. Computer Science:an Overview 7th Edition from J. Glenn Brookshear.
    This book translated from English to Indonesian. Although this book only an overview, i can learn basic about software engineering, programming language, algoritma, computational theory, and so on as i want.

    2. Mastering Java.
    This book in Indonesian. I usually programming ...
    Tags: book, computer Add / Edit Tags
    Categories
    Personal
  2. Produce time output in 12 hour format

    by on 01-28-2010 at 12:03 PM
    In Liberty BASIC, and maybe in other BASIC language, time$() command will output current time of the system clock in 24 hour format.

    Code:
    print time$()  'time now as string "23:59:46"
    In order to produces output in 12 hour format, we must do manipulating character. We have many ways to do these. I only submit only three.

    #1. IF THEN
    If hours smaller than or equal with 12, we set to AM time. Otherwise, we subtract hours with 12 and set to ...