Saturday, March 19, 2011

FOR LOOP

This program is a loop statement because it will appear the output when you press the for loop button. you can see the simple coding for this program. the output will appear  like this 1, 2, 3, then "this number is 4", 5, 6, 7, 8, 9, 10. Unlike many other program this is loop is simple.



Monday, March 14, 2011

SEQUENCE


This is program contains a 3 Text box and 2 Command Button. Its just an simple program that will inserted the same number then if they are the same it will shown as True, if there not the same numbers it will shown as False. 
                                                   


                                                                        OUTPUT
  






















SELECTION 


This program that I use is just converting the numbers to binary, hexadecimal and octal.
its a simple program for converting a number. It contains Text box and Option Button for choosing binary, hexadecimal and octet.







OUTPUT




Wednesday, March 2, 2011

PROGRAMMING READABILITY

MEANINGFUL IDENTIFIERS

I use meaningful identifiers like Enter Key(txtEnterKey), ASCII VALUE(lblResult), QUIT(cmdQuit), Case  and CLEAR(cmdClear). it is readable because I use simple variable.

LOGIC STRUCTURE

I use case and switch for the iteration, and if then statement.

CODING PRACTICE 

Private Sub txtEnterKey_KeyDown (KeyCode As Integer, Shift As Integer)

Select Case KeyCode
         Case vbKeyDelete
          lblResult.Caption="Delete Pressed!"
          txtEnterKey.Text="(Delete)"
         Case vbKeyInsert
          lblResult.Caption="Insert Pressed!"       
          txtEnterKey.Text="(Insert)"
          Case vbKeyEnd
          lblResult.Caption="End Pressed!"       
          txtEnterKey.Text="(End)"
 
End Select
End Sub

NOTES AND COMMENTS 


In this program i didn't use comments.

PROGRAM DOCUMENTATION


PROGRAM LISTING


I use txtEnterKey form my textboz where will you input a number, letter and other,

I use lblResult for my label box where the result would be shown


I use cmdClear for clearing the text box and label box.

I use cmdQuit for the exit of my program

PROGRAM SPECIFICATION


for my program I use Visual basic 6.0, and this program shows the ascii code of the letter, number and others.

FILE LAYOUTS AND RECORD DESCRIPTION


None

OPERATING INSTRUCTIONS


My progam uses a text box where you would enter a letter, number and other, then a label box that shows the ascii code.




       


     

Friday, February 18, 2011

The 5 Characteristics of Web Programming Language

1. Format and Protocol
2. Power
3. Performance
4. Platform
5. Safety


Format and Protocol

Internet Explorer - it slower than mozilla firefox. but all user are use internet explorer.

Mozilla Firefox - also mozilla firefox its slower portion of google chrome. but it is convient to use this browser.

Google Chrome - is the fast web browser that i ever met. because their are automatic tab that you want to use.

Opera - it's just simple site that you can only browse one site.


Performance

Internet Explorer - formerly Microsoft Internet Explorer, it is developed by the microsoft and it use source code from Spyglass. Inc. IE in general has more direct ties to the operating system, so any exploit found has a greater potential to infect the larger system. 

Mozilla Firefox - Having a super fast JavaScript engine is definitely important, but since those changes are often measured in milliseconds sometimes what matters even more is the way the browser feels when you’re actually using it. 


Opera - is a complete course to teach you standards-based web development, including HTML, CSS, design principles and background theory, and JavaScript basics.


Google Chrome - Chrome takes ALOT longer to load the page and this across a number of machines with varying hardware and the results seem the same.

Safety

Internet Explorer - Internet Explorer is more secure than Firefox, Mozilla has fixed more flaws in its browser than Microsoft during equivalent periods, which he said renders Firefox more vulnerable than IE.

Mozilla Firefox -  The Mozilla community produces a lot of great software and acts as an incubator for innovative ideas as a way to advance our mission of building a better Internet.


Google Chrome - Its clean, simple and efficient user interface and for web application JavaScript can be  a lot faster.


Opera -  may include safety guard programs or software for kids from restricted web sites and not introducing a safety security guard for kids for safe web browsing.




Platform


Internet Explorer - their are three disadvantages of IE this are, Speed, Search Bars and Tabs.  


Mozilla Firefox - Firefox uses the Gecko Layout engine, which implements most current web standard in addition to several features which are intended to anticipate likely additions to the standards.



Google Chrome - uses the WebKit Layout Engine and application famework. 


Opera - Opera Presto rendering engine and its improved support for HTML5 and CSS3, websites using the latest web standards are no problem for Opera. 


