Saturday, June 14, 2008

Warm Up Lesson for Computer Programming

Programming is a very challenging and simple task but it is easier if you prepare yourself by learning its logic and environment. Part of the preparation is to study flowcharting and algorithm.


FLOWCHARTING & ALGORITHM


Flowcharting in computer programming is a diagram that shows the sequence of actions representing the logical flow of operations in a process. It is the step-by-step progression through a procedure using connecting lines and a set of conventional symbols. It is also considered as the blueprint of the program and a schematic representation of an algorithm or a process.

Algorithm in computer programming is a finite set of instructions that shows the logical sequence of steps to be carried out in order to solve a specific problem, often written out as a flow chart that can be translated into a computer program.

FLOWCHARTING BASIC SYMBOLS

TERMINAL – marks the beginning and end of flowchart.


PREPARATION/INITIALIZATION – used to prepare data or select initial conditions.

INPUT/OUTPUT – display input (data read into computer memory by an input device) and output (data passed from computer memory by an output device)

PROCESSING – carry out any calculations that are to be done

DECISION – used when decisions are to be made by using alternatives execution


ON-PAGE CONNECTOR – used to connect one part of a flowchart to another within the page and it also shows the entry or exit point of the flowchart.

OFF-PAGE CONNECTOR – used to connect one part of a flowchart from one page to another page.

ARROW LINE - shows the process that is to be executed next



FLOWCHARTING BASIC CONTROL STRUCTURES

1. SEQUENCE – a control structure wherein the course of action is executed in a straightforward manner – See examples below:





























2. SELECTION (IF-THEN-ELSE) – a control structure wherein the course of action has a choice between two alternatives - See example below:

















3. REPETITION (LOOPING) – a control structure wherein the course of action has a repetitive execution of an operation as long as the condition is true, otherwise, control flows out of the structure. Also known as DO-WHILE structure.

EXAMPLE: Construct a flowchart that will count from 1 to 10 and print each number counted using the do-while repetition structure. Use A as variable for the number to be counted. Write its equivalent algorithm.




















OPERATORS COMMONLY USED IN FLOWCHARTING

OPERATORS MEANING

1. ARITHMETIC OPERATORS

+ addition

- subtraction

* multiplication

/ division


2. RELATIONAL OPERATORS

= equal

> greater than

< less than

< > not equal

> greater than or equal to

< less than or equal to


3. LOGICAL OPERATORS

&& AND

|| OR

! NOT


TEST YOURSELF


Applying the lessons you have learned in this site, do the following exercises:

1. Construct a flowchart that will convert an inputted number in Fahrenheit to its equivalent measure in Celsius. Use variable C for Celsius and F for Fahrenheit then Celsius for the output. Write its equivalent algorithm. (Clues: Formula: C=(5/9) x (F-32); use sequence control structure)

2. CBC Manufacturing Company plans to give a year-end bonus to each of its employee. Draw a flowchart which will compute the bonus of an employee. Consider the following conditions: If the employee’s monthly salary is less than 5,000 pesos, the bonus is 75% of the salary; for employees with salaries greater than 5, 000 pesos, the bonus is 2,500 pesos. Print the name and the corresponding bonus for each employee. Use variable B for bonus, S for salary, and N for name. Write each equivalent algorithm. (Clue: use selection control structure)

3. The initial value of the radius of a circle is equal to 1 unit and each succeeding radius is 1 unit greater than the value before it. Draw a flowchart to compute the Area of a circle starting with R = 1 up to R = 10, then print each radius and the corresponding area of a circle. Use variable R for radius and A for the area of the circle. Write the algorithm. (Clue: use repetition control structure)


NOTE: If you are not sure of your answer or if you have any question about the topic feel free to email me. Please check my profile for contact details.

Saturday, June 7, 2008

The Cyberspace

INTERNET DEFINED


INTERNET short for International Networking a global computer network, also known as Information Super Highway or Cyberspace is an electronic communications network of networks worldwide, publicly accessible, consists of millions of domestic, academic, business, organization, and government networks.

It is a computer based global information system that transmits data by packet switching using the standard protocol (IP). Packet switching (data transmission technique) is a communications method in which packets (discrete blocks of data) are routed and transmitted sequentially and rapidly over a channel. A channel is occupied during the actual transmission on a “first come – first serve” basis.

Computers throughout the world are mostly connected using satellites or telephone lines. Its’ primary purpose is to share information.


INTERNET ACCESS


Dial Up

It uses a computer modem and telephone line to dial into an Internet Service Provider’s (ISP) node to establish communication with another computer or a network.

Broadband (over coaxial cable, fiber optic or copper wires)

Digital information is sent over a high-bandwidth channel above the baseband (signal processing) voice channel on a single pair of wires. The wider the bandwidth the greater the information-carrying capacity. Compared to dial-up it double the speed and generally without disrupting telephone use. It is one of the forms of digital subscriber line (DSL).


