Friday, 19 November 2010
USING MICROSOFT ACCESS XP- MANUAL
• Data is made up of text, numbers, images and in some cases sounds which can be
processed or stored by a computer. By itself data might not mean very much. In order to
understand it, it needs to be interpreted (or processed) to become information.
• Information is the meaning given to data by the way in which it is interpreted.
• To illustrate the difference, Murray, 15000 and 10 mean little as data. But if we were
able to interpret them as the name of a salesman, Murray, his annual basic salary of
$15,000 and his commission rate of 10%, it would assume more meaning and could be
called information. This is not necessarily the end of the story as this information could
be included in another set of data and used to provide other information. Alternatively,
the same data could be interpreted in another way.
• It is often helpful to think of data as the raw ingredients of a recipe which when
processed and mixed in different amounts by differing techniques produce different
results.
What is a database?
• A simple definition of a database is:
A structured collection of related data about one or more subjects.
In normal daily life we make frequent use of databases, and probably don’t realise it.
Here are a number of simple examples:
- The telephone directory
- Bus or train timetable
- Personal address book
- Filing कैबिनेट
What is a relational database?
• A simple relational database, such as Microsoft Access, is a database which is based on
tables. Each column within a table defines the fields, while each row defines the records.
Different related data can be held in separate tables. For instance information about
suppliers can be held in one table, while information about products can be held in a
separate table.
PAGE 5 - ECDL MODULE 5 (USING MICROSOFT ACCESS XP) - MANUAL
FOR USE AT THE LICENSED SITE(S) ONLY
© Cheltenham Courseware for Trainers 1995-2004 www.cctglobal.com
5.1.1.2 Understand how a database is organised in terms of tables,
records, fields, and with field data types, field properties.
What is a table?
• A table holds data about a particular item, such as products or suppliers.
What is a record?
• A record is a collection of information which relates to a particular item within your
database table. For instance a record in an address book may consist of the first and
second name of a person, plus their phone number and address details. Each item
within a record is called a field.
What is a field?
• Fields are the individual items which make up a record within your database. In the
example of an address book database, first and second names of your contacts would
both be field names, as would the telephone number.
What is meant by 'Field data types'?
• A field must have a specific data type format. We will see more about this later, but for
now the illustration shows you the data types which are available within Microsoft
Access, including Text, Number, Currency etc.
What is meant by 'Field properties'?
• Each field has a range of field properties associated with it. For instance the Field Size
(set to 50 in the example shown), means that the field will hold a maximum of 50
characters.
PAGE 6 - ECDL MODULE 5 (USING MICROSOFT ACCESS XP) - MANUAL
FOR USE AT THE LICENSED SITE(S) ONLY
© Cheltenham Courseware for Trainers 1995-2004 www.cctglobal.com
Other properties include items such as data validation, which means that the sort of
information which is being entered into a field makes sense!
5.1.1.3 Understand what a primary key is.
What is a primary key?
• Primary keys uniquely identify each record in your table and provide the following
advantages:
- An index is automatically created for the primary key.
This speeds up data retrieval and sorting.
Also, the primary key is often used in establishing relationships.
- Records in a form or Datasheet are displayed in primary key order.
- Duplicate records are not allowed. Therefore all records are unique
- A primary key can be made up of one or more fields.
5.1.1.4 Understand what an index is.
What is an index?
• An index allows Microsoft Access to work faster when finding and sorting records. They
work in a similar way to the way you would use an index in a traditional book, i.e. Access
uses the index to find the location of the required data. Indexes can be created using a
single field, or using multiple fields.
5.1.1.5 Understand the purpose of relating tables in a database.
Why relate tables?
• When using Access you normally set up a number of tables, such as Customers,
Products, Orders, Employees etc. The next stage is to define relationships between
these tables so that the information within each table can be linked with the information
in the other tables. Once these table relationships are defined we can create queries,
forms and reports to display information which is actually spread across several tables.
5.1.1.6 Understand the importance of setting rules to ensure
relationships between tables are valid.
PAGE 7 - ECDL MODULE 5 (USING MICROSOFT ACCESS XP) - MANUAL
FOR USE AT THE LICENSED SITE(S) ONLY
© Cheltenham Courseware for Trainers 1995-2004 www.cctglobal.com
Design and document your database!
• It is extremely important to spend time designing your database as time spent here will
often pay dividends later on in the process, as you know where you are going and what
you are trying to do.
How do you know if you’ve got there if you don’t know where you are going?
Questions to ask yourself
• When setting out on the difficult design stage of producing the database there are a
number of questions which you should ask yourself or your user.
What do I want?: You must first establish why you require your database and what you
expect to get from it. It is most important to define your output needs first.
Mistakes are often made because people try to decide what to put into their database
before they know what they want from it.
What have I got?: Knowing what you want then allows you to look critically at what data
you have and make decisions as to how it should be structured in terms of fields and
tables.
What do I need to do?: This question asks you to look at any manipulation you need to
carry out in order to achieve your information output: searches, sorts, and calculations.
Define your needs
• In order to clarify your needs it is often useful to draw a simple diagram and/or write a
short narrative. If the database is being designed for others, show them your
sketch/narrative and use it to check your understanding of their requirements.
Example:
C.C.Toys is a retailer of toys for children of all ages. It buys its toys from a number of
suppliers. It employs four staff. The store is laid out according to themes under a number
of categories (e.g. Soft toys, Games Software etc.). Orders to suppliers can be for either
single or multiple products.
The illustration below shows the tables needed for C.C. Toys.
to download this course click here
Monday, 8 November 2010
the high Keyword
chicago personal injury attorney $74.01
lasik new york city $68.17
new york personal injury lawyer $64.27
new jersey car insurance $64.17
new york personal injury attorney $61.70
chicago personal injury lawyers $61.64
mesothelioma lawyers $61.17
atlanta personal injury lawyer $60.74
new york personal injury lawyers $60.29
lasik dallas $59.00
new york personal injury lawyers $58.68
miami personal injury attorney $58.48
what is mesothelioma $58.25
best equity loan $58.08
lasik new york $57.95
whole life insurance quote $56.88
new york car insurance $55.75
whole life insurance quotes $54.46
car insurance in new jersey $53.42
las vegas personal injury lawyer $53.12
term life insurance quotes $52.92
mesothelioma treatments $52.57
equity loan rate $52.41
equity loan $51.78
new york personal injury lawyer $51.60
equity loan rates $51.29
fixed rate equity loan $51.15
causes of mesothelioma $50.54
los angeles botox $46.33
new lasik $45.07
fixed equity loan $44.96
san diego personal injury attorney $44.51
125 equity loans $44.29
mesothelioma cases $43.58
car insurance in new york $43.57
equity refinance $42.97
asbestos and mesothelioma $42.70
auto insurance quote $41.52
[cosmetic surgery los angeles] $40.47
personal injury attorney atlanta $40.04
car insurance california $39.97
oregon personal injury lawyer $39.66
auto insurance $39.33
albany personal injury lawyer $39.35
fixed equity loans $39.21
personal injury lawyers $39.01
ameriquest mortgage $38.84
auto insurance quotes $38.31
mortgage refinance $38.29
lump sum settlement $38.17
cause of mesothelioma $37.43
mesothelioma lawyers $34.98
Structured settlements $33.55
home equity line of credit $32.44
mesothelioma attorneys $30.88
Equity Line Credit $30.02
Student loan Consolidation $29.48
home equity loans $29.13
consolidate loans $27.75
freecreditreport $24.48
mesothelioma diagnosis $24.15
peritoneal mesothelioma $23.64
student credit cards $23.45
Term Life $23.20
credit report $22.87
Debt Consolidation $22.65
credit reports $22.03
refinance $21.67
refinancing $21.57
Consolidate $20.72
line of credit $20.44
Refinance Quotes $19.86
free credit reports $19.19
Free Credit Report $18.83
domain registration $18.41
Low Interest Credit Cards $18.27
Malpractice Lawyer $17.91
Injury Attorney $17.52
Car Insurance $17.23
Jet Charter $16.71
Drug Rehab $16.41
debt management $15.82
hard drive recovery $15.82
airlines credit card $15.76
merchant account $15.66
mesothelioma $15.33
register domain $15.14
Life Insurance $15.10
Pay Day Loans $15.02
low interest $15.01
Private Jets $14.85
Anti Spam Software $14.84
credit counseling $14.81
Eloan $14.73
debt solutions $14.53
free credit $14.28
Lexington law $14.26
Email Hosting $14.22
credit card processing $14.19
American express credit $14.08
consumer credit counseling $13.99
merchant accounts $13.81
Wrongful death $13.77
Credit Cards $13.66
secured $13.62
credit counselors $13.48
fast loans $12.97
Insurance $12.90
malignant pleural mesothelioma $12.84
debt problems $12.80
Helpdesk Software $12.79
Spam Filter $12.78
trans union $12.77
payday loans $12.77
Dedicated Hosting $12.75
credit counseling service $12.64
cash advance $12.60
Lasik $12.56
Homeowner's Insurance $12.47
Credit Score $12.24
poor credit $12.19
Mortgages $12.00
Online Trading $12.15
Reduce Debt $11.86
Loans $11.50
cash loans $11.14
Lexington law firm $11.05
Consumer Credit $11.00
adwords $10.61
my fico score $10.43
Canadian Pharmacy $10.33
Online Banking $9.82
Teeth Whitening $9.77
Business Credit $9.71
Alcohol Treatment $9.70
Cheap Hosting $9.60
University Degrees Online $9.59
hosting $9.49
affiliate programs $9.43
Web Host $9.39
Asbestos Cancer $9.29
video conferencing $9.12
Rewards Cards $8.91
Dental Plans $8.89
merchant account application $8.86
Cellular Phone Rental $8.85
Borrow Money $8.81
Vioxx $8.79
discover credit $8.78
Equity Loans $8.55
citifinancial $8.53
Casinos Online $8.42
Death Insurance $8.42
money magazine $8.05
Bachelor Degree $7.86
broadband phone $7.86
mesothelioma symptoms $7.83
Doctorate Degree $7.72
Personal Domain Name $7.66
Annuity $7.61
Lenox China $7.46
hard money lenders $7.34
Bextra $7.22
Rehab $7.05
IRA Rollover $6.96
make money at home $6.88
search engine optimization $6.85
Master Degree $6.80
make extra money $6.63
Online Marketing $6.37
asbestos $6.37
Distance learning $6.31
Laptop Computer $6.31
Bankruptcy $6.10
make money from home $5.98
Spyware $5.92
Adsense $5.90
Internet Broker $5.76
Payperclick $5.65
Yellow Page Advertising $5.60
Blue Cross $5.54
money on the internet $5.52
earn money $5.32
Acne $5.28
Calling Cards $5.25
Quick Book $5.22
send money to India $5.20
Extra Money $4.79
Investing $4.64
Depression $4.62
making money on the internet $4.49
lung cancer $4.49
Cell Phone Plans $4.43
voip $4.20
identity theft $4.16
Need Money $3.94
Anti Virus Protection $3.88
claims $3.82
Bonds $3.66
Work at Home $3.42
Weight Loss $3.37
Windstar Cruise $3.33
Satellite $3.12
http://www.clicksia.com/index.php?ref=alimkdm
http://www.neopays.com/index.php?ref=alimkdm
Friday, 5 November 2010
BASICS OF MICROSOFT-EXCEL

