Saturday, 1 March 2014

Windows XP Basics

Windows XP

Start Menu in Windows XP

The Start menu sports two divided sections. The left part is the so-called dynamic list, which the operating system automatically populates. Windows XP monitors which applications you run and manages the left part accordingly. You'll find the applications you use more frequently higher on the list and running new programs replaces them.


The right part of the new Start menu is static. It includes shortcuts to system folders such as My Documents, My Computer, Control Panel, Help And Support, and others. You can still use the old Start menu. Just right-click the task bar and select Properties. On the Start Menu tab, select Classic Start Menu and click OK.

How can I change file associations in Windows XP?

1. Right-click on a file of the type you want to change.
2. Click on PROPERTIES
3. You should see a section of the properties screen which says: "Type of File" and a button that says "Open With". Click on the “Open "Change" button.
4. Select the program you want to use from the list.
5. Click OK twice.

How do I send photos the easy way in XP?

Find the file you wish to send by going through Start > My Documents or using Windows Explorer. Right click on the file. Choose Send To > Mail Recipient. The file will be attached to an email ready for you to address and send.

How do I turn on the firewall included in XP?

Click Start, and then open the Control Panel. In Control Panel, click to open Network Connections.
If you are using a dial-up connection to the internet (including AOL and all other internet service providers), you will see an icon for that connection in the Network Connections box. Roll mouse over the icon for the internet service provider and right-click on it.
Click on Properties. Click on the “Advanced” tab.
If it is not checked, click to put a check mark in the box that says “Protect my computer and network, etc.” Click OK to apply the settings.

What does Task Manager do in XP?

Task Manager is a very useful tool it not only help you terminate hung applications, but it also provides you with detailed information about all the processes currently running on your computer.

When you select the Processes tab, the default detail view displays four columns of information about each process:
* IMAGE NAME: The name of the process.
* USER NAME: The user who started the process.
* CPU: The percentage of the CPU's capacity that a process is currently using.
* MEMORY USAGE: The amount of memory the process requires to perform its job.

How can I simultaneously close all open windows?

1. While pressing the [Ctrl] key, successively click each of the task icons on the task bar.
2. Right-click the last task icon, and choose Close Group.

If any application has unsaved information in an open document, the application will prompt you to save the document before it closes.

How can I password protect ALL my personal files on Windows XP?

Go to the "User Accounts" control panel. Click on your account (it may be something you recognize like your name, or may be "administrator" depending on who set up Windows on your computer). Choose the option to require a password or change a password. If you never had a password, you can set a password by leaving the field for the current password blank and typing your new password in twice (in the new password and confirmation fields).
Read More

Friday, 28 February 2014

Personal Computer Basics

Personal Computer


A personal computer is a stand-alone computer that is equipped with a central processing unit (CPU), one or more disk drives, random access memory (RAM), a monitor, a keyboard, and a mouse.
It comes in a variety of shapes and sizes.
A personal computer is a device that allows you to do a lot of work in a very short amount of time. It allows you to communicate with businesses, friends, family and strangers around the world. It helps you organize all of your information from your personal address book to your checkbook. 

Types of PCs

There are two broad categories of PCs: stay at home and portable.
Home computers come in two basic models, desktop and tower.
The desktop model sits horizontally on your desk while the tower model sits vertically. The orientation of the system box is the only difference in the two computers. Due to their size, they are not frequently moved.
Portable computers such as laptops and notebooks are much smaller and are easily transported. They are lightweight and can sit comfortably in your lap. They run on batteries and connect to household electricity.

Computer Hardware

Hardware is a term for the physical components that are included when you purchase a PC. They include the system box, monitor, keyboard and mouse.
You can purchase additional hardware items such as modems, scanners CD-ROM drives, DVD drives, video cameras and whatever else the computer gurus invent.
By itself, hardware is not capable of doing anything. Look at your stereo. It sits there looking nice, without emitting sounds until the hardware pieces are given the sounds to play.
Your computer needs something to make it work. That something is software. 

Computer Software

Software tells the hardware how to work, what to do, and when to do it. It includes the basic operating system, utility, or application programs, all expressed in a language your hardware understands.
There is software to tell your computer to do just about any task. Think about when you first balanced your checkbook. Either someone showed you how to do it or you followed the instructions on the back of your statement.
Those instructions "programmed" you on how to do the task at hand: balancing your checkbook. Those instructions were your "software" and you were the "hardware" that did the work. 

Applications

Software applications are programs that a computer uses so that the machine completes predetermined tasks.
Each application performs a specific kind of work, such as, word processing, desktop publishing and accounting, personal finance, etc.
A utility program is an after-market application that does housekeeping operations to assist you in maintaining and improving your computer's performance.

Operating Systems

An operating system is the master control program for the computer. It is the stored information that your computer needs to operate.
Without an operating system all of the hardware would just sit there and collect dust. 