Wi-Fi (wireless-fidelity)


A wireless technology used to certify the interoperability of computer networking devices. It is supported by nearly every modern personal computer operating system and most advanced game consoles. It is commonly used in home networks, mobile phones and video games.


SATELLITE


An earth-orbiting spacecraft that provides communication over long distances by reflecting or relaying radio-frequency signals. It is used in locations where terrestrial Internet access is not available and in locations which move frequently. It is available worldwide, including vessels at sea and mobile land vehicles.


3G (Third Generation)


A wireless communications technology designed to provide high-speed Internet Access and transmission of wireless voice telephony, text, video, video calls, multimedia and broadband wireless data, all in a mobile environment. It enables network operators to offer users a wider range of more advanced services.



TO ACCESS A WEBSITE:


1.
Type the Web Site Address also known as URL (Uniform Resource Locator) on the Address Bar. For example: http://www.google.com.ph/




2. Click Go or Arrow key or press the Enter key on the keyboard. (A webpage will appear.)





















TO SEARCH THE WEB:


1.
Type the topic you want to search in the search box.
For example: internet.














2.
Click Go or search button or press the Enter key on the keyboard. (A webpage containing the information about internet will appear.)
















COMING UP NEXT..." WHAT WE CAN DO IN THE INTERNET?"

Thursday, June 5, 2008

Classification of Computers and its Uses

Introduction

Computer is an electronic system designed to manipulate data. It comes from the word "to compute" which means "to calculate".

Like human computers differ in appearance, size and capacity. They perform different tasks according to the purpose of their creation. Controversy comes out when we talk about distinctions among the various categories of computers. Computers may be classified according to their purpose, performance, and capacity.


CLASSIFICATION BY PURPOSE

Digital computers may be classified for two purposes: general and special.

1. GENERAL-PURPOSE COMPUTERS


These machines have the capability of performing several applications. It has the ability to store different programs of instruction and can perform a variety of operations.

The personal computers are the best example of this type of computer. A teacher for example may compute grades in spreadsheet, make excuse letter for his coming school activity in word processing next, and running a slide show for his lesson later. All tasks can be done while listening to your favorite radio station. New programs can be prepared and old programs can be modify or delete.

In choosing this type of machine, one should consider the size of memory, speed of processor, and efficiency of the software and hardware used.


2. SPECIAL-PURPOSE COMPUTERS

These machines have the capability of performing one applications. It is designed to perform specific tasks. It is also called "dedicated computers" because of their limitations to perform other operations. Some examples are used in the following: satellite systems, traffic control, telecommunicators, highway tolls, and industrial tracking.


CLASSIFICATION BY PERFORMANCE

1. ANALOG COMPUTERS

Analog or analogous meaning similar are computers that measure physical quantities that are continuously variable. They give only an approximate result and can output the result in graphical form. Some examples include are:

a.) Antikythera mechanism = an ancient mechanical calculator, designed to calculate astronomical positions. b.) Astrolabe = an astronomical instrument used by astronomers, astrologers, and navigators. It is used to locate and predict the positions of the Sun, Moon, planets and stars. c.) Potentiometer = a variable tapped resistor that is used as a voltage divider.

d.) Oscilloscope = a type of electronic test equipment that allows signal voltages to be viewed.

e.) Richter scale = a device used to measure the strength of an earthquake.

f.) Speedometer = a device used to measure the speed of a land vehicle.

g.) Old gas pump = a machine used to put gasoline in a vehicles.


2. DIGITAL COMPUTERS

As the term implies, a digital computer is a machine that specializes in counting. It can perform 100% error-free arithmetic operations. This type of computer is widely used in both in business and scientific purposes. Digital computer capabilities as follows: (1) It can store the sum of addition problems; (2) It can subtract, multiply, divide and compare; (3) It can programmed to recognize and manipulate numeric symbols; (4) It is capable of storing data; (5) It can perform logical operations; (6) It can edit input data and print out the results.


3. HYBRID COMPUTERS

These are computers that combines the features of analog and digital computers. The measuring capabilities of the analog computers and the logical and control capabilities of digital computes can be both performed by this device. Some hybrid machines can convert analog voltages into digital voltages, and vice-versa. Some examples are as follows:

a.) Hybrid Electric Vehicle = a car the combines a gasoline engine with electric motors.

b.) Hybrid coupler = a type of directional coupler used in radio and telecommunications.

c.) Telephone hybrid = an electronic circuit used in telephones.

d.) Radio-frequency hybrids = are used to split radio signals, including television. The splitter divides the antenna signal to feed multiple receivers.



CLASSIFICATION ACCORDING TO CAPACITY

The term "capacity" refers to the amount of data that can be stored by a computer device. The early generation computer determines its capacity in terms of its physical size - the larger the device, the greater the amount of data that can be stored in memory. Nowadays, it is measured in terms of applications it can run, speed of internal operation, number and type of peripheral devices, amount and type of software available for use with the computer, and of course the amount of data that can be stored in memory.