INTRODUCTION
quite useful in entering, editing, analysis and storing of data.
Arithmetic operations with numerical data such as addition,
subtraction, multiplication and division can also be done with
Excel. You can sort the numbers/characters according to some
given criteria (like ascending, descending etc.)and solve simple
financial, mathematical and statistical formulas
After going through this lesson you would be in a position to
* explain the basic features of MS Excel
* set pages and their printing
* modify a worksheet
* enter and edit data in a worksheet
* work on keyboard shortcuts
EXCEL FEATURES
There are a number of features that are available in Excel to
make your task easier. Some of the main features are:
AutoFormat - lets you to choose many preset table formatting
options.
1 AutoSum - helps you to add the contents of a cluster of
adjacent cells.
2 List AutoFill - automatically extends cell formatting when a
new item is added to the end of a list.
3 AutoFill - feature allows you to quickly fill cells with repetitive
or sequential data such as chronological dates or numbers,
and repeated text. AutoFill can also be used to copy functions.
You can also alter text and numbers with this feature.
4 AutoShapes toolbar will allow you to draw a number of
geometrical shapes, arrows, flowchart elements, stars and
more. With these shapes you can draw your own graphs.
5 Wizard - guides you to work effectively while you work by
displaying various helpful tips and techniques based on what
you are doing.
Drag and Drop - feature will help you to reposition the data
and text by simply dragging the data with the help of mouse.
6 Charts - features will help you in presenting a graphical
representation of your data in the form of Pie, Bar, Line charts
and more.
7 PivotTable - flips and sums data in seconds and allows you
to perform data analysis and generating reports like periodic
financial statements, statistical reports, etc. You can also
analyse complex data relationships graphically.
8 Shortcut Menus - commands that are appropriate to the
task that you are doing appear by clicking the right mouse
button.
TO DOWNLOAD THIS COUSE CLICK HERE
Tuesday, 26 October 2010
Tutorial: Microsoft Office 2003 Word Introduction
Microsoft Word is an essential tool for the creation of documents. Its ease of use has

