Linggo, Marso 13, 2011

Selection Construct



SOURCE CODE

OUTPUT
"SELECTION   allows one set of statements to be executed if a condition is true and another set of actions to be executed if a condition is false.  A selection structure, also called an "If-Then-Else""

Martes, Marso 1, 2011

PROGRAMMING PRACTICES

1. Programming Readability


Readability 


is an important case in computer programming because it is the basis or the source of a program in which the machine can execute the code.


Logic 


is also important because it enables the computer to execute a source code correnctly.


Coding practices


 are standards that originated from the intensive study of industry experts who analyzed how bugs were generated when code was written and correlated these bugs to specific coding practices. They took these correlations between bugs and coding practices and came up with a set of rules that when used prevented coding errors from occurring. These standard practices offer incredible value to software development organizations because they are pre-packaged automated error prevention practices.


2. Program Documentation


Program Listing


are printed lists of lines of a computer code (source code).


Program Specification


a mathematical description of software or hardware that is used to develop an implementation.






MICROSOFT VISUAL BASIC 6.0


This programming language is easy to use and it provides a graphical user interface.


this is a simple program of a calculator. The output and the source code is given:





Biyernes, Pebrero 18, 2011

INTERNET BROWSERS

There are 5 popular Internet Browsers today, this review tackles about the differences of these browsers in terms of power, format protocol, platform independence & performance.
a.)Internet Explorer
b.)Google Chrome
c.)Opera
d.)Safari
e.)Mozilla Firefox

1.) FORMAT PROTOCOL

Internet Explorer
     Basically, Internet Explorer is the most used-up browser. In terms of power, this browser is not suggested especially when you're in a fast-paced cyber world.

Google Chrome
     Google's first internet browser. It's powerful and definitely fast. Unlike IE, google chrome doesn't require add-ons that may contain viruses.

Opera
      Honestly, I only knew this browser on mobile phones. It is widely used to surf the internet on one's phone,
unlike other browsers that do not have a mobile application.

Safari
      Apple OS' browser but later on it was available on any platform including Windows. Somehow slower than google chrome, but it's faster than IE and Mozilla Firefox.

Mozilla Firefox
      Before it was fast, but as it upgraded it became more of an IE than Firefox. Because of the add-ons required, the browser compromised its speed which is a bad thing.

2.)PERFORMANCE

Internet Explorer
        IE's not fast enough unlike other browsers because of its add-ons that may contain viruses and infect your computer.

Google Chrome
        The fastest browser so far, at least for me, for it does not require a lot of things to be able to surf, stream and download.

Opera
         Its OS version seems fast but not as fast as google chrome.

Safari
         Apple's browser is fast, much like Chrome, but still, it can't build a reputation on speed because chrome's still better.

Mozilla Firefox
          At first it seemed fast, but as it continued and upgraded, lots of add-ons were being required which made this formerly fast browser slow down.

3.)PLATFORM INDEPENDENCE

Internet Explorer
        Basically owned by windows, but I think it's available on Mac OS, too.

Google Chrome
        It is an open source browser which means it's free on any operating system.

Opera
        Also available on mobile phones, known as Opera Mini.

Safari
        Apple owns this, but now it is available on Windows platform.

4.)POWER

Internet Explorer
        IE's capability in loading is pretty impressive, considering it is slow.

Google Chrome
        If you're asking me, chrome outlasts all of these browsers mentioned.

Opera
        Considering the Mini version, it is also capable of loading many applications, also, the phone version has a tab mode.

Safari
        Also capable of loading, but still, not as fast as Chrome.

WEB PROGRAMMING LANGUAGES (SAFETY CHECK)

HTML
     "Viruses have proven that executing binary code acquired from an untrusted, or even moderately trusted, source is dangerous"
    source: http://www.objs.com/survey/lang.htm

That says it all, I guess.

ADA 95

A scripting language and development environment for Macintosh(MAC). It is from a trusted company, so I guess this web PL is safe to use.