Computer systems are classified as microcomputers, minicomputers, mainframe computers, large computers and supercomputers.

1.) MICROCOMPUTERS

It is the smallest type of computers basically designed for a single user. It is a computer with a microprocessor as its central processing unit. It has 4K to 64K storage locations and is capable of handling small business, sales analysis, billing, payroll, inventory, industrial automation, and data acquisition. Other uses are as follows:

a.) Controller for the so-called "intelligent" robot arms and hands capable of factory assembly operations;

b.) Handler of a variety of engineering, scientific, and other common business applications;

c.) Control in ways that greatly simplify product testing and manufacturing processes;

d.) Plants and laboratories;

e.) Business offices;

f.) Auto-dealer showrooms;

g.) Medical laboratories;

h.) Insurance agencies;

i.) Construction sites

Microcomputers is a complete computing system, less powerful in speed and computing power than a minicomputer. Many microcomputers are also personal computers. PC may be a desktop, laptop, or a table computer.

2. MINICOMPUTERS

It is also known as "small mainframe computers", a small stand-alone device which can be used to handle tasks that large computers can not perform economically. It provides faster operating speeds and larger storage capacities than microcomputer systems. It usually has 8K to 256K memory storage locations. Some uses are as follows:

a.) Handle a number of high speed input/output devices;

b.) Provide direct access to remote terminals;

c.) Used for laboratory process control applications;

d.) Used in a wide variety of commercial operations such as airline reservations, car rentals, banking transactions, and inventory control.


Minicomputers can performs many of the processes of a mainframe but more slowly and at a much lower cost. Some examples include: IBM Systems 3, AS-400, PDP-8, Honeywell 200 and 1200 computers.


3. MAINFRAME COMPUTERS (MEDIUM-SIZE COMPUTERS)

They are capable of storing large quantities of information and serving over one hundred terminals at a faster operating speed. This type of computer does all operations faster than minicomputers. They usually have memory sizes ranging from 32K to 512K. Some uses includes:

a.) Support a large number of high-speed input/output devices;

b.) Provide online access to large data files;

c.) Used for batch processing;

d.) Support both multiprogramming and virtual storage;

e.) Used in electrical circuit design and structural analysis;

f.) Support a management information system;

g.) Used on a time-sharing basis;


Mainframe computers are very flexible that they can be expanded to meet the needs of the users. Some examples include: IBM System 370, IBM-4331, Burroughs 3500 System and NCR Century 200 System.

4. LARGE COMPUTERS

Large computers have storage capacities from 512K to 8192K. They are ultimate in system sophistication, speed and flexibility. They contain full control systems with minimal user intervention. Their speed are measured in terms of nanoseconds, as compared to smaller computers are measured in terms of microseconds. Some uses are as follows:

a.) Maintain organization's corporate files and integrated data bases;

b.) Used by government agencies, large corporations, and computer service organizations;

c.) Used in complex simulation, business operations, product testing, and development of space technology;

d.) Connects vast numbers of terminals, including even smaller computers and minicomputers at remote locations.

Large computers can be expanded up to 8 or even 16 million characters. It ranges from single-processing configurations to nationwide computer-based networks.

5.) SUPERCOMPUTERS

The largest and fastest machines today. They are used when billions or even trillions of calculations are needed. Their speed is in the range of 100 million instructions per second. Some uses include:

a.) Used in product testing;

b.) Development of space technology;

c.) Nuclear weapon development;

d.) Accurate weather forecasting;

e.) Aircraft design;

f.) Host processors for local computer and time sharing networks;

Supercomputers are not flexible. They need smaller machines to handle minor programs.

CONCLUSION

"No matter what type of computers you are using as long as you used it for the betterment of everything that surrounds you, there is nothing to worry about."

Coming up next, "What computers can and can't do".





Monday, June 2, 2008

MARKETPLACE

1. Instant Article Wizard ( Create high quality articles on virtually any subject in less than 15 minutes!) GO HERE!

2.
90% Discounts On 1,500,000 Top Designer & Brand Goods! BONUSES: FREE Web Site, FREE Paid Surveys & FREE Paid To Read E-Mails CLICK HERE!

3. Z IPHONE UNLOCK SOFTWARE GO HERE!

4.
Watch TV on PC - 12,000 TV Channels and Movies CLICK HERE!

5. THREE, and FREE, Exclusive Top Secret Wholesale Dropshippers - Free Web Site Included GO HERE!

6. The Complete Guide To Genius CLICK HERE!

7. Pick Me Up Video Workshop GO HERE!

8. Unlimited Play Station Two Games Downloads + PS2 Games Burning Software CLICK HERE!

9. Find A Job In Dubai GO HERE!

10. Art of Cake Decorating CLICK HERE!