made Word one of the most widely used word processing applications currently on
the market. Therefore, it's important to become familiar with the various facets of
this software, since it allows for compatibility across multiple computers as well as
collaborative features. Word is a fairly simple program to use for completing simple
tasks. However, it may be more difficult to learn how to explore the more advanced
possibilities of Word।
Opening Microsoft Word:
To run Word on your computer: “Start” >> “Programs” >> “Microsoft Office” >>
“Microsoft Office Word 2003.” If there is an icon of Microsoft Word available on your
desktop (shaped like a square with a "W" in the middle), you can open up the
program by double-clicking it, as well।
Making a New Blank Document:
When Word is opened, a new blank document should automatically open. If not, then
you can begin a new blank document in a variety of ways.
First, find the "New Blank Document" icon, which looks like a blank sheet of paper,
located underneath the menu bar in Word in what is called the "standard toolbar."
Click on the icon to bring up a new blank document.
to download complete course click here
Friday, 22 October 2010
Adobe® Creative Suite Design Premium
Welcome to Adobe Creative Suite 5 Design Premium. This document contains late-breaking product information, updates, and troubleshooting tips not covered in the Design Premium documentation
Creative Suite 5 Design Premium components
Adobe® Photoshop® CS5 Extended
Adobe® Illustrator® CS5
Adobe® InDesign® CS5
Adobe® Acrobat® 9.3 Professional (separate DVD)
Adobe® Flash® Catalyst™ CS5
Adobe® Flash® Professional CS5
Adobe® Dreamweaver® CS5
Adobe® Fireworks® CS5
Adobe® Bridge CS5
Adobe® Device Central CS5
Adobe® Media Encoder CS5
Adobe® Extension Manager
Integrates with Adobe® CS Live Online Services*
*Adobe CS Live services are complimentary for a limited time and include Adobe® BrowserLab, Adobe® CS Review, Acrobat।com, Adobe® Story and SiteCatalyst® NetAverages**
Minimum system requirements
Windows®
Intel® Pentium® 4 or AMD Athlon® 64 processor
Microsoft® Windows® XP with Service Pack 3; Windows Vista® Home Premium, Business, Ultimate, or Enterprise with Service Pack 1 (Service Pack 2 recommended); or Windows 7
1GB of RAM or more recommended
9.3GB of available hard-disk space for installation; additional free space required during installation (cannot install on removable flash-based storage devices)
1280x800 display with qualified hardware-accelerated OpenGL graphics card, 16-bit color, and 256MB of VRAM
Some GPU-accelerated features require graphics support for Shader Model 3.0 and OpenGL 2.0
Some features in Adobe Bridge rely on a DirectX 9–capable graphics card with at least 64MB of VRAM
DVD-ROM drive compatible with dual-layer DVDs
Java™ Runtime Environment 1.5 (32 bit) or 1.6
QuickTime 7.6.2 software required for multimedia features
Adobe Flash® Player 10 software required to export SWF files
Broadband Internet connection required for online services**
Mac OS
Multicore Intel® processor
Mac OS X v10.5.7 or v10.6
1GB of RAM or more recommended
10।3GB of available hard-disk space for installation; additional free space required during installation (cannot install on a volume that uses a case-sensitive file system or on flash-based storage devices.)
1280x800 display with qualified hardware-accelerated OpenGL graphics card, 16-bit color, and 256MB of VRAM
Some GPU-accelerated features require graphics support for Shader Model 3.0 and OpenGL 2.0
DVD-ROM drive compatible with dual-layer DVDs
Java™ Runtime Environment 1.5 or 1.6
QuickTime 7.6.2 software required for multimedia features
Adobe Flash® Player 10 software required to export SWF files
Broadband Internet connection required for online services**
This product may allow you to extend its functionality by accessing certain features that are hosted online, including the Adobe CS Live online services ("Online Services"). The Online Services, and some features thereof, may not be available in all countries, languages, and/or currencies and may be discontinued or modified in whole or in part without notice. Use of the Online Services is governed by separate terms of use and by the Online Privacy Policy, and access to some services may require user registration. Some Online Services may be subject to fees and require a subscription. Fees subject to change. For more details and to review the applicable terms of use and Online Privacy Policy
Install your software
Install a Creative Suite 5 edition from disc
The components of Adobe Creative Suite 5 Design Premium are located on multiple DVDs:
Adobe Creative Suite 5 Design Premium Application DVD set (multiple discs)
Adobe Acrobat 9 Pro Application DVD (single disc)
Each component has its own serial number.
Locate all installation media and serial numbers before you begin the installation process.
Install Creative Suite 5 Design Premium
Before you begin, close all applications, including your web browser. Make sure you have administrative privileges or can validate as an administrator.
If you are installing as an upgrade, the installer will check your system to find the valid upgrade product. If it cannot find it, it will ask you to input the serial number of the product being
upgraded. You can also install the software in trial, then input your new and previous serial numbers in the serialization screen shown during launch.
1.
Insert the Adobe Creative Suite Application DVD 1 into your DVD drive.
2.
Double-click Setup.exe (Windows) or Install.app (Mac OS) to begin the installation.
Note: Depending on your Autoplay settings in Windows, the Set-up.exe file may launch automatically.
3.
Follow the onscreen instructions to complete the installation.
4.
When prompted to enter a serial number, enter your Adobe Creative Suite 5 edition serial number and complete the installation. Note: You may be asked to close conflicting processes in order to complete the installation
Install Acrobat 9 Pro
If you already have Acrobat 9 Pro installed, either as part of a suite or as a standalone application, you do not need to reinstall it. Existing Acrobat 9 Pro users should download and install the most current updates. To check for updates, open Acrobat 9 Pro and choose Help > Check For Updates.
If you have Acrobat 8 or earlier installed on your computer, you must uninstall it before you install Acrobat 9 Pro.
1.
To remove Acrobat, do one of the following:
o
(Windows XP) Open the Windows Control Panel and double-click Add or Remove Programs. Select the product that you want to uninstall, click Change/Remove, then follow the onscreen instructions.
o
(Windows Vista and Windows 7) Open the Windows Control Panel and double-click Programs and Features. Select the product that you want to uninstall, click Uninstall/Change, then follow the onscreen instructions.
o
(Mac OS) Run the uninstaller located in the Acrobat Professional folder.
2.
Insert the Adobe Acrobat 9 Pro Application DVD disc into your DVD drive.
3.
Do one of the following:
o
(Windows) Navigate to the root directory of your DVD drive and double-click the Setup.exe file to begin installation.
o
(Mac OS) Drag the Adobe Acrobat 9 Pro folder into your Applications folder. After the files are copied, launch Adobe Acrobat 9 Pro.
4.
Follow the onscreen instructions to complete the installation.
5.
When prompted to enter a serial number, enter your Adobe Acrobat 9 Pro serial number and complete the installation.
to download this course click here
Learn Pascal in Three Days
The Pascal program may be as simple as the one in Example 1-1. It displays on your
screen the phrase “Hi there.”
{ ----------------------------- Example 1-1 ------------------------------ }
PROGRAM FirstProgram(OUTPUT);
BEGIN
WRITELN('Hi there')
END.
Whether the Pascal program is small or large, it must have a specific structure. This
program consists mainly of one statement (WRITELN) which does the actual work
here, as it displays whatever comes between the parentheses. The statement is
included inside a frame starting with the keyword BEGIN and ending with the keyword
END. This is called the program main body (or the program block) and usually
contains the main logic of data processing.
Comments
Consider the first line in the program:
{ ----------------------------- Example 1-1 ------------------------------ }
This is a comment and is totally ignored by the compiler. Comments can appear anywhere
in the Pascal program between two braces ({}) or between the two symbols
(* and *) thus:
(* This is a comment *)
1
Program Heading
The second line is called the program heading. It starts with the keyword PROGRAM
followed by a space, followed by the program name (FirstProgram). The program
name is a user-invented word. User-invented words are classified in Pascal as identifiers.
An identifier must begin with a letter and may contain any number of letters or
digits (in Turbo Pascal it may contain underscores as well). You are free to choose any
meaningful name for your program, but do not expect a program name like “BEGIN”
or “PROGRAM” to be accepted. These words are called reserved words, and they are
only used in the proper place in the program. Pascal reserved words are summarized
in Appendix B.
The program name is followed by the word OUTPUT contained in parentheses and
terminated with a semicolon:
PROGRAM FirstProgram(OUTPUT);
The keyword OUTPUT tells the compiler that this program is going to produce output
(such as writing to the screen), which is the counterpart of INPUT (such as reading
from the keyboard). The words OUTPUT and INPUT are called file parameters. The
program may perform both input and output, in which case the file parameters take
the form:
PROGRAM FirstProgram(INPUT,OUTPUT);
In Turbo Pascal the program heading is optional. You may skip the whole line and start
your program with the word BEGIN, or you may use the program name without
parameters, like this:
PROGRAM FirstProgram;
Syntax and Conventions
The most important syntax is the semicolon after the program heading (which is used
as a separator) and the period after the word END (which terminates the program).
A common convention is to write Pascal keywords in uppercase and the user-invented
names (identifiers) in lowercase with the first letter capitalized. If the name consists of
more than one word (which is the case in this program), the first letter in each word is
capitalized. So, in Pascal programs you may see identifiers like:
Wages
PayRoll
HoursWorkedPerWeek
This is just a convention to make your program readable, but Pascal compilers are not
case sensitive. This means that you can write the entire program in lowercase as in
2 Chapter 1
Example 1-2, or in uppercase as in Example 1-3. All three of the programs will compile
and run.
{ ------------------------------ Example 1-2 ------------------------------ }
program firstprogram(output);
begin
writeln('Hi there')
end.
{ ------------------------------ Example 1-3 ------------------------------ }
PROGRAM FIRSTPROGRAM(OUTPUT);
BEGIN
WRITELN('Hi there')
END.
All blank lines, indentations, and spaces (except those following the Pascal keywords)
are optional, but it is a good programming habit to use this method to make your program
well-organized and readable।
1-2 Displaying Text: WRITELN, WRITE
To display several lines of text you need a WRITELN statement for each line, as in the
following program in Example 1-4. Be sure to put quotes around text strings.
NOTE A companion CD-ROM comes with this book to help you save time and
effort. This disc contains the source code of all examples, in addition to the
solutions of the drills. Please read the Readme.txt or Readme.htm file on the
distribution disc. It contains the instructions for installing the files on your hard drive.
Notice that the Readme.htm file starts up automatically when you insert the CD into
the drive.
{ ------------------------------ Example 1-4 ------------------------------ }
PROGRAM LinesOfText(OUTPUT);
BEGIN
WRITELN('Hi there.');
WRITELN('How are you today?');
WRITELN('Are you ready for Pascal?')
END.
Now the program contains more than one statement. Each statement must be separated
from the next one with a semicolon. This is the only way the compiler can
recognize the end of a statement, but for the last statement in the program block you
may skip the semicolon.
When you compile this program it will give the following output:
Hi there.
How are you today?
Hello Pascal 3
Are you ready for Pascal?
The WRITELN statement displays a line of text followed by a new line (a linefeed and
a carriage return). If you wish to display two strings on the same line, you need to use
the WRITE statement as shown in the following program.
{ ------------------------------ Example 1-5 ------------------------------ }
PROGRAM TwoLines(OUTPUT);
BEGIN
WRITE('Hi there. ');
WRITELN('How are you today?');
WRITELN('Are you ready for Pascal?')
END.
The output of this program is:
Hi there. How are you today?
Are you ready for Pascal?
As you can see in the program output, the second string is written on the same line as
the first string as a result of using the WRITE statement to display the first string.
This is the only difference between the two output statements WRITE and
WRITELN.
If you want to display a blank line, you only need the statement:
WRITELN;
Drill 1-1
Write a Pascal program to display the following text on the screen:
Wordware Publishing, Inc.
-------------------------
2320 Los Rios Boulevard
Plano, Texas 75074
-Crunching Numbers
The easiest task for any program is to crunch numbers. The statement WRITELN (or
WRITE) can be used both to display numbers and evaluate numerical expressions. You
can build up arithmetic expressions using the following arithmetic operators:
+ addition
– subtraction
* multiplication
/ division
4 Chapter 1
Take a look at these examples:
WRITELN(123);
WRITELN(1.23 * 4);
The first example displays the number between the parentheses (123). The second
example performs multiplication of two numbers and displays the result. Notice that
for numeric values, unlike text strings, you don’t use quotes.
You may use WRITELN to display text and numbers in the same statement by using
the comma as a separator like this:
WRITELN('The result is=', 125 * 1.75);
The following program is used to evaluate two numeric expressions (multiplication
and division) and display the results preceded by the proper text.
{ ------------------------------ Example 1-6 -------------------------------}
PROGRAM CrunchNumbers(OUTPUT);
BEGIN
WRITELN('I can easily crunch numbers.');
WRITELN('Here is multiplication of 50x4:',50*4);
WRITELN('..and here is division of 2400/8:',2400/8)
END.
The output of this program is:
I can easily crunch numbers.
Here is multiplication of 50x4:200
..and here is division of 2400/8: 3.0000000000E+02
The multiplication is done as expected. The two operands (50 and 4) were integers
(whole numbers) and the result (200) was an integer too. The division result, however,
came out in a format that needs some explanation.
Integers and Real Numbers
The division performed with the operator / is called real division and always produces
as its result a real number. Real numbers may be written in fixed-point notation (such
as 300.0) or in scientific (exponential) notation (such as 3.0E+02), but in Pascal, real
number output will always be represented in scientific notation by default. A number
written in scientific notation is made up of two parts divided by the letter E (or e). The
left part is called the mantissa and indicates the significant digits, while the right part
is called the exponent. The exponent is a power of ten that determines the position of
the decimal point. So, in this example the number:
3.0000000000E+02
is the same as the number:
3 x 102
Hello Pascal 5
The same number, when expressed in fixed-point format, becomes:
300.0
If the exponent is preceded by a minus sign as in:
3.124E–02
then the decimal point is shifted two positions to the left. This number, then, is the
same as:
0.03124
If the number is negative, the minus sign should precede the mantissa:
–0.0124E–02
If the number is positive, you may omit the sign for either the mantissa or the
exponent:
1.23E02
The division operator (/) is called the real division operator, because the result always
appears as a real number regardless of the type of the operands.
For integer division use the operator DIV as in the example:
WRITELN(2400 DIV 8);
This will produce the output 300.
With integer division, any fraction in the result will be truncated, as in this example:
WRITELN(9 DIV 4); produces the output 2
Another important operator, MOD, is used to get the remainder of integer division
(modulo), as in these examples:
WRITELN(9 MOD 4); produces the output 1
WRITELN(3 MOD 4); produces the output 3
The operators DIV and MOD take only integer operands and produce integer output.
For the other operators (+, –, and *), if either one of the operands is real, the result
will be real.
to download this course click here
Thursday, 21 October 2010
Ajax Programming for the Absolute Beginner
welcome to Ajax Programming for the Absolute Beginner! Ajax (Asynchronous
JavaScript and XML) is a collection of web development technologies that
can be used to create web applications that provide levels of responsiveness
previously unheard of. As a result, when combined with high-speed internet connections,
you can use Ajax to develop web applications that behave and respond
like desktop applications.
In recent years, web developers have begun to make major investments in Ajax,
using it to create a whole new generation of web applications. For example, Google
has used Ajax in the creation of all its latest applications, including Google Suggest,
Google Maps, and Gmail. Amazon.com has used Ajax in the development of
its A9.com search engine as well as to enhance and improve its main website.
Websites like Ask.com and Snap.com have used Ajax to make major improvements
to their search engines. Other companies have used Ajax to help develop entire
office suites of free online applications. For example, ThinkFree Online
(www.thinkfree.com) can create text documents, spreadsheets, and presentations
all of which are 100 percent compatible with Microsoft Office. Google’s Google
Docs Online office suite (docs.google.com) is another example of online applications
developed using Ajax.
When it comes to web development, Ajax is truly the “next big thing.” Ajax is
becoming an essential ingredient in the makeup of modern web applications. Ajax
is being used in the development of all kinds of exciting new applications and
rightly so, given its ability to support the creation of web applications with
desktop-like performance.
Using Ajax programming techniques you can transform the way your web applications
look and feel, providing your visitors with a significantly enriched experience.
By learning how to create Ajax applications, you will develop a highly
marketable set of skills that are currently in high demand. To help you accomplish
this goal, this book uses a hands-on instructional approach, emphasizing learning
by doing, which is accomplished through the development of a series of computer
games.
So, whether you are a student who has just signed up for an introductory web development
class that uses Ajax, a hobbyist who wants to have some fun, or a web developer interested
in expanding your skill set, this book will help you get off to a good start. By the time you are
done, you will be ready to begin taking your web applications to the next level
WHY AJAX?
Ajax changes the way in which web applications are designed, replacing requests for new web
pages and screen refreshes with small data queries to web servers. By requesting less data,
the web servers are able to respond quicker. Ajax data requests are made asynchronously,
meaning that users no longer have to sit and wait for the web server to fulfill a request.
Instead, the user can continue to work with the web application while Ajax collects and processes
the web server’s data in the background, and when it is time to do so, Ajax can use the
data to dynamically update the web page without forcing a page reload. The end result is a
streamlined, faster, and more desktop-like experience.
Because it relies on commonly available technologies like JavaScript and XML, Ajax is readily
available and supported by all major computer operating systems and web browsers. You do
not have to download and install any special software to work with Ajax, and the people who
visit your website do not have to install anything to view and interact with your Ajax
applications
WHO SHOULD READ THIS BOOK?
Ajax Programming for the Absolute Beginner is designed to teach first-time programmers, computer
enthusiasts, and web developers interested in adding Ajax to their bag of tricks. An
understanding of HTML is required for you to complete this book. While previous programming
experience is certainly helpful, as is a basic understanding of JavaScript, the DOM, CSS,
the XMLHttpRequest object, and XML, you do not need to be an expert with any of these technologies.
You will learn all that you need to know about each of these technologies as you
make your way through this book.
In addition to teaching you everything you need to know to get up and running quickly, this
book will make your learning experience as enjoyable as possible. This will be accomplished
using a games-based instructional approach in which you will learn Ajax programming
through the creation of web-based computer games. If this approach to learning sounds interesting
and fun to you, then keep reading. It won’t be long before you are creating all kinds
of fun and exciting web applications
WHAT YOU NEED TO BEGIN?
Ajax is not something that you can buy in a box or download from the internet. It is a collection
of related technologies that are readily available to everyone. Because it is based on
technologies like JavaScript, XML, and the DOM, it is readily available. You do, however, need
a few tools and resources to get started. Ajax uses JavaScript as its programming language. In
order to develop JavaScript code, you need a text or code editor. If you already have a code
editor that you are using to develop your HTML pages, odds are it will support JavaScript as
well. Otherwise, you can use any plain text editor, such as Windows Notepad, when developing
Ajax applications.
In addition to an editor, you will need access to one or more web browsers like Internet
Explorer, Safari, Firefox, or Opera to test your web applications. Because Ajax applications
are designed to work with web servers, you also need access to a web server and the ability to
develop programs that run on the server. For most people this means signing up with one of
the many available web service providers.
Most Ajax applications involve the development of some server-side programs. In this book,
server-side applications (programs that run on web servers) are developed using PHP. Although
the use of PHP will be minimal, to follow along with and test the execution of all of
the examples in this book, you will want to make sure that your service provider supports the
execution of PHP.
Working with Different Web Browsers
Ajax uses JavaScript as its programming language. As such, Ajax is susceptible to all of the
same problems that JavaScript programmers face. One of these compatibility issues involves
the browser. Due to internal design differences, different web browsers work differently with
JavaScript and therefore with Ajax. To properly test your Ajax applications, you should use
all major web browsers, including those listed below, to make sure that they behave as you
expect them to.
• Internet Explorer
• Apple’s Safari
• Mozilla Firefox
• Opera
Most of the figures and examples that you will see in this book are demonstrated using Internet
Explorer 7. Except where noted, all of the examples that are presented in this book
should work exactly the same on all of the major web browsers.
What You Need to Know
In order to take advantage of this book, you need to be familiar with the basics of HTML
development and, of course, you need a website that you can work with and are interested
in making more responsive and dynamic. Beyond that, this book will provide everything else
you need to know. This includes an overview of how to program using JavaScript and the
Document Object Model. This book also provides a basic review of XML and CSS.
Ajax applications have a server-side component needed to make them work. There are many
different server-side programming languages from which to choose, including Ruby on Rails,
PHP, Java Servlets, and ASP. Of these, PHP is arguably the most popular and easiest to work
with and is the server-side programming language that this book uses. You will not have to
become a PHP guru in order to make your way through this book. However, a basic understanding
of PHP will be helpful. To make sure you have a basic understanding of PHP
programming, this book provides a quick server-side PHP programming primer.
to download this course click here