Vous êtes sur la page 1sur 54

LAB MANUAL

COMPUTER FUNDAMENTAL
EE-102
TEACHER: Engr.Muhammad
Zulfiqar ALi
PROGRAM: B.SC.Electrical
ENGINEERING
NAME:____________________________________
ROLL #:___________________________________
SEMESTER:________________________________
SESSION:___________________________________

Department of Electrical
Engineering
University College of Engineering &
Technology

Bahauddin Zakariya University Multan

CONTENTS

EXPERIME
NT NO.

LIST OF
EXPERIMENTS

Identifying external ports and


interfacing

Identifying PC cards and interfacing.

Identifying ports on the cards and


interfacing
Preventive maintenance of a PC

4
5

Installation of Windows
Operating System

Installation of Computer Drivers

Command Prompt
Commands

8
9
10
11
12

Introduction to Microsoft Word


Introduction to Microsoft PowerPoint
Introduction in to Microsoft Excel
Introduction to C++ Programming
C++ Programming: Basic
Input/output

Experiment: 1

Identifying external ports and interfacing


Objective:
To learn about different ports and how to connect devices to them. This diagram
shows different ports available on the back panel of the PC.

Parallel port

(LPT parallel port):

___________________________________________________
___________________________________________________
___________________________________________________
___________________________________________________
___________________________________________________
Serial port:

___________________________________________________
___________________________________________________
___________________________________________________
___________________________________________________
VGA Port:

___________________________________________________
___________________________________________________
___________________________________________________
PS/2 Port:

___________________________________________________
___________________________________________________
___________________________________________________
USB Port:

___________________________________________________
___________________________________________________
___________________________________________________
___________________________________________________

Ethernet Port:
_________________________________________________
_________________________________________________
_________________________________________________
Game Port:

_________________________________________________
_________________________________________________
_________________________________________________

MARKS: _______________
Teachers
Sign:___________

Experiment: 2

Identifying PC cards and interfacing.


Objective:
To identify different PC cards and to learn how to install them.

Sound card:

_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________

Video

card:

___________________________________________________
___________________________________________________

___________________________________________________
___________________________________________________

Network card:

______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________

Procedure to install a sound card:

In this example we are going to install a sound card.


NOTE: It is best not to install all your PCI hardware if you are building from
scratch. Only install your video card and sound card right now. Once you have
your operating system installed, turn off the computer and install the other
components. This saves you from possible problems when loading up for the
first time.

1. Remove any unnecessary temporary metal plates.


_________________________________________________
_________________________________________________
_________________________________________________

2. Write about PCI Slots and identify it on Motherboard.


_________________________________________________
_________________________________________________

3. Line up component with PCI slot and install:


_________________________________________________
_________________________________________________
_________________________________________________

4. Insert screw:
_________________________________________________
_________________________________________________

5. Give it CD Sound:
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________

6. Repeat for any other components:


_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________

MARKS:
_______________
Teachers Sign:___________

Experiment: 3
Identifying ports on the cards and
interfacing
Objective:
To identify ports on the PC cards.

PROCEDURE:
Write about ports of the card.

_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
________________________________________________

Identify The Cards:

________________________________________

___________________________________

MARKS: _______________
Teachers Sign:___________

Experiment: 4
Preventive maintenance of a PC
Objective:
To learn how to maintain a PC so that it gives longer service without any problems.

PROCEDURE
1) System backups:

_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
2) System cleaning:

_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
3) Cleaning motherboards:

_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
________________________________________________
4) Hard Disk Maintenance:
De-fragmenting files:

_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_____________________________________________
MARKS: _______________
Teachers Sign:___________

Experiment: 5
Installation of Windows Operating System
Objectives:
Learn partitioning different computer drives and installing windows as an
operating system.

Equipment Required
Computer System
Windows XP CD (product key must be available)

Procedure:
To perform a clean installation of Windows XP, follow these steps:
1. Back up all important information before you perform a clean installation of
Windows XP. Save the backup to an external location, such as a CD or external
hard disk.
2. Start your computer from the Windows XP CD. To do this, insert the Windows
XP CD into your CD drive or DVD drive, and then restart your computer.
Note To boot from your Windows XP CD, the BIOS settings on your computer
must be configured to do this.

3. When you see the "Press any key to boot from CD" message, press any key to
start the computer from the Windows XP CD.
4. At the Welcome to Setup screen, press ENTER to start Windows XP Setup.
5. Read the Microsoft Software License Terms, and then press F8.
6. Follow the instructions on the screen to select and format a partition where you
want to install Windows XP. Set the size of partition according to requirement in
MB. You can create a number of partitions of different size.
7. Follow the instructions on the screen to complete the Windows XP Setup.