Central Processing Unit (CPU)

It is the computer chip that does all of the processing for the computer.
Inside this tiny chip are millions of transistors (electrical switches) that are connected so they can carry out mathematical calculations. Everything a computer does is essentially a mathematical calculation.

CPU Speed

We measure the central processing unit's (CPU) speed in megahertz (MHz). Megahertz is a unit of measurement commonly used to compare the speeds of computers.
The higher the CPU's megahertz rate, the faster it processes information and instructions.

Random Access Memory (RAM)

RAM is the computer's primary working memory.
RAM is used for short-term storage while the computer does its work. It is read/write memory.
RAM is distinguished from ROM, which is read-only memory. The more RAM you have the more your computer can do at one time.
RAM is volatile memory. It needs to be running to "remember" what it is doing. In case of a system failure or power interruption, you will lose all of your work in RAM that you have not saved on a disk drive. 

Memory Units

• Bit = smallest amount of info. 

• Byte = eight bits strung together. 

• Kilobyte (KB or K) = about 1000 bytes. 

• Megabyte (MB or meg) = about a million bytes. 

• Gigabyte (GB or gig) = about a billion bytes. 

Ram Vs. Hard Drive Storage

Computing Basics

Storage is where the program is kept, RAM is where it works.
To run today's popular programs, make sure your computer has adequate RAM and storage. 

Disk Drives

Disk drives allow you to store and move data from, and to, different types of media.
There are several types of drives: floppy drive, hard drive, CD-ROM drive, and DVD drive.

Floppy Drive

A floppy disk drive is an economical, removable storage medium. It uses a magnetic disk. You can record or erase it and then remove it from the computer. Today's floppy is 3.5 inches of square, hard plastic with a magnetic disk inside. 

Hard Drive

The hard disk, or hard drive, is your PC's main storage device. It's sometimes called the C:/ drive, and pronounced "cee" drive. Data is magnetically stored there. It stores programs and data files. 

CD-Rom Drive

CD-ROMs are compact discs, read-only, removable storage media. CD-ROMs read the data encoded on the disc and then transfer this data to the computer.
One CD-ROM can hold as much information as about 450 floppy diskettes (700 Mb).
Recently, gurus created the RW CD-ROM drive: re-writeable CD-ROM drive. It allows you to read, erase, and use it repeatedly like a floppy drive. 

Monitor

Sometimes we call the monitor a CRT (cathode ray tube) and sometimes we refer to it as a video display unit.
The monitor attaches to the video output of the computer and produces a visual display.

QWERTY Keyboard

It is the standard typewriter keyboard layout, used for computer keyboards.
It is the most frequently used input device for all computers.
The keyboard provides a set of alphabetic, numeric, punctuation, symbol, and control keys. 

Mouse

The mouse controls the pointer on your computer screen. It is housed in a palm-sized case. When you move it on your desk, the corresponding arrow, commonly known as the pointer, moves on the computer screen.
The flashing bar, known as the cursor, is where the work will take place on the computer screen. 

Expansion Slots

Your system has expansion slots so you can add additional hardware, known as peripherals or add-ons.
Some slots may already be taken for a sound card or video card.

Multimedia

Multimedia is a term used to describe any program that incorporates some combination of sound, music, written text, pictures, animation, and video. Almost all of the computers on the market today are multimedia capable. 

Printer

A printer is a device designed to print your computer-generated documents onto paper. Printers vary in their quality, speed, graphics capabilities, fonts, and even paper usage. The three most popular types of printers are dot matrix, ink jet (bubble jet), and laser printers.
• Dot Matrix. A dot matrix printer uses a print head and a ribbon to print a document. These printers are inexpensive and tend to be slow and loud. Their print quality is fair.
• Ink Jet or Bubble Jet. An inkjet printer works by spraying tiny dots of ink onto the paper. The print head controls the spray pattern to form the print. Excellent print quality at a reasonable price.
• Laser. A laser printer offers great quality and fast printing. It is also more expensive than the other two types of printers. 

DPI

DPI (dots per inch) is a measure of how good a printer is. The more DPI, the better the print, and the easier it is to read. 

Modem

A modem is the communications hardware that allows your computer to send and receive information from other computers, over a telephone line.
You will need a modem (and a telephone line) to hook up to online services and the Internet. 

Baud Rate

Baud rate is the number of times a modem's signal changes per second when transmitting data. It is how modem speed is measured. The bigger the number, the faster you can communicate.

DVD

DVD stands for digital versatile disk. 
DVD drives read DVDs. 
A DVD holds about 5 gigabytes of information while a CD-ROM only holds about 700 megabytes. 
A CD-ROM drive cannot read a DVD. However, DVD drives can read CD-ROMs. 
Read More

