Saturday, March 19, 2011

Repitition Statements

Sample code of If/else


Output



CODE


REPETITION/ITERATION STATEMENTS means the act of repeating a process usually with the aim of approaching a desired goal or target or result. Each repetition of the process is also called an "iteration," and the results of one iteration are used as the starting point for the next iteration. This sample program I created in vb is a login form. By typing the required username and password you can enter to the next form.



Repitition Statements

Sample code of If/else

Output

CODE


REPETITION/ITERATION STATEMENTS means the act of repeating a process usually with the aim of approaching a desired goal or target or result. Each repetition of the process is also called an "iteration," and the results of one iteration are used as the starting point for the next iteration. This sample program I created in vb is a login form. By typing the required username and password you can enter to the next form.



Sunday, March 13, 2011

SEQUENCE SYSTEM
 SOURCE CODE:


OUTPUT:
>>Sequence Construct is is simply a list of one or more instructions that should be executed consecutively. I used vb v6.0 in creating this sample program. First I choose a form then input 4 label boxes and 5 textboxes and changed their name and captions. I also input 2 command buttons for reset and record. I created the program under this 2 command buttons. Lastly, I tested it to check if it has an error then save it.
Purpose of the sample program: to record student informations.

SELECTION SYSTEM
     SOURCE CODE
OUTPUT:
>>Selection Construct is program consists of conditional statement. I used if-else statements. This system purpose is for a security system,where you will input your username and password.

Tuesday, March 1, 2011

Programming Practices

VISUAL BASIC
Visual basic is a programming language developed by Microsoft in year 1998 and its successor is Visual Basic.net released March 2008. Visual Basic is user friendly because it has the same characteristics of     BASIC (also a programming language) which is suitable for the beginners.

SAMPLE PROGRAM
This is a sample program in creating a simple slot machine.

Sample Output


PROGRAMMING READABILITY

IDENTIFIERS>> Identifiers are used to declare variables.
In my program i use identifiers which is short,meaningful and easy to distinguish, for example:
intnum1- means I declare number 1 as integer and
dblBet - means i declare bet as double(integer with decimal value).

LOGIC STRUCTURE>>must be simple as possible to lessen the chance of errors.
Much shorter the program the more simpler it is, when the code is simple errors will lessen..
In my sample program I used if and else statement so that program is shorter and you can easily see what is wrong when your program is not working.

CODING PRACTICE>>Should be written in the code that will do what is needed.
intNum1  =  ""
intNum  =  ""
intNum3  =  ""
this is a part of the program which it's task is to clear the previous output of number 1,2,3.

NOTES AND COMMENTS>>
I didn't use comments and notes in this program.

PROGRAMMING DOCUMENTATION

PROGRAM LISTING>>use keywords and proper naming conventions.
In my 3 labels I use lblNum1,lblNum2 and lblNum3, lbl means label and num means number.
In my text 4(located at the side of the word enter your bet) I use txtBet because in that text you will input your bet. Txt means text.

PROGRAM SPECIFICATION>>Defines the course of the user specifications.
I used Visual Basic version 6.0 and Windows xp as my os in creating this program.

FILE LAYOUTS AND RECORD DESCRIPTION
Data types used:
a.Dim intNum1, intNum2 and intNum3 as Integer
b.Dim dblBet, dblWin as double

OPERATING INSTRUCTIONS
In using vb the names that you are trying to input must be simple and easy to understand because vb is case sensitive, once you input the name improperly the program you had created will not run and it will display an error.


Friday, February 18, 2011

Characteristics of 5 web programming language.

Mozilla Firefox
a.Format-Although you don't memorize the address that are you looking for, Mozilla will drop down some addresses that are related on the address that are you trying to browse.
b.Power- When comes in accessing multimedia mozilla is fast.
c.Performance- It is a fast, quick web browser and it uses only few memory in installing it and the latest version mozilla 3.6 has a built in adobe flash player once you installed it.
d.Platform independence- an open source web browser, it can be installed in any os exception on apple mac because apple mac has a built-in web browser called safari.
Internet Explorer
a.Format- Before the web browser that was installed to my pc is internet explorer(I forgot the version), when comes in searching a file, internet explorer is a bit slow compared to the 3 web browsers and IE can't easily distinguish the address that are you trying to browse unless it's not complete.
b.Power- IE is slow in uploading and downloading a multimedia file.
c.Performance- Most countries are using IE as their web browser and I can say that it is popular since it's one of the oldest web browsers (first is netscape) but also one of the slow web browsers.
d.Platform independence- It is also a open source web browser and in any windows os internet explorer is already installed.
Opera
a.Format-in using mobile, opera cannot add additional tabs, you can only access one address only.
b.Power-It's fast and you can also download and upload multimedia very quick.
c.Performance-You can access the address quickly and download files easily.Addresses that you access before are saved.
d.Platform independence- in mobile, you can easily install the opera mini but in opera mini you are the one who will put the connection settings for dial-up but in some smartphones,opera is already installed.Opera mini is not quietly popular in pc and it only capable in java-capable devices that's why opera is popular in mobiles.
Google Chrome
a.Like mozilla,once you type the address that you want to access google chrome can suggest address related in the address that are you trying to look at. You will know if that address exist when it is highlighted in green.
b.Power- a simple and fast web browser.You can easily manage files easily and user-friendly.
c.Performance- It is capable in doing multi-tasking and you can easily restore the tabs that was not closed properly.
d.Platform independence- an open-source web browser and can be installed in any operating system.
SECURITY
Windows is most prone to viruses and every corner of windows has almost viruses because windows is most commonly used by everyone that a beginner can write a window virus easily.
In Linux,you can't easily write a virus because it's pl is hard to learn but it is also prone to viruses because saving files is also the same of windows.
Macintosh is designed in applications and not in business that's why it is not too prone to viruses.
CONCLUSION
All of these web browsers are helpful to us especially in browsing and communicating to others. Only, these web browsers has different functionality and characteristics that makes them to the top as a best web browser.Some people chooses IE as the most functionable web browser, some are mozilla and for those who frequently using mobile,they choose opera since its portable and easy to carry, others says google chrome is the best in multimedia. These web browsers helps us a lot but still nothing beats the knowledge of a person for without him these browsers doesn't exist.