Conclusion


Base on my research google chrome are most convenient to use because it is easy to browse than other. it will posted the yahoo, facebook, google and a lot more on the front page. IE it is a good web browser but it is slower version of Mozilla Firefox. Opera is simple site and it also good and popular.  

Wednesday, February 9, 2011

ASSIGNMENT.

1. Scheme. If you come from a “curly braces” background you should learn a functional language. As Eric Raymond says about the very similar Lisp:
LISP is worth learning for a different reason — the profound enlightenment experience you will have when you finally get it. That experience will make you a better programmer for the rest of your days, even if you never actually use LISP itself a lot.
Example: 
(define hello-world
   (lambda ()
         (begin
 (write ‘Hello-World)
            (newline)
 (hello-world))))
sample run: 


Hello-World 




2. Erlang. Another functional language. Concurrency done right. In the multiprocessor future this could be very important indeed


Example: 

start() ->
         case (catch register(ftp_server, 
                              spawn(?MODULE, internal, []))) of
             {'EXIT', _} ->
                 already_started;
             Pid ->
                 ok
         end.

3. Ruby. A conscious attempt to make a programming language that is a joy to use. String handling from Perl, OO from Smalltalk, closures from Lisp/Scheme.

Example
puts" puts work"
puts"with line breaks"

print"print works"
string"with no line breaks"

printf ("\n\nprintf format numbers like %7.2f, and 
strings like %s.".3.14156, "me")

output

puts work
  with line breaks
print works with no line breaks

printf format numbers like 3.14, strings like me.


4.  FASM (Flat Assembler) is a type of computer software, a tool for programming, called an assembler. It supports programming in Intel-Styl assemble languange on the IA-32 and x86-64 computer architectures.

Example: 

format PE
entry main

include 'win32a.inc'

<<variables>>

section '.code' code readable executable
  main:

<<code code code>>

proc One a, b, c, d

        <<code code code >>
        ret
endp

section '.idata' import data readable writeable
  library kernel32, 'kernel32.dll',\
          advapi32, 'advapi32.dll',\
          user32, 'user32.dll',\
          shell32, 'shell32.dll'

  include 'api\kernel32.inc'
  include 'api\advapi32.inc'
  include 'api\user32.inc'
  include 'api\shell32.inc'        



5. MACRO-11 is an assembly language with macro facilities for PDP-11 minicomputers from Digital Equipment Corporation (DEC). It is the successor to PAL-11(Program Assembler Loader), an earlier version of the PDP-11 assembly language without macro facilities.

Example:   
.TITLE  HELLO WORLD
        .MCALL  .TTYOUT,.EXIT
HELLO:: MOV     #MSG,R1 ;STARTING ADDRESS OF STRING
1$:     MOVB    (R1)+,R0 ;FETCH NEXT CHARACTER
        BEQ     DONE    ;IF ZERO, EXIT LOOP
        .TTYOUT         ;OTHERWISE PRINT IT
        BR      1$      ;REPEAT LOOP
DONE:   .EXIT
 
MSG:    .ASCIZ /Hello, world!/
        .END    HELLO

.MACRO HELLO
ERRORS DETECTED:  0
 
.LINK HELLO
 
.R HELLO
Hello, world!
.
Comparison of ruby and scheme
A few programming languages have the concept of atom or symbol to represent a constant of sorts. There are a few differences among the languages I have come across Lisp and Ruby.
 

Monday, February 7, 2011

Assignment

Language used
- for this purpose i used html because of its easy use and understandable codes.
-and also i used paint for editing my photos, i didnt use photoshop because im still learning to use it. :)


End user Benefits
-is a research topic within the field of computer science and human-computer interaction, describing activities or techniques that allow end-users to program computers. People who are not professional developers can use EUD tools to create or modify software artifacts (descriptions of automated behavior) and complex data objects without significant knowledge of a programming language.

Two Alternative Languages
-Visual Basic .NET is the next generation of the Visual Basic language from Microsoft. With Visual Basic you can build .NET applications, including Web services and ASP.NET Web applications, quickly and easily. Applications made with Visual Basic are built on the services of the common language runtime and take advantage of the .NET Framework.
-Visual C# (pronounced C sharp) is designed to be a fast and easy way to create .NET applications, including Web services and ASP.NET Web applications. Applications written in Visual C# are built on the services of the common language runtime and take full advantage of the .NET Framework.

Welcome to my Page

JORELLE AICY M. ISIP
BSCS-2A


i am computer science student in university of the assumption.