Experiment: 6
Installation of Computer Drivers
Objectives:
To be able to install different drivers on a system.

Theory:
Almost all computer and hardware manufacturers include a group of drivers for
different hardware devices and often for each of the supported versions of
Windows. For example, the driver CD you receive with your printer likely contains
the drivers for dozens of different printers. Not just the printer you purchased,
which means when installing the drivers make sure you're installing the drivers for
your printer, not another printer model and that you're installing it for the version of
Windows you're running on your computer. Often computer manufacturers and
hardware manufacturers will also simply place the drivers on the CD, diskette, or
download for Windows to find and use during its hardware detection.

Equipment Required:
Computer systems
Drivers

Procedure:

_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________
_________________________________________________

MARKS: _______________
Teachers Sign:__________

Experiment: 7
Command Prompt Commands
Objectives:
To become familiar with the different commands in command prompt.

Theory:
Back in the heyday of text-based operating systems like Unix and DOS, the
command prompt was the operating system, and not knowing how to use it meant
that you could not really use your system without someone experienced in
computing holding your hand. This was the era of computing clubs, when getting to
grips with your computer required some serious devotion and learning.
The command prompt, a purely text-driven interface, is still present at the core of
Windows XP, and it contains many options that are not otherwise accessible without
third-party software, but which most 'experts' could not live without. The mighty
PING command being one simple example. The road to becoming truly familiar
with your windows XP system (and saving on service calls) involves learning many
of these commands, which in turn requires at least a passing familiarity with using
and navigating the command prompt.

Equipment Required:
Computer systems

Procedure:
1. Click on start
2. Click on programs.
3. Click on accessories.
4. Click on command prompt
5. Type and practice different commands in command prompt.
Some commands are:
attrib
cd or chdir
cls
copy
copy device
del or erase
deltree
dir
echo
find
format
InterLnk
InterSvr
label
md or mkdir
more
move
msd
pcpark
rd or rmdir
rem
ren
sort
time and date
tree
truename
type
undelete
ver
xcopy

MARKS: _______________
Teachers Sign:__________

EXPERIMENT: 8
INTRODUCTION TO MICROSOFT WORD
Objectives :
To learn to create professional looking documents.

Theory :
Microsoft Word is Microsoft's flagship word processing software.
It was first released in 1983 under the name Multi-Tool Word for
Xenix systems. It is a component of the Microsoft Office system;
however, it is also sold as a standalone product and included in
Microsoft Works Suite. Beginning with the 2003 version, the
branding was revised to emphasize Word's identity as a
component within the Office suite; Microsoft began calling it
Microsoft Office Word instead of merely Microsoft Word. The
latest releases are Word 2007 for Windows and Word 2008for Mac
OS X.

Equipment Required :
Computer Systems.
Microsoft office installed into the system.

Procedure :
Starting Microsoft Word

Two

Ways

1.
on the
Word
desktop

Double click
Microsoft
icon on the

2. Click
Programs --> Microsoft Word

on Start -->

Viewing

the Tool Bars :

The toolbars in
Microsoft Word provide easy access and
functionality to the
user.
There are many
shortcuts that can be taken by using the toolbar.
First, make sure that the proper toolbars are visible on the screen.
1. Click View
2. Select Toolbars

3. Select Standard, Formatting, and Drawing


4. Other toolbars can be selected if you wish

Formatting Text:

1. Highlight the text that you want to format by dragging your mouse over while
holding down the left mouse button.
2. Change the text to your desire.

Label Above Figure:


1) _____________________________
2) ______________________________
3) ______________________________
4) _______________________________
5) ________________________________
6)________________________________
7) ________________________________

Inserting a Table :

1. Click where you want your table to go


2. Click Table at top of screen
3. Select Insert
4. Select Table
5. Give your table dimensions

Inserting a Picture:

1. Click where you want your picture to go


2. Click Insert at top of screen
3. Select Picture
4. Select Clip Art or From File
5. Select picture and click Insert

Inserting Page number, Date/Time and/or


Symbol:
1. Click Insert at top of screen
2. Select Page Numbers, Date & Time and/or Symbol

Write steps for Inserting Header and


Footer:
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________

WRITE STEPS FOR Spell Checking your


Document:
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________

HOW TO Create bullets:

______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________

Steps for cutting document using


keyboard:
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________

How to bolt and underline text:

______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________

MARKS: _______________
Teachers Sign:__________

EXPERIMENT: 9
Introduction into Microsoft PowerPoint
Objectives:
To learn to create professional looking presentations and slide shows.

Theory:
PowerPoint allows you to construct presentations from scratch or
by using the easy to use wizard. Microsoft PowerPoint is a
proprietary presentation program developed by Microsoft. It is part
of the Microsoft Office system, and runs on Microsoft Windows and
the Mac OS computer operating systems. The Windows version
can run in Linux operating system, under the Wine compatibility
layer.

Equipment Required:
Computer systems.
Microsoft office installed into the system.

Procedure:
Starting Microsoft PowerPoint
Two Ways
1. Double click on the Microsoft PowerPoint icon on the desktop.
2. Click on Start -->

Programs --> Microsoft PowerPoint


g and Opening a Presentation:

Creatin

After you open up Microsoft PowerPoint, you can either create a New Presentation
or Open an Existing Presentation.

Design Template

Creates a new presentation based on one of the PowerPoint design templates


supplied by Microsoft. Use what is already supplied by Microsoft PowerPoint and
change the information to your own.

Blank Presentation

Creates a new, blank presentation using the default settings for text and colors.

Opening an Existing Presentation


To open an existing presentation, select the File menu > Open; then select the name
of the file you wish to open. Alternatively, choosing the Open button from the
menu will also open the selected file.

Create a Blank Presentation

When you launch PowerPoint 2003, it automatically creates a new blank


presentation with a title slide for you. You can begin creating your presentation or
click New Presentation in the Task Pane to select a slide layout for your slide.
If you wish to create a new presentation once you are in PowerPoint, go to the File
menu and select New. You can also click on the Blank Presentation button and
click OK. Then follow the previous directions for selecting a slide layout.

Different Views that PowerPoint Demonstrates


There are different views within Microsoft PowerPoint that allow you to look at
your presentation from different perspectives.

PowerPoint has five views from which you can choose to create and edit your
slides. To access the views, you can go to the View menu. You can also click icons
that are located on the bottom left corner of the tri-pane window. Each view will
have a different set of icons from which editing can be done. Each view also
displays the slide in a unique way. To select a view, click on the appropriate view
icon.
The first view is the Normal View. In this view, you edit one slide at a time.
With the current slide, you can add text, draw graphics, add clip art, and change
the layout. This is the default view.
It allows you to see and work with several aspects of the presentation
simultaneously; including the slide, the outline/slide sorter section, and the task
pane. The second view is the Slide Sorter View. This view shows a miniature of
your slides. Under each slide it shows the slide number, transition between
slides, body text animation and display time. All of these attributes can be
modified from this view. The toolbar above the slide window contains the
functions for setting the slide attributes. You can access this view by going to the
View menu >Slide Sorter.
The third view is the Slide Show From Current Slide. This view runs your
presentation from the slide you were currently editing, filling the screen with
your slides. With this view, you can see the slide transitions and timing. To get
out of the Slide Show view and back to one of the edit views, press the ESC key.

Saving Presentations
Selecting the File menu > Save will save the current presentation. If this is the first
time you have saved this presentation, PowerPoint 2003 will ask for a file name. If
the presentation has been saved before, PowerPoint will find and replace the older
document. To save a presentation with a different name or in a different folder,
select the File menu > Save As... From the menu. PowerPoint will then ask for the
new name and folder for the presentation.
You also have the option of saving your presentation in different formats. In the
Save As window, there is a pull down menu under the Save As Type field. This
allows you to save your presentation as a Windows Metafile, a JPEG, or whatever
format suits your fancy.
There is also an option to save the presentation as html, enabling you to save it as a
format that can be put on the Internet. This option can be useful as a backup method

in case something goes wrong with your presentation or if PowerPoint is not


installed on the computer you are presenting on. Be aware that some of the
PowerPoint features will not be available as a webpage.

To Save as a Web Page:


1. Select the File menu >Save as Webpage...
2. In the Save In field select the folder you wish to save your webpage in.
3. In the File Name Field, type a name for your file
O Make sure the file extension is .html
4. In the Save As Type Field select Webpage (*.htm, *.html)
5. Click on the Publish button.
6. In the new dialog box that appears choose whether to export your entire slide
show, certain slides, and other features you may wish to include.
7. When you have selected all of your options, click on the Publish button again.