Tuesday, February 8, 2011

WEB PROGRAMMING LANGUAGES

DYLAN

The Dylan programming language is a multi-paradigm language that includes support for functional and object-oriented programming, and is dynamic and reflective while providing a programming model designed to support efficient machine code generation, including fine-grained control over dynamic and static behaviors. It was created in the early 1990s by a group led by Apple Computer.Dylan derives from Scheme and Common Lisp and adds an integrated object system derived from the Common Lisp Object System (CLOS). In Dylan, all values (including numbers, characters, functions, and classes) are first-class objects.

PERL

Perl is described as a compiled scripting language. It combines elements of C with some Unix scripting and text manipulation languages (e.g. sh, awk, sed) into a more complete language that subsumes the functionality of all into one consistent whole, and is compilable, and, therefore faster than its forebears. Perl's advocates tout its ease of use when comparing it to Java, especially. One of the motivations in developing Perl was to provide an alternative to C for tasks that were a little too hairy for an existing Unix tool, or where performance was an issue. C was seen as unnecessarily low level, and C development too time consuming. Perl tries to delay the need to program at a a lower level. Its been very successful, especially among system administrators. Since CGI scripts are often built by systems folks, Perl is widely used for this, too.

TELESCRIPT

Telescript is General Magic's interpreted, object-oriented language with for remote programming. It uses an active agents paradigm. Agent programs are sent to places where they execute, possibly in conjunction with other agents. Agents can move themselves to new places to execute, taking their state with them. Places are subprocesses associated with a Telescript Engine, which is a server program which may be integrated with an HTTP server (with CGI) to produce what they describe as an active web server. This is similar architecturally to ParcPlace's VisualWave and IBM's WWWParts, both for Smalltalk.Like Java, Telescript is safe and platform-independent.

PYTHON

Python is an interpreted, object-oriented language developed as a full-featured, but easy to use, scripting language, by Guido van Rossum at CWI in the Netherlands. Initially developed in a Unix environment, Python is now available on PCs and Macs, and applications are portable across platforms. Python has developed a substantial, although still modest, following, as a scripting language, an application development language, and an embedded extension language. Python's design was most influenced by ABC, a little known language also developed at CWI. Python's syntax evokes C and C++, but doesn't stick too closely to those languages. Like Java, Perl and Tcl, Python offers a portable GUI library, several really. Perl advocates complain about the lack of regular expression matching and output formatting natively in Python. Perl is a little more of a sysadmin's shell language than Python, and Tcl is a little simpler and less capable. Python is more of a regular programming language, but simpler and easier to program than Java.

EIFFEL

Eiffel is an ISO-standardized, object-oriented programming language designed to enable programmers to develop extensible, reusable, reliable software efficiently. Eiffel is used in academia as a language for teaching computer-programming principles. Eiffel is used in the finance, aerospace, health-care, video-gaming, and other industries as a development platform. Since 1985, many suppliers have developed Eiffel programming environments.
The design of the language is closely connected with the Eiffel programming method. Both are based on a set of principles, including design by contractcommand-query separation,uniform-access principlesingle-choice principleopen-closed principle, and option-operand separation.
PERL VS. PYTHON
>>Perl tends to be cryptic and hard to read. Of course a good programmer will write more legible code than a bad one, but Perl's power is reflected in its complex syntax and many operator symbols, while Python has a simple, elegant base language, and the power resides in its library.
>>Python was designed from the start as an object-oriented language. Perl 5 has some object-oriented  features added on, but it looks to me like an awkward retrofit. Python has well-implemented object-oriented features for multiple inheritance, polymorphism, and encapsulation.

SAMPLE SOURCE CODE OF PERL

print "Hello World\n";

SAMPLE SOURCE CODE OF PYTHON

print "Hello World"




source: Wikipedia and Google


Sunday, February 6, 2011

HOW DID I CREATE MY WEBSITE?


>>In constructing my own blog spot,first I identify what is appropriate tool in creating my blog spot and I used html because it is easy to use and convenient to use.I use paint also in editing my uploaded pics which I used as my background and profile pic and GIS. I also use Google website as my foundation and search engine in developing this blog spot.

WHAT IS GIS??

>>A geographic information system (GIS), is any system that captures, stores, analyzes, manages, and presents data that are linked to location(s). In the simplest terms, GIS is the merging of cartography, statistical analysis, and database technology.
>>GIS can integrate and relate any data with a spatial component, regardless of the source of the data. For example, you can combine the location of mobile workers, located in real-time by GPS devices, in relation to customers' homes, located by address and derived from your customer database. GIS maps this data, giving dispatchers a visual tool to plan the best routes for mobile staff or send the closest worker to a customer. This saves tremendous time and money.


GIS of University of the Assumption

End-User benefits

They can post comments at my blog spot and they can ask me questions regarding on how to create their own website.