Click Start 8 - Unit 1 To 5
Click Start 8 - Unit 1 To 5
UNIVERSITY PRESS
Click Start
INTERNATIONAL EDITION
Learner's Book 8
CAMBRIDGE
UNIVERSITY PRESS
www.cambridge.org
Information on this title: www.cambridge.orgj9781108951944
© Cambridge University Press 2021
This publication is in copyright. Subject to statutory exception
and to the provisions of relevant collective licensing agreements,
no reproduction of any part may take place without the written
permission of Cambridge University Press.
First published 2021
20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
Printed in Poland by Opolgraf
ISBN 9781108951944 Paperback
Cambridge University Press has no responsibility for the persistence or accuracy
of URLs for external or third-party internet websites referred to in this publicat ion,
and does not guarantee that any content on such websites is, or will remain,
accurate or appropriate. Information regarding prices, travel timetables, and other
factual information given in this work is correct at the time of first printing but
Cambridge University Press does not guarantee the accuracy of such information
thereafter.
Every effort has been made to trace the owners of copyright material included in this
book. The publishers would be grateful for any omissions brought to their notice for
acknowledgement in future editions of the book.
1ntro ducti on
The international edition of Click Start: Computing for Schools is
designed around the latest developments in the field of computer science,
information and communication technology. Based on Windows 7 and
MS Office 2010, with extensive updates on Windows 10 and MS Office
2016, the series aids the understanding of the essentials of computer
science including computer basics, office applications, creative software,
programming concepts and programming languages.
Each level of the series has been designed keeping in mind the learning
ability of the learners as well as their interests. Efforts have been made to
use examples from day-to-day life, which will help the learners to bridge the
gap between their knowledge of the subject and the real world. The books are
designed to offer a holistic approach and help in the overall development of the
learners.
KEY FEATURES
The books make learning fun and help the learners achieve expertise in this fast-changing world of
computer science.
ouaruiaw
t
,~~ Snap Recap
Probing questions to I. What do you undcrsrand by lhc
tcnn Open source soflware?
begin a chapter and 2. Which soflware program(.s) do
you generally usc for editing
a document or crcming 3
assess pre-knowledge presentation?
r~iMII!IiC·1m;1=d;W~'ii·1!,1DB~*m'CNm¥11t.
. ~·/
.:,
Learning Objectives You \,. .,_llleam about: '~ r:J'
~anous OpcnOfficc application.s ~
A list of the learning Introduction IO OpcnOfficc Writer ~ -•
::~ c;mponenLo;; of the OpenOfficc Writer
outcomes of the chapter 0
~~;c;crit and Fonnal menus in Open Office
inlroduction to OpcnOffice Impress
creating, _modifying and running a
presentation in OpcnOfficc Impress.
Activity
Interactive exercises
after every major topic to
reinforce analytical skills and
application-based learning
fllin tt..bi.Mks.... ~-
-J
A.
-R- - ---~--~-
----b~oloedtog/wan.~to~obJf(tJOOIW~
I. Stat.t._wt-...,
l.l'htf.ile-~ot~f!~~OS..ock.
Quick Key
and Try This
Interesting concept-related
Shortcuts and
snippets to improve
useful tips on
knowledge
options available for
different operations
Glossary
Chapter-end list of
important terms along
with their definitions
Lab Work
.... '
~~ ~
Practical exercises to enable
.. f'"i;
.:--: AQ·!.JB·*"H·i .
Project Work application of concepts
V.<Y\•JI'OIIPI llllV'fii~IOWk.tllfl._ollllcbc .... JOic-.
~r-n..-"
'>Jwdfcw.apc:riodel
.,....arr \-~~«· •*
1 fo~C;,cOrnQG',."(V.!'IIa'IOM«C'IIIc-..rdi10Vrk.
-
~V.Ntt.
~rOnt•bodrlipt.ac .,,.-ol:bt~-oktllrrlllCJren(Mfoce
to test practical
"IMIIU!br 0nr•IID~dltle1.1olllld . . ..c,tffubM!Opct.Oer...-c lmpno...
,O.Il::.b('paup>~kl«<IIIC!JP"'ida•~J~-tJcaorrforlbtS.:holoi-.J~a
~pte~•""*oltbc("lau!NIII~cApplo.:.abOG\.
application of the
concepts learnt
PAPER
WHOAMil
l•.uh.fttell....., ~~--~
,_.._........ -*"of,.,.... rrecr-t.·
Sample Paper
Helps to test learners'
,_-
........ ==---!Wih. . . ftl_l'l'<ooo:ls_
.:::_~""- .... -...............,.,.,"'""""v-..-ws
..............~.....~,..,.,..,......,.....,.=~-
~-----..w..,..,_,.,.I/IJT_...,..
·--. . .
I bot' ~~eencd • :ra-.4 b *'t AdY-=- of hft J. ...... .,. ....._,..._. _ _ . ,__ " ,
~othr.~ta:Wl
understanding at the end of
.=
, ..... INdt' .. ~"''I-C"~Hi.lklr)'-· '~"- -~.._
,_
::011.
the course
o... ...v_
,.,._~....-c.... ...,.,__,
·fj ·EJ
·B ·1:3
WhoAml?
Biographies to
msp1re young
learners
O1 MS Access 2010 .............................................................. 1 O7 Introduction to Python .............................................. 120
o Important database o Creating tables o Features of Python o Operators
terms o Modifying tables and o Writing and executing o Variables
o Functions of DBMS their content commands o Using input() function
o Database objects o Saving a database o How to exit Python for user input
o Creating a database o Opening an existing Shell o Conditional constructs
o Components of the MS database
Access 20 I 0 window o Queries OB More About Python.................................................... 136
o Data Types o Forms o Loops in Python o Jump statements in
o Primary Key o Reports Python
o Changing the View
Iii" o OpenOffice Calc o OpenOffice Base 10 Virus and Anti-Virus .................................................. 162
Computer viruses Types of computer
04 Frames in HTML ......................................................... 72 o
o What a virus cannot do
o
viruses
o Frames o Frame tag <FRAME> o How does a computer o Other harmful programs
o Frameset tag o Nested frameset virus spread o Protection against
<FRAMESET> computer viruses
T r T I) l IJ
MS
ACCBSS
.
, ,
I ·~
2010
. - SNAP RECAP
/ School / Database
-----..,;
Structure of a database
Table Stores information in the form of rows (records) and columns (fields). For
example, one table could store a list of friends along with their details,
while another table could store their exam marks.
Queries These are used for sorting, grouping or filtering data in the database. For
example, a query might only display a list of students in Class 7 out of all
the school students.
Forms Customised screens to provide an easy way to enter and view data in a
table or query. For example, when you apply for admission in a school,
you fill out an online form. The data that you enter in the admission form
is stored inside the school's database.
Reports These present the data from a table or query in a printed format.
For example, teachers can create a report of all the students opting for
Fine Arts as a subject.
A. Create a presentation on the topic 'Databases and their concepts'. The slides
should include:
1. Key features 2. History 3. Real-life usage
B. List the various types of database programs available along with their latest versions.
C. Think of a Hospital database. What do you think the table names might be in this
database? Suggest the different fields of information in the tables. Draw the structure
of this database using a software program of your choice.
Starting MS Access 2010
Follow these steps to open the MS Access 2010 application.
1. Click on Start button c=> All Programs c=> Microsoft Office c=> Microsoft
Office Access 2010.
2. MS Access 2010 window appears.
Creating a database
In MS Access 2010, a database can be created in two ways:
1. Using a blank database.
2. Using sample templates.
You can change the location of the database by clicking on the ~ Browse icon
in the right pane.
Q Home
~ fx ~ ~~~ f~~
~od;' '-"0 .... 110
loot:..;)\ I) Of' 91 ~.,. . :J ·"'
Proptl'bft ,~
M • l Oll • 1'1 •
T
:..r.oa~ ~--
S..-cb
Templates ~
I~ :/
Asset:IWI!'b~ CNnt.lbloeCcnnbutlons
~
Cet1:.KtSWtb 0.tmaM:
Wl!'b Oaa~
F•cuny ] c~
Restore Down/
Maximize Ribbon
Close
~
Navigation ,-
Pane
Status Bar
- H ,-:-:c
tof;-:'"""
1 .::-:-,~.~-: :No-:7,._.,: - -------tl1---------·
---:--c, ....... -
II"
Data Types
The Data Type for every Field Name describes the form in which the data is accepted.
Descriptions of some of the commonly used Data Type values that appear in the
drop-down list are shown in the table below.
F1elds Table
:il Tobit!
Primary Key
Every table in the database must have at least one field that uniquely identifies each
record in the table. This field is known as the Primary Key. This key should always
have a value that is not repeated for any other record.
For example, in a table of students, it is possible that there are two students with
the same name. Here, you can assign Admission No. as the primary key to identify
each student.
If the primary key is not assigned, it is automatically added as an ID at the time
of creating the table.
You can have multiple primary keys for a table. However, these should
be unique values. To do this you must hold down the Ctrl key and then select
the row selector for each field.
--~-~-
~~~~~--------------·-
?.:!
Data Type Description
AutoN umber
-
~
......
Cftate
~
Pnmary Bu1,dtr Ten \la!td.ltJ On ~
Rulu
External Data
~"' insertRows
~ Oelett Rows
.... Modify lookups
Database Tools
lB lv
Design
9•1
T~
~
Tobles ~
I Primory J>ey
::J Tobld
jl, CU!
c~ ~opy T
Field Prooerties
_j, f ute
Genml lt ootupl
f ield Size ~"" InsMRows
N~Values §i' Qdete Rows
Fo rrNt
Caption ~~ frcperties
Indexed Yes {No Duplicates)
Smart Tags A neld name can be up to 64 Characters long,
TtxtAiign General indud•no spaces. Prtss f1 for help on field
nome<.
A key will be displayed in front of the column name to show that the column is now
working as a primary key in the table (see below).
- -~.-
: £1c~lDG7 ·
-
Crtatt ............ ~tt Too4t
.._ <> 0
- - ·- !1 - ·- :a
-- - -..
}~ m.ttROWI
El !: .../ ~ IJ ~ ~ ::;J
- _..
~~~~
•tdV'
......
"~ttr hklln
--··
CruttO.... ~ t
. ,.
"'
-
!!1.
v- ~R«014&TMkfftftl. -. ,.
:::1 _ -.,
......
AI A(cns Otl1t<U 0•
p f•.-ldN.ant4o _,.,.. ". X
..
r-. AutoNI.Ifl\bet"
:::::1 Ttllltl
Primary key
--
.
~
--
........
.......
.... _
.......
""*'
-
s-.rtl~1
l0ft9~f9"'
THI'to~~
l
..... _c-nM~~~tto .. cNr.ctftl~
I
II - -
_j I
~""-· "' • Sialllc.OMtt- n • ...,. I a••w:
A column working as the primary key
Removing a Primary Key
To remove a primary key, select the required field and select the Primary Key option
in the Tools group of the Design tab. Alternatively, you can select the field, right-click
on it and then select the Primary Key option from the shortcut menu. The key symbol
appearing next to the respective field will disappear.
The Datasheet View and Design View are the two most commonly used views in MS
Access. The row and column format is seen in the Datasheet View where data can be
added. Descriptions like field names and data types can be added in the Design View.
It is possible to switch from one view to another using the View drop-down list in the
Views group of the:
• Datasheet tab, while switching from Datasheet View to Design View.
• Design tab, while switching from the Design View to Datasheet View.
Creating tables
There are two ways to create a table in MS Access 2010:
[:] a u
Ext<mal Data Databas• Tools Fl<lds Tabl•
(Ne w)
Cl Tabid
1 of 1 "
5. Click on the field header and select the data type. Add the data to the fields.
.
1 11.~ ·Home·I .
~
.
V1ew
AB
Tut
12 ~
Create
Number Currency
Ext• rnal Data
:s::>Dat• &Tim•
f.' Yt S/NO
!u Mor• Fi<lds •
,
Data bas• Tools
Dtltt•
- ..
~ Namt & Caption
';\ Dtfautt Valu•
t'J Fi<l d Sin
~
Ft<lds
2SS
Tabl<
11'6mbase3: Dmbase (Access 2007 · 28idJfMiCIOSijf Aced
J.~
qoo
<:1"
·tod
j~ l:iliT
".!.:mo
looL.ups borus•on Sdt•ngs
Data Typo: Tut
Fo;.' 1.:.
o;:j% '
F, •t•
~J .~
9
.
.
0
0
0
R•qw td
Untqu•
lndu<d
L
~
.
Validation
~~·
~- OoocripOon
--------~-
-._ Field Grid
pane
Field Grid pane: This pane is used to define the fields in the table along with their
data types and an optional description of the field. You can change the data type of the
field in this view.
Field Properties pane: You can give additional properties to the field name using this
pane. It is used to specify the field properties in detail such as field size and validation.
Some of the commonly used options that can be filled in the Field Properties pane are
explained in the table below.
Field Size Used to set the maximum size for data stored in the field set to
the Text or Number data type.
New Values Used to set the order of numbers in the fields either in an
incremental or random order.
Format Allows you to display data in a format which is different from
the way it is stored. For example, you can choose a predefined
format or other symbols for creating a custom format to define a
currency.
Caption Used to display an alternative name for the field to make it more
explanatory.
Indexed This speeds up sorting but may slow down the database.
Smart Tags Adds tags like date, telephone number, financial symbol or
person name to the field. Each tag is associated with an action or
a list of actions.
Text Align Used for the alignment of the text entered in the field.
Some of the Field Properties in MS Access 2010
4. Enter the required information in the Field Grid and Field Properties panes in the
Design View window (see below). Use the Tab or the Enter key to move through the
different fields.
Description
Aut oN umber ll
Format
Input Mas k
Ca ption
Default Value
Valtdatlon Rule The &U type d ett rmJnes the bnd of ntues
Va ll&tionltxt that users can store in the flt ld. Press fl for
R.equirtd No help on data types.
Allow Zero Length Yt s
Indexed No
Unicode Compression Yes
IMEMode No Control
IMESentence Mode None
5. Assign one of the fields in the Field Grid pane as the primary key. A key will be
displayed in front of the column name to show that the column is now working as a
primary key in the table (see the figure on the next page).
~ ~ :.J
ObJtct
Primary 1ependend es
key
uataType Description
AutoN umber
Text
Text
0 Tlblt2
Number
General lookup
Fat ld S&:t longlnttgtr
New Values lnatmtnt
Format
Capt1on
Indexed Yes (No Ouplocotu)
Smart Tags A field name an bt up to 64 chiradtn lono.
TotAh gn Gtntrll induding spaces. Press Fl for help on field
n.mu.
, _,
·::.- ·
T.....
~ T•bld
• • -
:J Tabl~
Fields tab
Changing Data Types
1. Select the chosen column header.
2. Click on the drop-down list next to the Data Type option in the Formatting group
and select the chosen option.
Deleting a field
1. Select the column header of the field you wish to delete.
2. Click on the Delete option in the Add & Delete group of the Fields tab.
3. Click on Yes in the Microsoft Office Access dialog box.
Moving a field
1. Select the field to be moved. A thick blue
J.
~r: .
'--"
line appears along the left edge of the
Deleting records is ~'- ~~
field.
permanent. It cannot be ,~
2. Hold the left mouse button till the cursor reversed through an Undo .,._ •
changes to ~. operation.
3. Drag and drop the field in the desired
location.
Renaming a field
1. Select the column header whose heading you want to change.
2. Right-click on the column and click on the Rename Field option.
I
Select a column/field. Click on the drop-down arrow next to the column I
Saving a database
1. Click on the File menu.
2. Select the Save Database As option from the drop-down list.
liils.vt
lil SOvt Objt<l As
Information about Database4
C:\Users\CYpuset\Doc:uments\Database4.accdb
~so..-
~
~ Opon Save
>ct & R~pair
Database As tent and corrKt databa"' file problems by using Compact and Repair. Y•tw and gdjt database proprQ!tt
~ DmbosM.accdb
~ D~db
option
~ ~cdb
~ FK\Aty.aa:cl) Encrypt with Password
u.., a password to r~ct access to your data~. Files !hat~ w 2007
Info Microsoft Access file format or lat~r ar~ encrypt~.
Encrypt with
Password
Recent
New
Help
.:l OpQoftS
D Elli
liil .....
Information about Database2 ·- ~ ~ :: . .....
i\, Savt Objtd As
!£) Savt Database A1
C:\Uws\TEMP.cupuser·PC\Documents\ Ort.bueUccdb
t-
Comp01ct & Rltp.alr
'*
LJ' Oost Databut Help prevmt and corr~ databu t me probltms by using Compa,tt and
Re~ir.
@ O&l!Wisrl_.«db Comp~ct&
Rep.iirDahb.ue
@ DatibiSd..tCCdb
Rocent
'i All open objects must be cJos,ed boefore you Ave the database. II
New Oo you wantMiaosoftAca:s:s todoseal ooenobjects?
Print ~ ~
Htlp
4. The Save As dialog box appears. Select the chosen location for saving the file and
enter the file name in the File name box. Click on the Save button.
*1::1 Favontcs
O.SI:top
E Name O~e mcdifitd Type
@)Oatabl:~el
Save
button
:'. litw¥MS
GOo<...-
button
•' """'
.: PJCtuta
A,..._
- 1- • - - ·I
Took · ~~
Queries
A query is a question relating to the data with a specific answer to it. It is a way of
retrieving specific information from single or multiple tables of the database.
Follow these steps to raise a query in MS Access 2010:
1. Open the database.
2. Click on the Create tab and then select the Query Design option in the Queries
group.
--- -- ( ] .;: Modutc
Oa.ssModuJc
Appk(.atlon
Patt1· Mkro ~Vts\UIS..II(
Ttr~~"t&t~ Maaos&Codc
AJI Access Objtcts e « j
-=::~ ·- X
l'
~'"'"~li·otuo
··-
fleiCISi::t
...........
DcdeMAHH
C.pbon
....
v_...,
Od.uttvatuc
..
AhridNmtQn~UPtO ... c:NfKttn tonQ.
........
V~61bont~
~tttd No
--·
~SP~U't . FttnflfOtNipontfdd
,.,......,
s..rt Ta91
II
ICe a ·"
-
~~ :::,~~ ~:::. ,_~~=a....,,,_, . ~==
·-
Micro !!J'<I'»>MMa-t
.......
rt.,wtel 1161*1
. . Qucton .
-·~ .
.
.
.UACunObftel:J ~
,_
""""" JJ
....,.... ~
L_
!
010~
•'· .
~I.
Gl
0 0 0 0 0 0 0 0 0
Design Grid pane: The portion of the Query tab where fields and criteria for the
query are added.
Some of the commonly used options that can be filled in this pane are explained in the
table below.
Field Shows the fields in the selected table to be included in the query.
Table Displays the name of the table from which the field has been added.
Sort Determines the sorting order of the data in the datasheet produced by the
query.
Show A checkbox that shows or hides the fields.
Criteria Specifies the condition on which the query will have to be answered.
or For specifying alternative criteria on which the query will be resolved.
Design Grid properties
6. Click on the down arrow in the Field property boxes and add the fields in the chosen
order: The corresponding name of the table will appear in the Table property.
Click on the table name with the asterisk (*) symbol in the drop-down list,
to add all the fields of the table to the query. You can also double-click on a
field name in the upper pane or drag it to the chosen box to add it to the Field
property in the Design grid.
7. Sort the data in the selected field based on your preference using the Sort property.
8. Specify the criterion for the query in the Criteria property box. Add multiple criteria
in the property box.
A ") •
...........
~-·
AIAcuss~
-
ll6tkt: frprl: (btployu ) &pt2: tJti<OMtl b:ptl: [lonuiJ [Xs:ltnd4uru
Tete: Tabid
,_ ~ 0 0 !::! !:I
c.t-
oc
....,
Design grid filled for the query
If required, click on the Save As option from File menu to save the query.
To run a query
Follow these steps to run a query:
Click on the Design tab ===> Results group ===> Run option.
! '[§11LJ! +! ~ [J 1<,
CDUnoon
• ~ Pau.Through
b ~-a Insert Rows
:"' Ot.cte Ro• .s
"'131" Insert Columns
':Jf Delete Columns
~
L
~
L ?
.]
!!f
..,,
Property Sh«t
..J! Table Na111es'
Run Select ~~~: Append Update Crosrta:b Otlde ~Data Otf.nrt•on ~R<turn: All
Totals Parameters
Show·'Hadt
Tobie! Toblel
Tabla
~
::J Tabid 9 10
:::J Tablo2 Name
LJ
Field: GJ
Subject
Roll No
Show:
Criteria:
EJ 0
or.
Run option
The result for the query appears in the Query window in the Datasheet view.
When two or more criteria are written in the Criteria property line,
the result will show only those entries where all the specified criteria
are met. However, when the criteria is specified in the Criteria and
'or' property line, then the result will show entries where either of the criteria is
met.
Forms
Forms are customised screens for viewing, entering, modifying and deleting data in a
table or a query. You can create a form in MS Access 2010 using the following steps:
1. Open a database.
2. Click on the Create tab ~ Forms group ~ Form option.
.
l ilii' Homt f Crute f Exttmal 01t1 Oatabut Tools Fltlds
"
Tablt
- :..._ '""'==''-
~
~ [§~ Cl ~~ iE ~ LJ (]Nmoation•
~For~Wiard
~
U li_. Rtport Wt:•rd ~ ~ Modult
~ ~ UibtiS ~ O.uModult
......
Appttutlon
TtmpC.t u
Tllblt Tablt SNrtPolnt QutiY Qut!y
Ots~n
Tlblt s
Usts• W\3rd Dtslon
Qut hU
Form o',~:n ~~= ~Mort fornu ..
Forms
Rtport Rtport Slink
Otslon Rtport
Rtports
t.tmo ~VI:su.l 8ulc
~cros&Codt
;s.-.. IP 10 - ctcktoAdd
T.t.lcs
Cl Tal>ltl
• • (New)
Rtcord: M 1 of 1
o.t.sh«t vttw
" "- No Flltrr . Surch
I li ~D"
~ Q ~ c:::J _J _m 17
}ll...
3 [M [i)fonu.
ljc..., . \.s fibT Aa _] g [TIJ . ::J ..(lflttt
::; .,__j
~
.......
Tht~tl
'nl.fi!ICI
:::>0
COIItiOI
-: tNt "
·~· ·
~DI'lt•nd Tlrllt
l'fUCit• ·Pooltl
f1tKIJ
....
).odt:ldrtu'I9Pr~tty
''"~
-
All Acctn Objtas . " ::l •- 3 - X
"""'-
T- •
p
::J Tablel
-
~
::l•-· N ... ,~•r (New) l
Layout Design
View View
Navigation '
Form i
bar
11fr...c:: . - -- View
-
·-- H
"" ~ No S.wd>
~
Creating a form
5. Save the form using the Save As
option in the File menu drop-down
list. G'----"' ~
6. You can change the view of your You can make changes to the ~ ,:; <.~
form using the icons given in the content of the form. Right click ~~
Status bar. The Layout View can on the logo or the title of the .._ .,.
be used to change the layout. A table and select Properties from the
style can be selected from the shortcut menu.
Auto Format group of the Format Make the required changes in the Property
tab. The Design View can help in Sheet pane on the right side of the screen.
changing the design.
Reports
Reports are the representation of data in a printed format. The size, appearance and
layout of the print can be customised based on the requirements.
Follow these steps to create a report in MS Access 2010.
1. Open the database. Select the table or the query for which a report has to be created.
2. Click on the Create tab ==> Reports group ==> Report option.
lllr.T~ob~
ln--------~~~~~
30 S•pt•mb•r 2019
::J Tlbltl
Tablel
17:41:53
Forms
10 \:ame Roll "o
::ID Tobltl
6 = .---1
..JI.[Reema Design
2 Asha
--------------~ Layout View
3 Jay
14
View
Print
Form Preview
View - - --
Lltout Vltw
~]
~ IJ DO I"' ShO\' Margms
Tables ~ !
;:n Table!
Forms ~I CJ Tablel 30 September 2019
I!
SJ Table! 17:43:38
10 Name Roll NO
I lii Reema II 11 1
!
I 2 11 Asha II 12 1
I 3 II .Jay II 13 1
I 4 11 Adil II 141
I AI
Ready
Pige: 1 .". -~ No Fllttr I I•
I
•
I eilll\SI 'i: LOO% 0 - 0 - - \ ± ) ·"
~
...
A query has been generated for a group of related tables in a database. Is it possible to
get a hardcopy of the query? If yes, suggest how.
B. Create a table with the records of sports lovers in your class using MS Access 2010.
Use different descriptive fields such as Student Numbers, Student Names and Favourite
Sports with appropriate data types. Set a unique primary key for the table. After the
table is created:
1. Enter at least 10 records in the table.
2. Change the address of record 3 and favourite sport of record 6 in the table.
3. Delete the last record from the table.
4. Create a query based on the favourite sport. For example, create a query to display
only football lovers.
5. Generate a report for the table.
6. Create a form and enter a new record into the table.
7. Save all changes made to the table.
8. Close the table and the database.
G~
~~-/'-----1
1. Microsoft Access 2010 is a database program used for storing information
in the form of tables, queries, forms, reports, etc.
2. A DBMS reduces data redundancy, makes file sharing easier, controls data
1 inconsistency and enforces standards.
3. A new database can be created either using a Blank database or Sample
templates.
4. Tables can be created either in Datasheet View or Design View.
5. The Design View consists of two panes: Field Grid pane and Field Properties pane.
6. Queries are raised to get specific information from a table or tables.
7. Forms provide different views for adding, deleting, formatting and designing the data.
8. Queries, forms and reports created for a table can be saved in a database.
A. True or false?
1. Customised screens that provide an easy way to enter and view data
in a table or query are called reports.
D
2. A new database can only be created using a blank database.
D
3. Queries are raised to get specific information from a table.
D
4. One or more of database objects are found when a database is created.
D
5. The primary key should always have a value that is not repeated for any
other record.
D
B. Match the following.
1. Status bar a. Information arranged horizontally in a table
A. Create a database to maintain the library records of your school. Design a form
for new students joining the library.
B. Prepare a table listing the names and taste of your ten favourite food items. Delete
the rows in which the names of junk food items have been listed. Insert new rows
and complete the list with healthy foods.
C. Create the following tables in MS Access 2010.
US States US Cities
S_Code S_Name C_Code C_Name
GA Georgia Atlanta 9 Augusta ME
MA Massachusetts Boston 10 Atlanta GA
ME Maine Augusta 11 Boston MA
RI Rhode Island Providence 12 Cambridge MA
WI Wisconsin Madison 13 Madison WI
14 Milwaukee WI
15 Providence RI
WHO AM I?
I was born on 16 July 1951 in Philadelphia, Pennsylvania, USA.
I co-created the software program VisiCalc, the first electronic
spreadsheet.
I am also known as 'the father of the spreadsheet'.
I received the Grace Murray Hopper Award in 1981 forVisiCalc.
lam ........................................................................... .
~--------------~l·~------------~
,~~~ MS Office 2016
~.!! Updates
MS Access 2016 has the same layout as MS Access 2010. There are a few minor
differences listed below.
• The default window of MS Access 2016 is given below. It gives you multiple templates
to select from.
p
---- w......-
• In Access 2016, the top menu has a background color so that it can be easily
differentiated from the rest of the screen. In MS Access 2010, there was no difference
between the color of this menu and the rest of the screen.
~
,_. - '-
. ··- ·- -·-·-· --~· ·-. " ...... -
....... 0.. O....T... .... ~ ....
,, ..
p , ... - -... - ....
-...
;".}
-
-
A/IAccessOb_re
-:::.
-·-
e .. ~
p 0 ~ •
,_
Introduction to
OpanDffica 1
, .
. f
. SNAP RECAP
OpenOffice applications
Tool bar
--
alEJI•
.. · ·=· e-c.
=....= : -=
ee+-~
....
*
,. . = ....
: !- o.co·
Status Bar
.•
N5tT STD
Title bar
This is the bar on the top of the application window with the document name
Untitled 1 and the program name OpenOffice Writer.
Menu bar
This is made up of several drop-down menu tabs: File, Edit, View, Insert, Format,
Table, Tools, Window and Help.
Standard toolbar
This includes tools for frequent tasks such as open, save, copy, cut, paste, etc.
Ruler
Both vertical and horizontal rulers are available to show dimensions, tabs, columns,
margins of the page, etc.
Slide bar
This contains frequently used tools grouped in a deck.
Status bar
This bar displays information about the current page, current template, zoom percentage,
insert or overwrite mode, selection mode, unsaved changes and digital signature.
File menu
The File menu in OpenOffice Writer is shown below, with a list of the various options
available.
f.it £0t ~ J!$crt ~ TJblc l oob ~ l::ldp
Ill """ rt~,~!f;~~:• "·,:: ·~· ~, :' :•,· ·, ·~''" ;r:- •.•• _., ~:· :\"''·~~'"'' ":"" ~:":~::' "C'~ • •.c;~0'117,H ~ Tat
,_.._......., ::Jil v
0
11:1
S.-~ Ctr•·S ~="""'--'=----""'-"--"-'--""-'---'-'-~-----------'--"--,
~e,;.
:o· :o ·
U· 4· • ·
e>D ·
IJt& ~
z
" (,!)
........ : -~ o.co· :
(9.
~anWdlolrowwr
Pf911 PIWI!tW
. "'.... : ,-o:co--
0 frio<- ,,...
l!il ........ ..........
. . ... , ....Q
NSAT STD I
orom e__,__il """
Edit menu
The Edit menu in Open Office Writer is shown below, with a list of the various options
available.
tiUrltaS«< 1- ~Writer - 0 X
f4rtfdit~-"""' ~ IY...... l:lolp
l ltl
i.,
:...........
-'QI,f:1t{...,;.
c;, · * · · • Cll • ;.; • 0 a li • o. Q 10 ,.,. El • • •
w~ ~~~· r-----------------------~~----~----~--~~-- ~
-~ : :. ==-- ~ "y~ ~
--
•--.. c.t--·•
.... 1'(1 : " '
_ . . . . __
.. """.!II
"""""
""'"9-1"!•1
c....
B I U · - 41
e,......,.
l.r U fl:
-----
• JE • •
.f'o6......... _ """'
~ AutolqJ- Ctrf.o.Fl
::· 1:· e-[J·
::. · ~o.oo·
.•
..- -- - - -- - - ___,......,.=!U!AI=-------'IQI STO..:.....'---'---------------~illlll£!m==....e~._. ~e """
'"-'-='"-'----- - - - - -=""=
Undo: Used to undo the last action in a document. This can also be done by using the
undo tool from the standard toolbar.
Restore: Used to redo the last action in a document. This can also be done by using the
redo tool from the standard toolbar.
Cut: Cuts the selected text and places it in the clipboard.
Copy: Copies the selected text in the clipboard.
Paste: Pastes the cut/copied text from the clipboard into the document.
Paste Special... : Pastes the formatted or unformatted text in a document.
Select All: Selects the complete document.
Find & Replace ... : Searches for a selected word and replaces the searched word with a
new word.
Launch OpenOffice Writer using the Start button of your computer. Write a letter to a friend
or relative. Try using different commands that you have learnt so far.
-e
The Format menu in r.=-.:-=---·
.. r--lli ·-
.. - . . Cbooo<too-
::: ....--...
u
:
- I I
;
U •
.·
• • •
·'
.: :: '\i
.
la. · • ·a,· a
.• . . • • • ..'lol • .'
I ~ ~ ·r--------------------------. .".
OpenOffice Writer is I /U · - 4t, ~.l ~
--
.,
.... ~-.---. ,,1
shown on the right, with a
list of the various options
available.
,__
--..
- --
:u
i.ll-X'
•=-:o·
«:ott ..,
:-JD.:C'
: r .-·
formatting related to
the character like Font,
Font Effects, Position,
font !ypeface
~imes New Roman Regular 12
~II ..!¥J3MJ.!..@!. ... ,
Trebuchet MS Italic
TwCenMT Bold
I
Tw (en MT Condensed
Tw (en MT Condensed Extra Bold
Bold Italic
Verdana
I
Viner Hand lTC
1.anguage
~~ English (USA) v :
The same font will be used on both your printer and your screen.
~-------------------Tmn~NewR~L-------------------~
OK uncel !:felp
Paragraph X
Background
Indents & Spacing Alignment Text Flow Outline & Numbering Tabs Drop Caps Borders
Indent
Jiefore text ~.oo·
..
After !ext o.oo · ..
first line o.oo ·
'----
..
O!utomatic
Spacing - -
AbQve paragraph 0.00.
,.....,
~
Below .11.aragraph o.oo ·
line spacing
Single v cf :I
Register· true
0Aftivate
. - • • • I
I
•
• • • I
. ---
• • • -----
X
"
~ }>
-- --- --- -
X
"
~ ~
~ -
--
-
-
}>
X IJ
OK Remove Cancel
Paper format
D
f ormat
'!'{rdth 8.50 . ..
'7'1
!:!eight 11.00 "
~
Orientation @ £ortrait
0 l~ndscape Paper tray I[From printer settings] -v.,
Margin s - layout settings
!,eft 0.79 " . I
Pag~ la:tout IRight and left vi
Bight 0.79 " .. Fof!!!at ,1, 2, 3, ... vi
Iop 0.79 . .. 0 Register·try~
OK Cancel !::!elp
OpenOffice Impress
OpenOffice Impress is a presentation tool used to create multimedia presentations. It
is a part of the Open Office suite. Presentations can be used by professionals in offices
or by students in schools and colleges. It is an easy way to present a topic with lots of
multimedia effects.
A presentation consists of one or more slides with different elements like text, bulleted
or numbered lists, tables, charts, clipart and a wide range of graphic objects. The
default extension of a presentation in OpenOffice Impress is .odp. Let us now learn how
to use OpenOffice Impress.
Creating a presentation
To create a presentation, click on Start ~ Openoffice.org ~ OpenOffice
Impress. It opens by showing the wizard as below, which gives three options.
9 Presentation Wizard X
Type
@ fmpty presentation
0 .Erom template
0 Previ~
0 Qo not show this wizard again
r rI
!:felp ...__ Cancel J .___<_<_~_ck
_ __. '-----"~
=ext=>~"'--_,1 L !;reate J
Selecting a presentation from the Presentation Wizard
These options are:
• Empty presentation: Creates a blank presentation.
• From template: Provides some predefined templates to choose from.
• Open existing presentation: Opens presentations which were created earlier.
!Presentation Backgrounds
<Original>
Black and White
Blue Border
Blue Lines and Gradients
' .t.•~-_£ •• .j! .. - • .
3. First, Select a slide transition and then Select the presentation type. Click
on Create to create a presentation with the settings done using this three-step
presentation wizard.
9 Presentat,on Wizard X
Dutat1on of pause
:====
1._00:_.00:_._10_ __
"' Sh.Qw logo
l·e"""""',."""""'"""""""' " X I
fH £"" ! { - """' ....... !oob I'd<"- - l:ldo
e · C! · .. liil a.o;o = ~t~
· · tA I:!l · • 019- · o . l!ii - SI - 11!-<t ..
II!J ~~ ':;. • ~ 0.00' : ~ 01 '"" vjc:::::::J I!Iu«l""'vl .. 40
D
Side X NonMI ~ Nots H1tw1out SlideSott:1r
X '
r
The OpenOffice Impress window can be divided into the following three components:
• Slides pane: This is on the left side of the window. It shows a thumbnail of all the
slides in the presentation. The slides are in the order of creation. You can drag and
change the order of the slides.
• Workspace: This is the main area where you can design your slides.
• Task pane: This displays different tasks like Properties, Slide Transition, Custom
Animation, Master Pages, Styles and Formatting, Gallery and Navigator which can
be used to design slides.
I I )
-- [Ej];;.
LJ
'
T it le
0 '---J
LJ ~
L-----------------------~~~,~~·~~~·e~~~
. w~
.· ~ '~e--==------ - - - - - ' · - . - - _ _ _ . _ , ... ,.j
Outline: This view can display only the text of the slides. It can be used to plan the text
and rearrange the content on a slide.
~U....I·~--- - - - - :_ 0 X
911 Uc ~ ..... ,..... ! .... ,....,._ ...... !:to~!~
'0
• Explain the requirements
==-=--=-- ·• Fulfilling
•~
Customer Needs
• Describe the main attributes of the product
• link the product attributes to customer needs
·• Cost Analysis
';. -5
--
:·::.--..
• Indicate the financial advantages for the customer
B · llt ·Q .... .. .:::. ;,!:! t;; '0 · · ~1!:1 - e 0.9- · 0 & ·51 · 111- *•
.......... .'
·---·~
~
e
·-- ;
.........
~
e
1' 1
• CUJtomwHobtles
• • D--..~tl>..O.....,.-.
• · t~··~...,._-
...
•J
I
...
•• 'iJ
This slide gives i.nformatioo about cus.
tc.:oero.·ishes
Sickl /7
Handout: This view creates a handout with more slides on one page. It displays the
layout with single, two, three, four, six or nine slides per page.
!l~.t~t>Otc11•(1ptft0f1.c.~ 0 X
~ [die x-- jriMrt Fgmwr looO Sick~ ~ndow ~
- X'
. . . 11 1~
A slide master is a slide that controls all information about the Theme, Layout, Background,
Color, Fonts and Positioning of all slides. The settings that we select in the Slide Master
will be applicable to all the slides created in a presentation. Go to View ===> Master ===>
Slide Master. Make the following changes in the Slide Master:
• Change the Title of the slides to font size = 50, bold, Comic San MS, Color = Purple.
• Change the font settings of the content to different bullets, colors, sizes and types.
Select Slide Transition from the Task Pane on the right side of the W.pelcfc
llie Wffi
OpenOffice Impress window. WhHI CloclaMsc,.l Spob:s
Wheel ClocltMst-.l Spota
Vw'hHIClockwtst. Ai Spotes
_.._.
"""'Clod<wo<.a,.....
From the Slide Transition window (on the right), you can select """""''"'
UncowrRigtlt
........_.
Unc~LcfHip
Custom Animation --
Uncovcr~Up
R.ndom 8MI Vtftiu,l
...............
Sound <NoSowld>
vi
------:::)
Select Custom Animation from the Task Pane available on the right side of the
OpenOffice Impress window.
Steps to apply Custom Animation
1. Select the element to which an animation is to be applied, then click on the Custom
Animation tab.
2. Click on the Add button to add animation effects (on the left below). It opens
another window with the list of effects as shown on the right below.
Effect- ~I Box
~tart
Checkerboard
~ Circle
Diagonal Squares
Prop•rty ~ Diamond
,..._,; Dissolve In
Sp~ Flash Once
<!)
[ E Fly In
I Fly in Slow
Peek In
Plus
Random Bars
Random Effects
Forst s•loctth• sl•d• •l•m•ntand
th•n click Add ... to add an Split
an,mat1on eff~ct. Venetian Blinds
Wedge
Wheel
I Wioe
~peed Fast v
~---------------
0 Automatic preview
3. Select an effect, for example, Flash Once. Select the speed of the effect as Very
fast, Fast, Very slow, Slow and Medium. Click on OK.
4. This will bring you back to the Custom Animation window. Now you can select
options for Start, such as On click, With previous or After previous depending
upon whether you wish to start the animation by clicking the object, or with the
previous effect, or after the previous effect has stopped playing.
5. Click on the Play button to see the animation effect applied.
Running a presentation
While running a presentation, the slides appear one by one on the screen showing the
transition of the slides with the animated text and graphics. This is called a Slide Show
of the presentation.
You can run a slide show in three different ways:
• By pressing the FS function key.
• By going to the Slide Show menu ===> Slide Show option.
• By using the Slide Show tool on the Toolbar.
l li:l Untitled 1 • OpenOffice Impress 0 X I
-
-Fil• f.dit -View Insert FQrmat Tools ~id•
-
Show Window Help
- X
~ · ~ ·Q ~ ~ ~ ~ SideShow FS ~ ·
. lj11!!3 • ~ e; ~ . f) .:J~~ · ~ · ~Iil ~ ~
]
Slides X ~ Slid.__c
lnteracbon ...
I
1
~ Custom Animation ... ,-Slide Show ;k toaddtiUe I"
~
Slide !ransition...
1 _., j " =
w:(
I•
Shol!!Siid•
-
-
• Jiid• Slid•
~ustom Slid• Show...
.
r ~
v
I < > ~
.1...........>
OpenOffice An open source software application which can be used on any operating
system like Windows, Linux and MacOS.
OpenOffice Impress A presentation tool used to create multimedia presentations.
OpenOffice Writer A word processor used to create, edit, format and print a document.
1. The extension of files created in OpenOffice Writer is .odt.
2. The File menu in OpenOffice Writer consists of various options for
creating a new file, saving and printing it.
2 3. The Edit menu in OpenOffice Writer includes options to Cut, Copy, Paste,
Find & Replace, etc.
4. The Format menu in OpenOffice Writer provides options like Character,
Paragraph, Bullets & Numbering and Change Case.
5. The default extension of a presentation in OpenOffice Impress is .odp.
6. OpenOffice Impress starts with Presentation Wizard, which is a three-step
procedure for creating a new presentation.
7. The window of OpenOffice Impress is divided into three parts: Slides
Pane, Workspace and Task Pane.
8. The workspace in OpenOffice Impress provides five different view tabs:
Normal, Outline, Notes, Handout and Slide Sorter.
EXERCISE
- • n uv-
-
,.'- J
flt: J
,.g~
, ....
1
o --
A. Fill in the blanks.
1. Cut and Paste are found in the ............................... menu.
2. To create and edit a document we use OpenOffice ............................... .
3. The ............................... view shows all slides in a presentation in a miniature form.
4. The ............................... option in the File menu will save the file for the first time.
5. The ............................... is used to give animation to the objects on the slides.
B. True or false?
1. The file extension of OpenOffice Impress presentation is .ods.
D
2. Slides can be easily rearranged and deleted in the Slide Sorter View.
D
3. F6 is used to run a presentation.
D
4. New slides cannot be added after a presentation is saved.
D
5. Justified alignment arranges the document on both left and right margins. CJ
6. The Page Preview option can be used to print a document. CJ
C. Match the following.
[ 1. Slide Transition a. Runs a presentation
A. Create an Open Office document on the topic 'The importance of healthy food' .
Use the internet to get some information and pictures.
B. Create a presentation on 'The Place I visited in My Summer Holidays'. Use the
internet to get some information and pictures.
Work in groups of four. All the groups need to come up with a newsletter for the school
and make a group presentation in front of the class using Open Office Applications. Each
student in the group should take up one of the below roles.
Researcher: Gathers news about various events, competitions, etc., in the school for a
period of 15 days. Use OpenOffice Writer to store the research work.
Creative writer: Puts the text together in a concise and organised way using OpenOffice
Writer.
Designer: Designs the layout of the newsletter in OpenOffice Impress.
Animator: Decides the text and graphics effects in OpenOffice Impress.
Introduction to
OpanDffica 11
r r
. . SNAP RECAP
~-
: !§;) Arial
Ell X '\. !
>I _._/'.. -.
Sheet 1 {3 De!au~ INSRT STD • Sum:O 9 0 100%
l (iJ Arial .... 10 .... B I .u E 3E :II • [!'!! ... ~ SJI ~ !.!5 ·~ -(!: 0 . ~ • A .
C5:C9
t=l=~==~~==JI~~~-=:J~J:~==J::J==JC:Jc=JC~~ G Te~
Aria I
.. A.
' G Alignment 0
~-§II· -=-=_,
I left Jndent: 0 J,'irap text
Opt
DMergecells
..., Text ~rie:ntation:
• · ··· ~< >I ~
Sheet 1 / 3 Default Sum=1S 0 e 100"
Formatting cells
The data in a cell can be formatted by using the tools found on the Formatting toolbar
or by selecting the Format menu ==> Cells option. This window has a number of tabs
to do different kinds of formatting. Here we will explore some of them.
Format Cells X
Numbers Font Font Effects Alignment Bc<den Boctground Cdl Prot<Cbon
l:;ategory F~rm&t
Number
1. To change the number formatting
by putting a currency sign in front
Ptrctnt
o... -S1,234
..
.$1,234.00
Tim< -S1,234.00
Scimtific
of amount, select the cells you fr•<t•on
-S1,234
-S1.234-00
Boolean VJ1u~ v -S1,234.- _ _ _
c..:.=:.;:__ - I 2.00 1NR
~UM!ij.~-----1-lAI NP
2. To change the font name and size
of the text, select the cells you want
jA.naiBiack
Ari,l N1rrow
Mol Roundod MT Bold
Arimo
Bold
Italic
Bokttt.ahc
[J
16
Arial, Typeface as Regular and Size The wmt font wiU be~ on both your printer 1nd your screen.
as 14.
Format Cells X
~
right) and change the Horizontal :
~
A8CO
' Reference edge
"' i \ ' lf1Joo
and Vertical alignment to align Properties
!No Fill I
OOOlJO·······--
o•••••••o•
• •oD• o
o••••••• •••o
oo••
••••••••••••
••••••••••••
••••••••••••
••••••••••••
••••••••••••
••••••••••••
o•••••••o•••
DOD o•DoDooo
DD•• DD• • • • • o "
No Fill
Renaming a worksheet
The worksheets are automatically named Sheetl, Sheet2, Sheet3, ... in OpenOffice
Calc. If you want to change the name, follow the steps given below:
1. Right-click on the Sheetl tab.
2. Select the Rename Sheet option to display the window shown below.
I ~ Untitlod 1 • OpenOffice Calc D X I
[ole fdit ~ew Insert F.2rmat !ools Jl.ata lt{lndow !::!elp X
i ffi;l Aria!
'"''
812 v h ~ =
!nsertSh~..
Qelete Sheet_ BI.u.·-~ ~ n.r
.Bonome SM&..
Move/Copy Sh~.. . A.
Select All Sheets
!abColor.••
1)( Cut 1
left !ndent OJ!troptoxt
lltll -'.opy !opt M..-g• cells
ftl faste v Text .Qrientation:
:.....,.,~""""l't~,......_, <>I I /""\ -.
Sheet 1/3 STD • Sum:O 0 0 ,100%
Writing functions
Rename Sheet dialog box
A formula is an expression that begins
with an equal to(=) sign. You can enter a formula in a cell to do calculations on data.
Sometimes you may not remember a formula or it may be a tedious job to write the
addition formula for 100 rows; in that case, you may use built-in formulae available in
OpenOffice Calc to perform calculations. These formulae are called functions.
A function can be entered either through the Function Wizard or by typing the function,
beginning with an equal to sign, with the values in a cell.
Function Wizard X
£ategory SUM
IMathematical SUM( number 1; number 2; ... )
function
ISECH
SERIESSUM
SIGN
,.. I
Returns the sum of all arguments.
SIN
SINH
SQRT
SQRTPI
SUBTOTAL
SUM IF
SUMIFS Formula Result IErr.520
SUMSQ
TAN =
TANH
I I
TRUNC
'--
O~rray
L tlelp l r Cancel l L___<_<_~_
ac_k~ [ Nat» ~ ~~ _
__ _ _! J
Function Wizard dialog box in OpenOffice Calc
X '1.
v
8-
J il'§!l.
Opt
>I ~· ~· . _,
ID ~ ~- ..
Sheet Z/) STl> . e- - -e ,.. ,.
""""'
Creating a worksheet fo r result analysis
ll • ~ ~ . Iii 0.0 1:,) ~ [9. ~ = )( ' It; • (/ '9 • . • l' !' [6 lJ . . 0 a lj (\. ~ • ! Fmd Tat :
,....., ~
9-_
SNo Name Morlcs 2 MorlcsJ Tc<ol B I l! .... ~ lltO:
!Alex 76 67 88 231 ....
2 ,!m
lE&gfj)
89
88
78
98 ~c:::::::l A·
4Maty 88 76 88 ~
0
5.s!sio)lj 98 ~ 89
~~~ tx
6~
7XJ.w!t
~
88
67
78
96
92 .....~~-~~·
Ol!l""""
Opt
!dfl'if: C:iltll
U<
'
H •• H\ Shttt1\.S*'.21Shfttl /
~ / liii8 -.! T ~ • -e -.. · a · li · • ·
>I
-- v
;1
' Arial Y 10 Y IE ,.; ,_ •
--"'----
~ e-=:-
GS:Ci11
ANII ..,
c: 1
v r-'\ Od~
" ••\ St.eet1fShHtlljlJ < •I \I
~ / WI- ~TIC< + · 0 - ~ · ll:l · ii! · • ·
ShHt 1/) STD • s..n.1nz '0 · G> 100Y.
4. Next, insert the percentage column and write the formula for percentage
=(GS/300)*100 in cell H5. Repeat the process of copy and paste to copy the formula
from cell H5 to H11.
~ Unlitled 1 • Opoo<lfficc Calc - 0 X
filot(dot- !nscrtf<l<matioolsQat•-~ )(
~ - t! ·Q~ IDH:!ai9o ~= )( ltlltl -4 CD · - • ~' !& I*'-' • 0 a Iii ~ G " i ~... r... <&o •
iJ ..,.. y 10 v B I U • lE • • .A "\!'~ :!!@@ o · rll ·A· ..
Hll )( ..
•
a ~
~ 10 v
86
II!.JI.
S .u,n.-t
left-
~~~
:::1
01!£r>p1...
Opt M~N.ItCt
• • • " n;;;;tj\Sheet2 l She<tlf u< •I - ...
; ~ / s:oJ e .t T ~ + ·• · • · Cl • j j · * · ID ~__o.
STD • SumooO 0--.---0 100"
5. Format the number up to 2 decimal places, either by selecting Format => Cells
=> Numbers => Category: Number.
G
By selecting the Number Format: Delete Decimal Place tool found on the
Toolbar.
6. Now insert the Grade column and write the formula =IF(H5 > 40;"PASS";"FAIL") in
cell IS to display PASS or FAIL on the basis of the percentage calculated.
7. After all the calculations are done, the spreadsheet will appear as shown below.
Cl X
Charts
Charts are graphical representations of data in a spreadsheet. You can create a chart of
existing data in OpenOffice Calc by using the Chart tool lib found on the toolbar or
by selecting the Insert menu ===:> Chart option.
It will display the Chart Wizard. In order to create a complete chart, you need to follow
the four steps to select the criteria shown below.
x' """- X
-
Slmt a.-.......
1.01M\TJIPI: Doto-
~ ... SShfttt.S&S.UZS11 :a:
~ p;,
~a- l C..Sono< oo...--·ro-s
1~ :;'($<_,
~ llubWt .I
'-"""- @)c.t. ..... s.......
- ""' I
Oll>loot ~ 86nlro..•llbll
::!1 ""
·· ..........
~;a c
9>...
o .... - .. -
ll«t••
Chart Type
X
Data Range
-
X
+f*'l a
- - - <<loq
- c-.1 ]
(' )
~
Save the file you created in the previous activity by selecting File c=:> Save As : fCI• ~
c=:> tick the checkbox Save with password. Set password to open file c=:> OK.
.. _ cot
Now close the file and try to open it. What will happen?
Find out if you can save a file with permission to open and view but cannot modify the
content.
OpenOffice Base
Open Office Base is a powerful application software used for storing and maintaining
data in the form of rows and columns. The data stored can be retrieved in the format of
reports or queries.
A database is created in OpenOffice Base with the extension .odb.
'ftrummm Use the Data bas. Wrzard to create a ni!W database, open an existing databas. f~e,
or connect to a databas. stored on a seiVer.
2. Save and proceed
I I I
1
<? OJ!en.
1. Select database
Do you want the wizard to register the database in Open Office?
. Save and proceed
@Yes, register the database for me
0 N.Q.. do not register the database
After the database file has been saved, what do yo u want to do?
0 Open !he database for editing
0 £reate tables using the table wizard
,
~ J::!elp « Bac.!; finish I[ Cancel
- 1' > ThisPC > edupub(\\ 192.168.22.71) (Z:) > ClickStort v ~ Search Cick Start p
% Fileshores ():)
2 HI.RES (\\192.1E
% edupub (\\192.1
r;; Networic
... <
m· C! · "' · e ,
..
S tt-TIII6t"'Oott9'"--
!$~'Mutlt'OC..Ul.tlle.
._ .......
e ro •
r!-
f-
r-
f-
r-
t-
I-
I-
I-
I-
I-
t- +
<
.-----J
6. Let us now design a Student table (see below). In the Field Name type Admission
Number and Field Type will display the list of different data types with Text
[VARCHAR] as default in the drop-down list. Select Text [VARCHAR]. Select
Description to write a few lines to describe the column created. The description of
a column is optional.
9 Nr~r o~ta~lo.ocrb; ~, ·OpenOtfiCI!' Base: table~ - 0 X
': Q ~ 'i ..
r-
f-
r-
r-
t--
f-
r-
r-
t--
f-
r- ~
1. .
L"'9"' 50
·= - - -- - - ~ r~ J
'--- - - - - -
--
E• fdit ~-- loots !fn*M
-
tidp
Q ,;;) )( ~ liD ..
FCidTYP<
.
r"
r !'"'_._.
;-
l!d«•
~ ~~.y
-
1-
r-
r-
1-
1-
r-
.
r-
(
fooy-
L'"9'h
!!d.........
j...
50
~
:
El -- .
)
.
I
................
·~ I r . .
Selecting Admission Number as primary key
8. Select the option Primary Key from the menu to make Admission Number the
primary key. A small key appears infront of the Admission Number column to
show that this has been selected to save unique values in the table.
< >
Field Properties
J.ength 50
Qefault value
Format example
< >
INo
10. Close this file by selecting File ~ Close to display the window shown below.
Repeat the above process to make one more table titled Library. The structure
of the table can be modified by adding a new column anywhere in the structure,
deleting any column and changing the existing column in the Table Design View.
I a - . OponOffi<o- 0 X
5I< £<fft :{.... (Mort !ools - Jjtlp X
1:3 trut••-w.o.s.gnv...,_
~ [S !!<o WOMd to c..... T--
~ " Crut~t V"trW-
.......
~··*=H=·~--------~----------~----------__J
lfi{i) .. ti} • ~ ~~ il ~
Arshio
__j
Record of 2
When designing the table structure, do not select a column as primary key.
Save the table. Enter the records. What did you notice? Give reasons
for this.
Create a table titled Teacher with the columns Teacher code, Name, Subject, Classes taught
by, etc., using the Use Wizard to Create Table option. What steps did you follow to create
the structure and records in the table?
To open a new OpenOffice file
To open an existing OpenOffice file
AVERAGE() The function that calculates the average of the values given as parameters in
the function.
Column The arrangement of related data vertically in a table to form a field.
Data The smallest piece of information in a table.
Database A collection of many relevant tables together will form a database.
IF()The function that evaluates the condition given as the first parameter. If the condition is
true, then the second parameter will be evaluated, otherwise the third parameter will be
evaluated.
MAX() The function that returns the highest value from the list of the values given as
parameters in the function.
MIN() The function that returns the lowest value from the list of the values given as
parameters in the function.
OpenOffice Base A powerful software application used for storing and maintaining the data
in the form of rows and columns.
Open Office Calc Part of the OpenOffice suite used as a spreadsheet tool.
~ SUM() The function that adds up the values given as parameters in the function.
(~
--~-~~ ~---
YOUARE 1. A file in OpenOffice Calc is referred to as a workbook with the default
HERE name Untitled 1.
2. A spreadsheet is created in OpenOffice Calc with the extension .ods.
3 3. In a spreadsheet, you can generate a series of number or text values by
using the AutoFill handle.
4. A function can be entered either through the Function Wizard or by typing the function
beginning with an equals sign with the values in a cell.
5. Charts are graphical representation of data in a spreadsheet. You can create a chart of the
existing data by using the Chart tool.
6. A database is created in OpenOffice Base with the extension .odb.
7. Open Office Base is a relational database management system.
i
l;fJ .
,~\._/
EXERC SE s-~
-· UY i~<
Q-·
A. Fill in the blanks.
1. The ....................... object of the database displays the formatted data from the table.
2. Rows in a database are also called ....................... and co lumns are also called
2. Tuple b. Forms
5. Sum() l e. .odb
c. True or false?
1. After a table structure is created, it cannot be modified later.
D
2. Text in a spreadsheet is by default left-aligned.
D
3. A cell can have any type of value in a spreadsheet.
D
4. We can do a calculation on a text value.
D
5. We cannot delete a record in a table created in OpenOffice Base.
D
D. Answer the following questions.
1. Explain the difference between a formula and function, with an example.
2. Explain the Autofill feature, with an example.
3. Explain the different elements of a database, with an example.
4. What is a primary key? What is the advantage of creating a primary key in a table?
5. Give brief reasons for creating a database.
A. Create a table in a spreadsheet (at least 10 records) with the following columns-
Employee Code, Employee Name, Basic Salary, 20% Inflation Allowance, 30%
Housing Rent Allowance, 20% Tax Deducted, Gross Salary (Basic+ Allowance),
Net Salary (Gross-deductions).
B. Use at least three different charts to represent the above data in a graphical form.
Format the charts created using different colors Try swapping the rows and
columns of the tables on the x and y axes of the graph to see the difference in the
appearance.
Create a database for the smooth running of a shop. Include tables like stock details, items
details sold in a day, details of employees, salary calculation employees, and any other tables
you can think of. Design the structure of each table and add at least five records in each.
Frames in
HTML
1. What are HTML tags and attributes? You will learn about:
2. How do you execute (run) a HTML script? • creating frames in HTML
3. How can you create lists and tables on a • <FRAMESET> Tag
web page? • <FRAME> Tag
Introduction
In this chapter, you will learn to open multiple HTML documents in a browser window.
This is done by dividing the window into different blocks and then opening a different
web page in each block.
Frames
Frames allow you
to divide the web
page into several
independent parts or
panes. Each of these
is called a frame.
For example, the web
page shown on the
right has three frames
marked on it.
Before you try the following examples, make sure you have four separate
HTML files, named Frame l.HTML, Frame 2.HTML, Frame 3.HTML and
Frame 4.HTML already created.
These can be any other HTML files that you want to use as frames. Specify
their complete path in the src attribute.
Example 1: The HTML code for creating frames in the form of two rows is given
below.
<HTML>
<FRAMESET rows="35%,*" border="2"> Frame 1
<FRAME src="Frame1.HTML" name="Frame 1">
Frame 2
<FRAME src="Frame2.HTML" name="Frame 2">
</FRAMESET>
</HTML>
Example 2: The HTML code for creating frames in the form of two columns is given
below.
<HTML>
<FRAMESET cols="S0%,50%" border="l">
<FRAME src="Framel.HTML" name="Frame 1"> Frame 2 Frame 2
<FRAME src="Frame2.HTML'' name="Frame 2">
</FRAMESET>
</HTML>
Example 3: The HTML code for creating frames in the form of both rows and columns
is given below.
<HTML>
<FRAMESET rows="45%, *" cols="*, 50%" frameborder="yes" border="?">
<FRAME src="Framel.HTML'' Name="Fl" scrolling= No>
<FRAME src="Frame2.HTML" Name="F2" scrolling= No> Fl F2
<FRAME src="Frame3.HTML" Name="F3" scrolling= No>
<FRAME src="Frame4.HTML" Name="F4" scrolling= No> F3 F4
</FRAMESET>
</HTML>
_j
If the source file mentioned with the src attribute is not available, then a
message would be displayed 'Files Not Found'.
~
.....~ w t....
Try following the HTML codes using frames of your choice.
1. <HTML> 2. <HTML> ,
& - ~
<FRAMESET rows="SO%, 50%"> <FRAMESET rows="SO%, 50%">
<FRAME noresize="noresize" > <FRAME>
</FRAMESET> </FRAMESET>
</HTML> </HTML>
Nested frameset
Creating one frame within another frame is known as a nested frame set. This is done
by using the nested frameset tags in the main window. One of the most popular uses
for frames is nesting the frameset tags to design a complete website with the homepage
on the left frame and the content, selected from the list in the homepage, on the right
frame. An example is shown below of how to create a complete web page.
Example 4: The HTML code for creating three frames in the form of both rows and
columns is given below.
A File B File
D Bottom File
<HTML>
<FRAMESET rows= .. SOo/o,SOo/o cols= .. S0%,50%.. border= .. ? .. bordercolor= .. Biue .. >
</FRAMESET>
</FRAMESET>
</FRAMESET>
</HTML>
<HTML>
<BODY>
</BODY>
</HTML>
<HTML>
<BODY>
</BODY>
</HTML>
Creating document AC.HTML
<!This file opens in the bottom left frame.>
<HTML>
<BODY>
<CENTER><FONT color="blue"><H 1>C File</H 1></CENTER></FONT>
</BODY>
</HTML>
c
1. A A 2.
D B
A B c
3. 4.
D E B D
E
B. Create a web page titled 'Book Review'. The page should be divided as shown below.
Frames They allow us to divide the web page into several independent parts.
<FRAME> tag The tag that defines what goes into each frame of a HTML.
Frameset A set of frames inserted in a HTML web page.
<FRAMESET> tag The tag that divides the web page into rectangular areas, where an
individual HTML document can be loaded for each area using the
<FRAME> tag.
Nested frameset Creating one frame within another frame.
1. Attributes of a <FRAMESET> tag are Cols, Rows, Border, Bordercolor
and Frameborder.
2. Attributes of a <FRAME> tag are Src, Name, Frameborder, Bordercolor,
4 Scrolling, Marginheight and Marginwidth.
A. True or false?
1. Frames allow you to divide the web page into several independent
panes.
D
2. You need the <FRAME> and <TABLE> tags to create frames in HTML.
D
3. An important attribute of the <FRAME> tag is src.
D
4. Creating one frame within another frame is called a nested frame.
D
5. Scrolling in the <FRAME> tag specifies scroll information for the frame.
D
B. Give one word for the following.
1. The attribute that specifies the URL of the initial file to be displayed in
the frame. ....................... .
2. The attribute that specifies the color of the border of the frame.
5. The tag that defines what goes into each frame of a HTML
webpage.
C. Explain the difference between the following tag attributes:
1. Cols and Rows of the <FRAMESET> tag.
2. Border and Bordercolor of the <FRAMESET> tag.
3. Src and Name of the <FRAME> tag.
4. Margin height and marginwidth of the <FRAME> tag.
A. Create a website on the topic 'Football World Cup 2018'. The browser window
should be divided into three frames: heading frame; list of matches as hyperlink
in the left frame; the list of participating countries in the right frame. The
information should be displayed only when a hyperlink is selected.
B. Design a website about the importance of hygiene.
Create a web page about electric cars. It should contain information using bullets, tables,
images and backgrounds. The web page should contain frames. Use the internet to gather
information.
Jauasc:ript in
HTML
I
Documents
. SNAP RECAP
J avaScript provides web page authors with the power to reach a very high level of
interaction between the user and the document.
[JavaScript statements]
</SCRIPT>
The <SCRIPT> tag may be placed in either the head or body of a HTML document.
The script code can be broken into smaller parts and placed in different sections of the
HTML document. To have different script sections, start each with the <SCRIPT> tag
and close it with the closing tag </SCRIPT>. However, it is recommended to keep all
the JavaScript code together in one single section of the document. This is done for
better readability and understanding.
<HTML> <BODY>
<HEAD> <SCRIPT language="JavaScript">
<language="JavaScript">
</SCRIPT>
</SCRIPT> </BODY>
</HEAD> </HTML>
src="scriptFile.js">
[additional JavaScript statements]
</SCRIPT>
and are identified by an .,._ "
icon ~. These files contain just
the code, and no <SCRIPT> tag is
;
j
required.
The Object Model in JavaScript
Like most other programming languages of its generation, J avaScript is characterised
by the Object Model. This means that you think about your JavaScript program in
terms of the objects you want to work with. For programming purposes, the browser
window, the HTML document, forms, etc., are the objects which in tum are formed of
other objects such as Text Boxes and Radio buttons.
You can access information about the objects with the help of methods. Methods are
functions associated with objects. In other words, the actions you can perform on or
with objects are called methods. Here, you will learn to use simple objects and methods
to write programs in JavaScript.
For any object that has a method, type the name of the object, followed by a dot (.),
then the name of the method and a set of parenthesis. In other words, object.method().
For example, if you have an object named Car and you want to define a method, say
Travel, you would type:
Car.Travel()
Let us study some simple codes for J avaScript.
document.write() method
The document. write() method is used for displaying the text on the browser window. It
uses an object called 'document', which refers to the current document on the browser
window.
This object manages many of the instructions that JavaScript can handle for HTML.
One of the methods, write(), of this object is to display a string or text on the screen.
For example, document. write("Welcome to J avaScript")
This will display the message "Hello friends!" on the browser window.
</HEAD> </SCRIPT>
<BODY> </BODY>
</HTML>
IIIII - 0 X
+-~·- ft*(l
-~ ----
Welcome to Ja\"aScript
Displaying text
If you do not wish to use a part of a code, you should make that part a
comment rather than deleting it. It is then not executed but can be read
and used when needed.
<BODY>
<SCRIPT language="JavaScript">
document.write("<H1 >This is a heading</H1 >");
document.write("<P>This is a paragraph.</P>");
</SCRIPT>
</BODY>
</HTML>
nus IS a paragraph.
nus IS another paragraph.
The script for the output as shown in the screen on the next page is given below:
<HTML>
<HEAD>
<SCRIPT language="JavaScript">
</SCRIPT>
</HEAD>
<BODY>
<SCRIPT language="JavaScript">
</SCRIPT>
</HTML>
JavaScript variables
Variables are the names assigned to a memory location that can be used for storing
data. Its value can change during the execution of a script. A variable can have a short
name, like x, or a more descriptive name, like Fname. These variables, by default, hold
only one value at a time. If you try to assign another value then the previous one is
overwritten.
The rules below should be followed when assigning a name to a variable:
• A variable name is case sensitive (y andY are two different variables).
• It can contain letters (A... Z, a ... z), digits (0 ... 9), and underscores(_) only.
• It must start with a letter or an underscore character.
• It cannot contain empty space (white space).
• It cannot have more than 255 characters.
• It cannot be one of the language's reserved words (keyword), such as var, alert, etc.
Let us write a small program to see how variables are used. The output of this program
is shown below.
<HTML>
<BODY>
<SCRIPT language= "JavaScript">
var fname="Daniel"
document.write("Hello" + fname + "<BR> Welcome to Lab");
</SCRIPT>
</BODY>
</HTML>
Hello Daniel
Welc~toLab
Arithmetic operators
Arithmetic operators are used to perform arithmetic calculations using variables or
constants. Different types of arithmetic operators are given in the table below.
+ Addition 2+4 6
Subtraction 6- 2 4
* Multiplication 5*3 15
I Division 15 I 3 5
% Modulus 10%3 1
The HTML code using arithmetic operators to give the output as shown in the screen
on the next page is given below:
<HTML>
<BODY>
<SCRIPT language="JavaScript">
var a=2
var b=1 0
document.write("The addition of two numbers is=");
var result= a+ b
document.write(result);
document.write("<BR> The multiplication of two numbers is=");
result= a* b
document.write(result);
</SCRIPT>
</BODY>
</HTML>
Comparison operators
Comparison operators are used to test if two variables relate to each other in the
specified way. These return values which are either True or False.
Comparison operators
Logical operators
The logical operators perform logical operations on variables.
x=2
&& and y=3
(x < 10 && y > 1) returns True
x= 12
II or y=3
(x==5 II y==5) returns False
x= 12
not y=3
!(x==y) returns True
Logical operators
String operators
A string is a set of characters. To join two or more string values together, you use the
plus '+' operator. This is also known as the string concatenation operator.
For example, a HTML code using the string concatenation operator for the output in
the screen on the next page is given below:
<HTML>
<HEAD>
<BODY>
<SCRIPT language= "JavaScript">
var str1,str2
str1 ="Hello"
str2="Friends"
document.write(str1 +str2+" </Br>");
/Ito add a space in between
document.write(str1 +II II +str2);
</SCRIPT>
</BODY>
</HEAD>
</HTML>
- [J X
f--f. _ h * l l
~~---------- ~-- -
HelloFriends
Hello Friends
alert (message)
It is not necessary to specify the window object, you can leave it out of
the code.
For example, the HTML code using the window.alert () method for the output shown in
the screen below is as follows:
<HTML>
<HEAD>
<TITLE>Using window.alert(}</TITLE>
</HEAD>
<BODY>
<H2>alert window demo</H2>
<SCRIPT language="JavaScript">
alert(" Hi! \n JavaScript is very interesting")
</SCRIPT>
</BODY>
</HTML>
Hi!
Ll_ Java Script is very interesting
OK
In the above code \nor newline is used instead of the <BR> HTML tag.
HTML tags are not supported with the object window because it opens as a
separate pop up window, not as a separate web page.
window.confirm() method
The confirm dialog box is also a method of the window object. The conf1Tll1 box
includes both OK and Cancel buttons. This method returns the value True if OK is
pressed and False if Cancel is pressed. Confirm boxes are different from alert boxes
because they evaluate a value, based on a decision made by the user.
The syntax for the confirm box is:
window.confirm(message)
confirm(message)
For example, the HTML code using the window.confmn() method for the output shown
in the screen below is shown here:
<HTML>
<BODY>
<SCRIPT language="JavaScript">
var reply= confirm("You must always follow the traffic rules")
document.write(reply);
</SCRIPT>
</BODY>
</HTML>
OK jj Cancel
In the above example, the value returned when OK is clicked is True, but whereas
when Cancel is clicked the value, is False.
window.prompt() method
The prompt dialog box is another method of the window object. This method is used
for obtaining input from the user. It displays an Explorer User Prompt dialog box
with a message and an input field.
It is similar to the confirm box, except that it returns the value of the input field, rather
than True or False.
The syntax for the prompt box is:
window.prompt (message, default value)
+--> ~ ~ 1'1*0
<BODY>
~·
<SCRIPT language="JavaScript">
var name1 ~I
name1 =prompt(" Enter your
friend's name","abc")
+- -> ~~1'1*0
did you read today? ~ ~~
HdloM.Jck\'1
</ FONT><BR> "); \Vbicb book dad you read tod.sy~
</ SCRIPT>
</ BODY>
Output to the program
</ HTML>
If you click on the Cancel Button for the prompt box, the value returned will
be null.
n l
"'.., ·c; t: ) .,.
~
.----------------------------------------
.;
A. Input a name, class and section from the user. Display the message "Hi, <name>.
<BR> you study in class <class> section <section>." Choose colors of your choice.
B. Accept the radius of a circle and display the area and circumference in an alert box.
Explor~r User
1~
The total is 30
The parseFloat() method works in a similar way to parselnt(). It starts looking at each
character string in position 0 and continues until it finds the first invalid character.
The decimal point is a valid character the first time it appears. If there are two decimal
points, the second is considered as invalid and the parseFloat() method converts the
string until the first decimal point.
For example,
var a= parseFioat("32.45.98") I /returns 32.45
var b= parseFioat("14square") I /returns 14.0
var c = parseFioat("32.76") I /returns 32.76
var d = parseFioat("0789") I /returns 789
var e = parseFioat('Vijay") //returns NaN
Try the above HTML code using the parselnt() method instead.
document. write() method Used for displaying the text on the browser window.
parseFloat() Converts the input into a numeric value.
parselnt() Converts a text value into an integer value.
Script block The section between the opening <SCRIPT> tag and the closing
<!SCRIPT> tag.
window.alert() method Displays a short message to the user in a small window.
window.confirm() method Returns true if OK is pressed and false if Cancel is pressed.
window.prompt() method Used for getting input from the user.
String concatenation The operation of joining character strings end-to-end.
~
(~
~~-!--~~-------------------------------------------------
1
I 1. JavaScript is a scripting language with a very simple syntax. It is used to
add interactivity to a web page.
2. The <SCRIPT> tag may be placed either at the head or body of a HTML
5 document. The script code can be broken into smaller parts and placed in
different sections of the HTML document.
3. If you want to run the same JavaScript on several pages, without having
to write the same script on every page, you can write a JavaScript in an
external file with .is extension.
4. JavaScript is characterised by the object model. This means that you think about your
JavaScript program in terms of the objects (the things you want to work with).
5. HTML tags can also be included in the JavaScript code to generate HTML elements
that will be displayed in the browser window.
6. Comments can be added to make the code more readable.
7. You can declare a variable in JavaScript by using var.
8. A string is a set of characters. To join two or more string values together you use the +
operator. This is also known as the string concatenation operator.
9. The confirm dialog box is another method of the window object. This method returns a
True, if OK is pressed, and False if Cancel is pressed.
10. The prompt dialog box is also a method of the window object. This method is used for
getting input from the user. It displays a prompt dialog box with a message and an input
field.
_)
A. True or false?
1. JavaScript is a very complex scripting language.
D
2. The actions you can perform on or with objects are called methods.
D
3. A program can have more than one <SCRIPT> ... </SCRIPT> tags.
D
4. Single line comments end with a double-slash (II ).
D
5. JavaScript helps to add interactive elements to HTML pages.
D
B. Give JavaScript statements to perform the following tasks.
1. Concatenating (joining) two strings: "Click" and "Start':
2. Using single line and multiple line comments.
3. Declaring four variables: length, breadth, height and volume.
4. Display a confirm dialog box with the message "Plant more trees':
C. Describe the use of the following methods in JavaScript.
1. document.write() 2. window.prompt()
3. window.alert() 4. window.confirm()
5. parselnt() 6. parseFioat()
A. Write a JavaScript program to input marks of all your subjects and then calculate
the average.
B. Write a JavaScript program to take user inputs of sides of a rectangle and
calculate its area.
C. Input the first name and last name from the user and display a message ''The
name you entered is <first name><last name>".
D. Input your school name and display it in red and in a bigger font size.
A. Write a JavaScript program which takes a random integer between 1 to 10, and the
user is then prompted to input a guess number. If the user input matches the random
number, the program will display a message "Good Work" or otherwise display a
message "Not matched".
B. Write a JavaScript program to convert temperatures to and from Celsius and Fahrenheit.