Arrays in BASIC

BASIC Programming


An array is a set of like variables arranged in sequence identified by their subscripts. The subscripted variable names are similar to simple variable names except that they are3 followed by a subscript. The subscript must be an integer and must be enclosed in parentheses. For example A(4), A$(5).
Program
10 Read Items $ (1), Items $ (2), Items $ (3)
20 Data Pen, Book, Pencil
30 Print Items $ (1), Items $ (2), Items $(3)
40 End
Output
Pen        Book      Pencil

Array using a For…Next Loop

Program
10 For i=1 to 3
20 Read Items $ (i)
30 Next i
40 Data Pen, Book, Pencil
50 For b= 1 to 3
60 Print Items $ (b)
70 Next b
80 End
Output
Pen
Book
Pencil

Dim statement

Dim is a short for dimension. Dim statement is used to declare an array of more than 10 subscripts.
Program
10 For i=1 to 12
20 Read Names $ (i)
30 Next i
40 Data Masood, Imran, Rahim Jan, Iltiaz, Zaid, Chakar, Adil, Kamran, Sohail, Aman, Amir, Javid
 50 For b= 1 to 12
60 Print names $ (b)
70 Next b
80 End
Output
Masood
Imran
Rahim Jan
Iltiaz
Zaid
Chakar
Adil
Kamran
Sohail
Aman
Amir
Javid







12.2 Two Dimensional  Arrays
Sometimes data is arranged in rows and columns. Thus two or more subscripts are needed to represent each element in such arrays.
Class
Present
Leave
Absent
7
60
3
2
8
52
1
1
The locations of the data in this table can be described by numbering both rows and tables as given below.

Col. 1
Col. 2
Col. 3
Col. 4
Row 1
A (1, 1)
7
A (1, 2)
60
A (1, 3)
3
A (1, 4)
2
Row 2
A (2, 1)
8
A (2, 2)
52
A (2, 3)
1
A(2, 4)
1

12.3 Filling and printing Two Dimensional Arrays
One way of filling a two dimensional arrays is by For…Next nested loop.
Program
10 Dim A(2, 4)
20 For Row=1 to 2
30 For Col = 1 to 4
40 Read A (Row, Col)
50 Next Col
60 Row
70 Data 7, 60, 3, 2
80 Data 8, 52, 1, 1
90 For Row=1 to 2
100 For Col = 1 to 4
110 Print A (Row, Col)
120 Next Col
130 Row

140 End
Read More

Structure of a C Program

C Programming

A program written in C is really not much more difficult to understand than one written in any other language. once you have have gotten used to the syntax. Learning C is largely a matter of practice.
Let's investigate the various elements of a simple C program;
void main (void)
{
printf("Jamil Murad Baloch");
}

Function Definition

All C programs are divided into units called "functions". main() is a function. Every C program consists of one or more functions. main () is the one to which control is passed from the operating system when the program is run. The word void preceding main specifies that the function main() will not return a value, the second void in parenthesis specifies that the function takes no arguments.

Delimiters

following the function definition are braces which signal the beginning and end of the body of the function. The opening brace { indicates that a block of code that forms a distinct unit is about to begin and the closing brace } terminates the block of code.

Statement Terminator

The line in our program that begins with the word "printf" is an example of a statement. A statement in C is terminated with a semicolon.

The Printf ( ) Function

the program statement
printf("Jamil Murad Baloch");

causes the phrase in quotes to be printed on the screen. the word printf is actually a function name, just as "main" is a function name. 

Exploring the printf( ) function

Printing numbers

The printf ( ) function uses a unique format for printing constant and variables. let's look at an example:
void main ( )
{
printf ("This is the number five: %d",5);
}
The printf ( ) can be given more than one argument. In this example we gave it two arguments: ("This is the number five: %d") on the left and a value (5) on the right. These two arguments are separated by a coma.

Format Specifiers

the Format Specifiers tell printf ( ) where to put a value in a string and what format to use in printing that value. In this example the %d tells printf ( ) to print the value 5 as a decimal integer.%f could be used to print the 5 as a floating point number.

Printing Strings

Using Format specifiers we can print string constants as well as numbers. Here is an example that shows both a string and a number being printed together:
void main ( )
{
printf("%s is %d million miles\nfrom the sun.", "Venus", 67);
}
The output of the program will be:
Venus is 67 million miles
from the sun.
The printf ( ) has replaced the %s symbol with the string "Venus" and the %d symbol with the number 67.

Printing Characters

Printf ( ) can be used to print a single character.
void main ( )
{
printf ("The letter %c is pronounced %s.", 'j', "jay");
}
The output of the program will be:
The letter j is pronounced jay.
In this program 'j' is a character and "jay" is a string. Note that 'j' is surrounded by apostrophes while "jay" is surrounded by double quotes.


Read More