Undo and Redo an Action:


To cancel or undo your most recent action, select the Edit menu > Undo or click
the Button
. To see the most recent actions you can undo, select the arrow next
to the Undo button
. You can scroll to see more actions. Click the action you
want to undo and it will undo it. When you undo an action, you also undo all
actions listed above it. If you change your mind after you click Undo, you can click
Redo
to restore the action.

MARKS: _______________
Teachers Sign:__________

EXPERIMENT NO 10
INTRODUCTION TO MICROSOFT EXEL

Objectives:
To learn to make professional spreadsheets.

Theory:
Microsoft Excel is a spreadsheet program that you can use to organize, analyze and
attractively present data such as a budget or sales report. Each Excel file is a
workbook that can hold many worksheets. The worksheet is a grid of columns,
designated by letters, and rows, designated by numbers. The letters and numbers of
the columns and row called labels are displayed in gray buttons across the top and
left side of the worksheet. The intersection of a column and a row is called a cell.
Each cell on the spreadsheet has a cell address that is the column letter and the row
number. Cells can contain text, numbers, or mathematical formulas.

Equipment Required:
Computer Systems.
Microsoft office installed into the system.

Procedure:
Starting Microsoft Word
Two Ways
1. Double click on the Microsoft Excel icon on the desktop.

2. Click on Start --> Programs --> Microsoft Excel

Creating a New File:

Select File > New from the Menu bar. The New Workbook pane appears on the
right hand side of the screen. Under the title New select Blank workbook.
An alternative is to click the New button found on the Standard toolbar to create a
new workbook.

Opening an Existing File:

Click File > Open from the Menu bar, or click the Open button found on the
Standard toolbar to open an existing workbook.

Saving a File:

To save click on the Save button found on the Standard toolbar. Choose a directory
to save the file in. Specify a filename, and then press Save. This is done only the
first time you try to save a file.
It is recommended that you save your changes every ten minutes. All you have to
do is to press on the Save button, or simply go to File > Save. This will update your
initially saved file.

Formatting:

Formatting toolbar is used to format text, for example font type / size /
alignment /color / text indentation. Also used to create bulleted / numbered lists,
borders etc.

Adding and Renaming Worksheets

The worksheets in a workbook are accessible by clicking the Worksheet tabs in the
lower part of the screen. By default, three worksheets are included in the default
workbook.To add a sheet, select Insert > Worksheet from the Menu bar.
To rename the Worksheet go to Format > Sheet > Rename or right-click on the
tab with the mouse and select Rename from the Shortcut menu or double click on
the name of the sheet and when it is highlighted you can type in the new name.
Press the Enter key after having typed in the new sheet name.

Modifying Worksheets

Adding Worksheets, Rows, Columns, and Cells


_ Worksheets: Add a worksheet to a workbook by selecting Insert > Worksheet
from the Menu bar.
_ Row: To add a row to a worksheet, select Insert > Rows from the Menu bar, or
highlight the row by clicking on the row label, right-click with the mouse, and
choose Insert.
_ Column: Add a column by selecting Insert > Columns from the Menu bar, or
highlight the column by clicking on the column label, right-click with the mouse,
and choose Insert.
_Cells: Add a cell by selecting the cells where you want to insert the new cells,
Click Insert > Cells >Click an option to shift the surrounding cells to the right or
down to make room for the new cells.

Resizing Rows and Columns:

There are two ways to resize rows and columns:


The first way is to resize a row by dragging the line below the label of the row you
would like to resize (up/down). Resize a column in a similar manner by dragging
the line to the right of the label corresponding to the column you want to resize. To
auto-fit text inside a cell simply double click on the separator line (separating the
two columns: the one you are typing in and
one to its right).
Or
The second way is to click the row or column label and select Format > Row
>Height or Format > Column > Width from the Menu bar to enter a numerical
value for the height of the row or width of the column.

Cutting Cells:

To cut cells, highlight the cells the select Edit > Cut from the Menu bar or click the
Cut button on the Standard toolbar.

Copying Cells:
To copy the cell contents first highlight the cell then select Edit > Copy from the
Menu bar or click the Copy button _on the Standard toolbar.
Pasting Cut and Copied Cells
Highlight the cell into which you want to paste the content, and select Edit > Paste
from the Menu bar or click the Paste button on the Standard toolbar.

Drag and Drop:

You can drag and drop content between cells. We recommend you use this method
if the cells are adjacent to each other. Highlight the cell you would like to move,
simply drag the highlighted border of the selected cell to the destination cell with
the mouse. But be aware that the Drag-and-Drop method cuts the contents the
source cell and pastes it in the destination cell.

Deleting Rows, Columns, and Cells:


Rows: select the row by clicking its number, Click Edit > Delete
Columns: select the column by clicking its letter, Click Edit > Delete
Cells: select the cells you want to delete, Click Edit > Delete

Creating Formulas:
1. Click the cell that you want to enter the formula.
2. Type = (an equal sign).
3. Click the Function Button
4. Select the formula you want and step through the on-screen instructions

Order of Operation Excel Uses

Adding Borders and Shadings to Cells

1. Make sure you have the Formatting toolbar visible


Click on View --> Toolbars --> Formatting
2. Select cells you wish to format by left clicking on them and highlighting them
3. Click the button to shade a cell and/or the to give a cell a border

Inserting a Chart

1. Select over the text you want to make your chart with

2. Click Insert -->Chart

3. Select the type of chart you want

4. Confirm or change your data range


5. Update the Chart Options

6. Select if you want to put it into the current worksheet or into a new
worksheet

MARKS: _______________
Teachers Sign: __________

EXPERIMENT: 11

INTRODUCTION TO C++ PROGRAMING


Objectives:
To learn basic concepts of C++ programming, its format and syntax.
Understand and be able to use fundamental programming concepts such as
variables, printing statements, and applying mathematical operations on
variables

Theory:
C++ is an "object oriented" programming language created by Bjarne Stroustrup
and released in 1985. It implements "data abstraction" using a concept called
"classes", along with other features to allow object-oriented programming. Parts of
the C++ program are easily reusable and extensible; existing code is easily
modifiable without actually having to change the code.

Equipment Required:
Computer Systems.
Microsoft Visual studio software installed in the system

Procedure:
1. Learn to use the software
2. Open the software
3. Click File
4. Click New
5. Write the basic syntax in the workspace

Printing a Statement
By default, the standard output of a program is the screen, and the C++ stream
object defined to access it is cout.
Print any statement using the cout statement.

Initializing a Variable:
Initialize a variable say x using the keywords int, double, char etc
Assigning a value or a character to the variable. Simply assign a value or a
character to the variable, using the assignment operator.

Arithmetic Operations
The five arithmetical operations supported by the C++ language are:

Apply arithmetical operations on the variables. You can also print the result using
the cout statement.
Note:
It should be noted that practice of all the statements and syntax should be done by
working on different tasks.

Write a program in c++ for addition of two


variable?

______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
Write a program for subtraction of two

Variable?

______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
__________________________________________________

WRITE A PROGRAM IN C++ FOR MODULUS OF


TWO VARIABLES:

______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
__________________________________________________

WRITE A PROGRAM TO IDENTIFY EVEN AND ODD


NUMBER USING IF ELSE STATEMENT:

______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________

WRITE a program which print a statement 10


times using for loop:

______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
____________________________
MARKS: _______________
Teachers Sign: __________

EXPERIMENT: 12
C++ PROGRAMMING: BASIC INPUT/OUTPUT
Objectives:
To be able to interact with the user by printing messages on the screen and
getting the user's input from the keyboard.
To use control structures where we are working with conditions.

Theory:
C++ uses a convenient abstraction called streams to perform input and output
operations in sequential media such as the screen or the keyboard. A stream is an
object where a program can either insert or extract characters to/from it. We do not
really need to care about many specifications about the physical media associated
with the stream - we only need to know it will accept or provide characters
sequentially.

Equipment Required:
Computer Systems.
Microsoft Visual studio software installed in the system.

Procedure:
Standard Output
By default, the standard output of a program is the screen, and the C++ stream
object defined to access it is cout.
cout is used in conjunction with the insertion operator, which is written as <<(two
"less than" signs).

Standard Input
The standard input device is usually the keyboard. Handling the standard input in
C++ is done by applying the overloaded operator of extraction (>>) on the cin
stream. The operator must be followed by the variable that will store the data that is
going to be extracted from thestream.cin can only process the input from the
keyboard once the RETURN key has been pressed.

Control Structures

The if keyword is used to execute a statement or block only if a condition is


fulfilled.
Its form is:
if (condition) statement
else statement
Where condition is the expression that is being evaluated. If this condition is true,
statement is executed. If it is false, statement is ignored (not executed) and the
condition after else is executed.

MARKS: _______________
Teachers Sign: __________

Vous aimerez peut-être aussi