0% found this document useful (0 votes)
715 views33 pages

1008 Lab Manual

The document is a lab manual for the Introduction to IT Systems Lab at Govt Polytechnic College Perinthalmanna, covering topics such as digital computer systems, desktop environments, Linux commands, and email account creation. It includes aims, definitions, components, and procedures for familiarization with various IT concepts and tools. The manual serves as a guide for students to understand and practice essential IT skills.

Uploaded by

nduknml
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
715 views33 pages

1008 Lab Manual

The document is a lab manual for the Introduction to IT Systems Lab at Govt Polytechnic College Perinthalmanna, covering topics such as digital computer systems, desktop environments, Linux commands, and email account creation. It includes aims, definitions, components, and procedures for familiarization with various IT concepts and tools. The manual serves as a guide for students to understand and practice essential IT skills.

Uploaded by

nduknml
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 33

DEPARTMENT OF ELECTRICAL & ELECTRONICS

ENGINEERING

A
LAB MANUAL

N
INTRODUCTION TO IT SYSTEMS LAB (1008)
(SCHEME: 2021)

M
P
Name…………………………………………………………………..

Branch…………………………………………………………………

Class……………………Roll No……………Reg No……………….

GOVT POLYTECHNIC COLLEGE PERINTHALMANNA


IIT LAB (1008)

FAMILIARIZATION OF A DIGITAL COMPUTER SYSTEM


AIM: To Familiarize a Digital Computer System

Computer : A computer is an ultrafast electronic counting machine that can store, transmit and manipulate informa tion(data).
Because of the large scale use of computers for data processing, they are also called Electronic Data Processing Machines.

A Computer system consists of two components, Hardware and Software. For the working a computer system, both the hardware
and the software are essential. One component cannot function without the other.

A
Hardware : The electronic and mechanical components of a computer constitute its physical structure and are called the hardware.
Hardware components include the processor, main memory unit consisting of Random Access Memory(RAM) and Read Only
Memory(ROM) and secondary memory devices such as hard disc, flop disc, CD, DVD, etc., motherboard and its circuitry, Input /
Output devices like keyboard, monitor, mouse, etc.

N
Software : Software give life to the hardware. Software are the programs or instructions, which are used for the functioning of the
computer as well as for processing data and solving problems. Software can be broadly classified into two:

M
1. System Software and

2. Application Software.

P
System Software :System Software are the programs used for the functioning and administration of the computer system. The
common system software are Operating Systems, and Compilers, etc.

Application Software: These are the programs developed for specific applications or utility. They are developed by the
programmers based on customer’s needs and demands.
C
Operating System : Operating system (OS) acts as an intermediate layer between the application programs and computer
hardware. We can say that the Operating System is the administrator of the computer. In modern terminology Operating Systems
T
are generally referred to as Platforms. The main functions of Operating System are :

1. Process Management.
P

2. Memory Management.

3. I/O Management
_G

4. Job Scheduling

5. Data Transfer.
E

COMPONENTS OF A DIGITAL COMPUTER SYSTEM


E

The fundamental units of a digital computer are:

1. The Central Processing Unit comprising of:


E

a. Arithmetic and Logic Unit (ALU)

b. Control Unit and

c. Memory Unit

5 EEE_GPTC PMNA
IIT LAB (1008)

A
N
M
P
C
T
P
_G
E
E
E

4 EEE_GPTC PMNA
IIT LAB (1008)

2. Input and output unit

3. Auxiliary Memory
The Central Processing Unit (CPU)

The processor and the main memory unit are jointly called the Central Processing Unit. As the name indicates the processing of
data are done in this unit. Pentium-4, AMD Athelon, Core 2 Duo, Core i5, etc. are some of the processors available in the market.

Arithmetic and Logic Unit (ALU)

The arithmetical operations such as addition, subtraction, multiplication, division, exponentiation, etc. and the logical ope rations of

A
comparisons like less than, greater than, equality, etc. are done in this Unit.

Control Unit

N
Another logical unit of the processor is the control unit which controls all the operations of the CPU. It co -ordinates all the functions
of different logical units in the CPU and I/O devices.

Main Memory Unit

M
Main memory or the primary memory is made up of electronic circuits. They consists of semiconductor devices. They are very fa st
but volatile in nature.

P
RESULT: Familiarized about a digital computer system.

C
T
P
_G
E
E
E

6 EEE_GPTC PMNA
IIT LAB (1008)

FAMILIARIZATION OF DESKTOP ENVIRONMENTS


AIM : Familiarization of Desktop Environments - Customizing Desktop settings - Multiple Workspaces-
Understanding panels & menus-Lock screen / Suspend/ Hibernate/ Shutdown

Understanding Desktop

All GUI based operating systems use desktop environment. GNOME and KDE are the most popular
desktop environments use in GNU/Linux operating Systems.
The major components of the Desktop are -
Desktop
The desktop itself is behind all of the other components on the desktop. The desktop also has
several special objects on it. A typical desktop consists of - The Computer icon which gives access to
CDs, removable media such as floppy disks, and also the entire filesystem. Home Folder, labelled

A
username's Home, where all of users personal files are kept. The Trash is a special folder in which to
place files and folders tat are no longer need.

Panels

N
The panels are the two bars that run along the top and bottom of the screen. By default, the top
panel shows you the GNOME main menu bar, the date and time, and a set of application launcher icons,
and the bottom panel shows the list of open windows and the workspace switcher.

M
Customising the Desktop
A theme is a group of coordinated settings that specifies the visual appearance of a part of the
Desktop such as buttons, scroll bar, panels, windows, etc.

To Change Theme

Background
Desktop Background
P
1. Start the System / preference / Appearance tool. OR Right-click on the Desktop and Select Change

The desktop background is the image or color that is applied to your desktop.
C
To change the Desktop Background
1. Start the System/ preference/Appearance tool. OR Right-click on the Desktop and Select
Background
T

To change the Font preference


1. Use the Fonts tabbed section in the Appearance preference tool to choose which fonts are used in
P

different parts of the desktop, and the way in which fonts are displayed on the screen.

Screensaver Preferences
A screensaver displays moving images on the screen when the computer is not being used.
_G

Screensaver
1. Select System / Preference. Select the Screensaver theme from the list.

Workspaces
E

Workspaces allows to manage which windows are on the screen. Every workspace contains the
same desktop, the same panels, and the same menus. However, users can run different applications, and
open different windows in each workspace. The applications in each workspace will remain there when
user switch to other workspaces. By default, four workspaces are available.
E

Switching Between Workspaces


Switching between workspaces can be done in any of the following ways:
E

 In the Workspace Switcher applet in the bottom panel, click on the workspace where you want to
work.
 Move the mouse pointer over the Workspace Switcher applet in the bottom panel, and scroll the
mouse wheel.
 Press Ctrl+Alt+right arrow to switch to the workspace on the right of the current workspace.
 Press Ctrl+Alt+left arrow to switch to the workspace on the left of the current workspace

Panel Properties
Moving a Panel: To move a panel to another side of the screen, press and hold <Alt> and drag the panel
to its new location. Click on any vacant space on the panel to begin the drag.
Adding panel
To add a panel, right-click on a vacant space on any panel, then choose New Panel. The new panel
is added to the Desktop. The new panel contains no objects.
Deleting Panel

7 EEE_GPTC PMNA
IIT LAB (1008)
To delete a panel from the Desktop, right-click on the panel to delete, then choose Delete This
Panel.
Adding and Removing Applet to the Panel
To remove an applet, right click on it and select Remove From Panel. To add a new applet to a
panel, right click in a clear area on the panel and select Add to Panel.

Adding and Removing a Launcher to a Panel


Right-click on any vacant space on the panel, then choose Add to Panel. To remove a Launcher,
right click on it and select Remove from Panel.

Using the Main Menu bar

Use the Applications menu to launch applications, the Places to open locations on your computer or
network, and the System to customize your system, get help, and log out or shutdown computer.
Customizing the Panel Menubar

A
The contents of the following menus:
 Applications menu
 System ▸ Preferences submenu
 System ▸ Administration submenu

N
To edit the items in these menus, right-click on the panel menubar, and choose Edit Menus. The
Menu Layout window opens.The Menu Layout window lists the menus in the left pane. Click on the
expander arrows to show or hide submenus. Choose a menu in the left pane to see its items listed in the

M
right pane.To remove an item from a menu, deselect it in the list. The item can be ad ded back to the
menu by selecting it once again

Taking Screenshots

To take a screenshot, use the following shortcut keys:


Default Shortcut Keys
Print Screen
Alt+Print Screen
OR
P Function
Takes a screenshot of the entire screen.
Takes a screenshot of the window which is active.
C
Choose Applications ▸ Accessories ▸ Take Screenshot.
T
Managing your computer

When working on the computer has completed, you can choose to log out, suspend, restart, or
shut down through the session menu on the far right side of the top panel. Also quickly access these
P

options by pressing the Ctrl+Alt+Del keys.


Logging out
Logging out will leave the computer running but return to the login screen.
_G

Suspend
To save energy, put computer into sleep mode, which will save its current condition and allows to start
more quickly while remaining on but using very little energy. Suspending the computer spins down the
hard disk and saves your session to memory, so it is very quick to suspend and resume from suspension.
E

Hibernate
Hibernate is similar to suspend, except that instead of saving your session to memory, hibernate
will save your session to the hard disk. This takes a little longer, but with the added benefit that
hibernation uses no power while it is in a hibernated state.
E

Rebooting
To reboot your computer, select Restart from the session menu.
E

Shut down
To totally power down your computer, select Shut Down from the session menu.

RESULT

Familiarized about Desktop Environments, Desktop settings, Multiple Workspaces, panels & menus-Lock
screen / Suspend/ Hibernate/ Shutdown

8 EEE_GPTC PMNA
IIT LAB (1008)

FAMILIARIZATION TO LINUX COMMANDS


AIM:
To familiarize various Linux commands.

Linux is a Unix-like computer operating system assembled under the model of free and
open source software development and distribution. The defining component of Linux is the

A
Linux kernel, an operating system kernel first released on 5 October 1991, by Linus Torvalds.
Because it considers Linux to be a variant of the GNU operating system, initiated in 1983 by

N
Richard Stallman, the Free Software Foundation prefers the name GNU/Linux when referring
to the operating system as a whole.

M
The development of Linux is one of the most prominent examples of free and open source
software collaboration: the underlying source code may be used, modified, and distributed

P
commercially or non-commercially by anyone under licenses such as the GNU General Public
License. Typically, Linux is packaged in a format known as a Linux distribution for desktop
C
and server use.
T
Some popular mainstream Linux distributions include

 Debian (and its derivatives such as Ubuntu and Linux Mint)


P

 Fedora (and its derivatives such as the commercial Red Hat Enterprise Linux and its open
_G

equivalent CentOS)
 Mandriva / Mageia, open SUSE (and its commercial derivative SUSE Linux Enterprise
Server),
E

 Arch Linux.
E

A distribution oriented toward desktop use will typically include the X Window System
and an accompanying desktop environment such as GNOME or KDE Plasma. Some such
E

9 EEE_GPTC PMNA
IIT LAB (1008)

distributions may include a less resource intensive desktop such as LXDE or Xfce for use on
older or less powerful computers. A distribution intended to run as a server may omit all
graphical environments from the standard install and instead include other software such as the
Apache HTTP Server and an SSH server such as Open SSH. Because Linux is freely
redistributable, anyone may create a distribution for any intended use. Applications commonly
used with desktop Linux systems include the Mozilla Firefox web browser, the LibreOffice

A
application suite, and the GIMP image editor.

PROCEDURE:

N
To study various Linux commands.

M
1. Date command
Print or set the system

P
date

Syntax: $ date
C
Eg: date
T

2. Echo command
P

Used to display a line of text.

Syntax: echo “ ”
_G

Eg: echo “Welcome”


E

3. pwd command
Used to display full path name for current working directory.
E

Syntax: $ pwd
E

Eg: $ pwd

4. ls command
To list all directory contents.

Syntax: $ ls

10 EEE_GPTC PMNA
IIT LAB (1008)

Eg: $ ls

5. Cal command
To display calendar.

Syntax: $ cal

A
6. Who command
Who is logged on Linux?

N
Syntax: $ who

M
Eg: $ who

7. Exit command
to quit Linux.

Syntax: $ exit
P
C
Eg: $ exit
T

8. Clear command
P

Clear the terminal screen.


_G

Syntax: $ clear

Eg: $ clear
E

9. rm command
E

Deleting files.

10. Cat command


E

Used to create a file.

Syntax: cat > file name

11. Head command


To display first ten line of a file.

11 EEE_GPTC PMNA
IIT LAB (1008)

Syntax: head filename

12. Tail command


To display the last ten line of a file.

Syntax: tail filename

A
13. mkdir command
To make a directory.

N
Syntax: mkdir folder name

M
Eg: mkdir ABC

14. cd command
To change directory.

Syntax: cd directory name


P
C
Eg: cd AAA
T

RESULT
P

Output obtained hence the program is verified


_G
E
E
E

12 EEE_GPTC PMNA
IIT LAB (1008)

E-MAIL AND ACCOUNT CREATION


AIM:

To practice and understand different Email Services – Outlook, Yahoo Mail, Rediff
mail etc. and to Create Email Accounts.

THEORY:

A
An electronic communication invented in the 1970s to do communication faster during

N
the era of letters and telegrams that changed the way people communicate with each other is
called an Email. Ray Tomlinson is called as the father of the email system, and he sent

M
a communication between two computer systems for ARPANET. A method of exchanging
messages instantly from one system to another with the help of the internet is called an Email.
Initially, Email usage was limited to users of the same computer, and it asked for the users to

P
be online to receive the messages. Time changed, and now we know how the mailbox looks.
The mail can be sent to more than one recipient, and the recipient’s name can be hidden from
C
others by adding their names in Bcc.
T
You can use your username and password to sign in to Gmail and other Google products
like YouTube, Google Play, and Google Drive.
P

The steps, to create Gmail account and to start sending emails.


_G

Step 1: Visit Google account creation page, accounts.google.com.

Step 2: Click on Create account.


E

Step 3: The sign-up form will appear. Enter your first and last name.

Step 4: Choose a Username for your account. (Here you can also use an existing email
E

address).

Step 5: After choosing a username, enter a password. Type the password again to confirm.
E

(As per Google's instruction always, use 8 or more characters with a mix of letters,
numbers & symbols)

Step 6: At last tap on Next. (Right corner of the screen)

13 EEE_GPTC PMNA
IIT LAB (1008)

Step 7: On the next page enter your phone number to verify your account. (It is a twostep
verification process for security)

Step 8: On the given mobile number you will receive a text message from Google with a
verification code. Enter the verification code and tap on Verify.

Step 9: On the next page enter your DOB in the specified fields.

A
Step 10: Choose a Gender.

N
Step 11: Tap on Next.

Step 12: Read, Google's Terms of Service and Privacy Policy will appear on the screen

M
and click on I agree. Then a message will generate that “Congratulations! Your
account has been created”.

P
From now, onwards every time you sign in you just have to enter your email id and
password. Moreover, every time you sign in do not forget to sign-out because it prevents others
C
from viewing your emails.
T

Navigate to the circle (in the top-right corner of the page). Here tap on it, from the below

Option, select Sign-out.


P
_G
E
E
E

14 EEE_GPTC PMNA
IIT LAB (1008)

Steps to add a display picture to your Gmail account:

Step 1: Log into your Gmail account

Step 2: Use the gear/settings button at the top right of Gmail.

Step 3: Click on the 'settings' option.

Step 4: After that in the General tab, scroll down to the 'my picture' section and click

A
the link 'choose a picture.'

N
Step 5: A new page, 'Google about me' will appear. Here clicks the camera icon in the
centre of the photo space near the top of the page.

M
Step 6: A new window will appear with the pictures you have uploaded to your Google
account.

P
Step 7: Select one of them, navigate to its location and click on 'choose.' Step 8: Adjust
the scale and then click done.
C
Step 9: Your profile picture will be updated.
T

Steps to add a Gmail account to your phone:

Step 1: Open your phone's Settings app.


P

Step 2: Tap Accounts. If you do not see "Accounts," tap Users & accounts.
_G

Step 3: At the bottom, tap Add account.

Step 4: Tap the type of account you want to add.


E

To add your Google Account, tap Google. When you sign in with a Google Account,
the email, contacts, calendar events, and other data associated with that account automatically
E

sync with your phone.


E

To add a background theme Open Gmail.

At the top right, click Settings " ".

Go to Theme and select a theme.

(Optional) To change themes, click View all and choose a theme.

15 EEE_GPTC PMNA
IIT LAB (1008)

(Optional) To add a background image as a theme, click My photos and then the
image you want and then Save.

RESULT:

Created a new email id and learned basic functions.

A
N
M
P
C
T
P
_G
E
E
E

16 EEE_GPTC PMNA
IIT LAB (1008)

WORD PROCESSOR - MICROSOFT WORD

AIM:
Create a word document with following text. Then format given text as per the
instructions given below.

A
MICROSFT WORD

Microsoft word is a word processing software developed by Microsoft. It was first

N
released on October 25, 1983, under the name Multi-Tool Word for Xenix Systems. The first
version of Word for Windows was released in 1989. With the release of Windows 3.0 the

M
following year, sales began to pick up and Microsoft soon became the market leader for word
processors for IBM PC-compatible computers. Charles Simonyi, a developer and Richard

P
Brodie, a software engineer, were the two creators of MS Word

Filename extensions:
C
Microsoft word’s native file formats are denoted by either a .doc or .docx.
T

MS Word enables users to do write-ups, create documents, resumes, contracts, etc.


P

The common formatting features, which are available on MS Word, include:


_G

 Font Style, Size and Colour.


 Header and Footer.
 Insert Images.
 Add tables and bulleted lists.
E

 Set a page layout.


 Add Word Art.
E

 Tabs
E

PROCEDURE:

1. Underline the heading with bold and size 14 (Font -> Calibri).

17 EEE_GPTC PMNA
IIT LAB (1008)

2. Headline aligned with centre.

3. Adjust the line spacing to 2.0 (double space) for first paragraph.

4. Spellcheck the whole document.

5. Italicize the Microsoft word creator’s names.

6. Change the paragraph to justify alignment.

7. Insert a picture of Founder of Microsoft Company.

A
8. Add bullets into features of Microsoft word and change the colour of heading to Red.

9. Create a table about Microsoft word and its versions (Use merge, align, boarder etc.)

N
10. Save the file.

M
RESULT:
The given experiment successfully completed.

P
C
T
P
_G
E
E
E

18 EEE_GPTC PMNA
IIT LAB (1008)

OUTPUT:

A
N
M
P
C
T
P
_G
E
E
E

19 EEE_GPTC PMNA
IIT LAB (1008)

WORD PROCESSOR-BIO DATA


AIM:
Familiarisation with word processor by making own biodata with covering letter.

OBJECTIVE:

A
To familiarise with features in menu like File, Edit, Tools, Format, converting from odt to
doc, PDF etc.

N
Tools: LibreOffice Writer.
Equipment: PC with Ubuntu OS.

M
THEORY:

LibreOffice Writer is used to design and produce text documents that can include graphics,

P
tables, or charts. We can then save the documents in a variety of formats, including the
standardized Open Document Format (ODF), Microsoft Word .doc format, or HTML and we can
easily export our document to the Portable Document Format (PDF).
C
LibreOffice Writer is also used to create both basic documents, such as memos, faxes,
letters, resumes and merge documents, as well as long and complex or multi-part documents,
T

complete with bibliographies, reference tables and indexes.


PROCEDURE:
P

1. Search web to select an appropriate model for biodata and covering letter.
_G

2. Prepare own bio-data to apply for a position / job with respect to selected course of study.
3. Save the file either in open format (.odt) or Microsoft format (.doc). Normally “odt” isn't
supported by paid platforms (e.g. Windows). But Ubuntu supports their formats. (“Format
drop down” option is just above the “save” button in the save window).
E

4. Click on “save with password” check-box option, if needed. It is available on left bottom
side in save window.
E

5. It's optional to convert the file to Portable Document Format (File->Export as PDF), so
E

that the file will be seen intact in all OS platforms. Also PDF is apt for printing.
6. Repeat the steps from 1 to 5 for creating a covering letter.
7. Send files to the email of trainer (optional).

20 EEE_GPTC PMNA
IIT LAB (1008)

BIODATA

Name:

Address: Photo

Contact no:
Email id:

A
Career Objective:

N
To work in a good organization as xxxx, here I can utilize my knowledge and skills

Educational Background:

M
course Institution/University Year of passing Percentage of mark

P
Diploma in CE xxxxx

Plus Two xxxxx 2020 90


C
SSLC xxxxxx 2018 90
T
Technical Skills:
● Microsoft Office
● Microsoft Word
P

Extra-Curricular Activities:
_G

● Actively involved in Arts and Sports

Personal Information:

Father's Name :
E

DOB :

Gender :
E

Nationality :
E

Languages Known :

Hobbies :

Declaration
I hereby declare that the information furnished above is true to the best of my knowledge
Place: Signature
Date: Name

21 EEE_GPTC PMNA
IIT LAB (1008)

RESULT

Prepared biodata with covering letter.

A
N
M
P
C
T
P
_G
E
E
E

22 EEE_GPTC PMNA
IIT LAB (1008)

SPREAD SHEET-MICROSOFTEXCEL
AIM:
To prepare a rank list in a class by Microsoft excel.

Design a rank list with following conditions. The table should contain 6 subject such
as ENGLISH, PHYSICS, CHEMISTRY, BIOLOGY, MATHEMATICS AND INFORMATION TECHNOLOGY.

A
Maximum mark of each subject is 100. Pass percentage of each subject is 40. The table should
contain the following fields: Class No., Name of Student, Subject Names, Total, Average (%),

N
Pass/Fail, Rank and Status.

M
Criteria:
1. The total column should show sum of all subjects of a particular student.
2. The average column should show percentage up to 2 decimal places.

P
3. The Pass/Fail column should show “Pass” or “Fail”. The pass student should obtain
40 or above mark of each subjects. If the mark of a student is below 40 even in a single
C
subject, such student should be marked as “Fail”.
4. The rank should be mentioned only for those students who have passed.
T

5. The status field shows divisions such as if average mark > 75 is Distinction, > 60 is
First Class, > 50 is Second Class, > 40 is Third Class and others should be marked as
P

“Fail”.
_G

PROCEDURE:
1. Start “Microsoft Excel” program.
2. First, go to File menu and Choose New sub menu, select worksheet option, and click
E

OK.
3. Enter the filed Class No., Name of Students, Subject Names, Total, Average (%), Pass/Fail,
E

Rank and Status.

4. Enter the data of 12 students.


E

5. To find the total, Enter the formula =SUM(Range) Eg: =SUM(C4:H4)


6. Enter the formula in formula bar, for finding average =AVERAGE(Total/Number of
Subjects)
7. In the Pass/Fail column type the formula as
=IF(AND(C4>=40,D4>=40,E4>=40,F4>=40,G4>=40,H4>=40),"PASS","FAIL")

23 EEE_GPTC PMNA
IIT LAB (1008)

Eg: =IF(AND(C4>=40,D4>=40,E4>=40,F4>=40,G4>=40,H4>=40),"PASS","FAIL")
8. =RANK(I4,$I$4:$I$15)
9. To find the status, =IF(J4>75,"DISTINCTION",IF(J4>60,"FIRST CLASS",IF(J4>50,
"SECOND CLASS", IF(J4>40, "PASS","FAIL"))))
10. Save the file.
11. Print the rank list by Ctrl + P (Shortcut Key)

A
RESULT:
The given Open Office Calc exercise successfully completed.

N
M
P
C
T
P
_G
E
E
E

24 EEE_GPTC PMNA
IIT LAB (1008)

SLIDE ANIMATION-MICROSOFT POWER POINT


AIM:
Make a slide animation about your college and courses offered.

SOFTWARE:
Open office Impress

A
OPERATING SYSTEM:

N
Ubuntu.

M
OPEN OFFICE IMPRESS:
Microsoft PowerPoint is a powerful slide show presentation program. It is a part of
the open office suite package, and created by Sun Microsystems.
Start it from the Main Menu by,

P
Start → Microsoft Office → Microsoft PowerPoint
C
STEPS:
1. Click Start → Microsoft Office → Microsoft PowerPoint
T

2. Select empty presentation and click next.


3. Select a design from the list and click next.
P

4. Then click create button.


5. Prepare five slides about your college and courses offered
_G

6. To insert a new slide, click insert → New Slide from standard bar and select a
layout from the list.
7. Prepare the slides and format using formatting toolbar.
E

8. To apply animations, select Slide → Custom animation from standardbar.


9. Select the entered text and click add button from “Modify Effect” toolbox.
E

10.Choose appropriate effects and press ok button.


11.To see slide show, click slide show or press “F5” from the keyboard.
E

12.Save the file with appropriate name in your folder.

RESULT:
The given PowerPoint exercise successfully completed.

25 EEE_GPTC PMNA
IIT LAB (1008)

PYTHON PROGRAMMING

THEORY:

Python is an easy to learn, powerful programming language. It has efficient high-level


data structures and a simple but effective approach to object-oriented programming. It is a
general purpose, interpreted, interactive, object oriented, and high level programming

A
language. Python is designed to be highly readable. It uses English keywords frequently where
as other languages use punctuation, and it has fewer syntactical constructions than other

N
languages.

M
Control Structures
A program’s control flow is the order in which the program’s code executes. The

P
control flow of a python program is regulated by conditional statements, loops and function
calls. Python has three types of control structures:
C
1. Sequential - default mode
2. Selection - used for decisions and branching
T

3. Repetition - used for looping; i.e. Repeating a piece of code multiple times
P

1. Sequential Statements
_G

Sequential statements are a set of statements whose execution process happens in a


sequence. The problem with sequential statements is that if the logic has broken in any
one of the lines, then the complete source code execution will break.
E

2. Selection / Decision Control Statements:


E

In Python, the selection statements are also known as Decision control statements.
The selection statement allows a program to test several conditions and execute
E

instructions based on which condition is true.


Some decision control statements are:
● Simple if
● if-else
● Nested if
● if-elif-else

26 EEE_GPTC PMNA
IIT LAB (1008)

SYMBOLS USED IN FLOWCHART:

FLOWCHARAT
FUNCTIONS DESCRIPTION
SYMBOL
It indicates where the flowchart start and
START / END
ends.

PROCESS It represents a process

A
A decision point, usually a yes / No or
true / false question is asked, and based
DECISION

N
on the answer; the path gets split into
two branches.

M
INPUT / This parallelogram shape is used to input
OUTPUT or output data

ARROW It shows order of flow between shapes

CONNECTOR P
Circles are used to join the different parts
of a flowchart. The parts of the flowchart
on different pages are to be joined with
C
each other.
T
P
_G
E
E
E

27 EEE_GPTC PMNA
IIT LAB (1008)

● Simple if:
Syntax: if test_condition:
Statements
● If-else:
Syntax: if test_condition:
Statements1

A
else:

N
Statements2
● Nested if:

M
Syntax: if test_condition:

if test_condition:

P
if statement
else:
else 1 statement
C
else: else statements
● if-elif else:
T

Syntax: if test_condition:
P

if statement
elif test_condition:
_G

elif statement1
elif test_condition:
elif statement2
E

else:
else statements
E

3. Repetition statements:
E

Repetition is used to repeat a group(block) of programming instructions. In python,


we generally have two loops, repetitive statements:

 while loop
 for loop

28 EEE_GPTC PMNA
IIT LAB (1008)

 while loop
In python, while loops are used to execute a block of statements repeatedly until a
given condition is satisfied. Then, the expression is checked again and, if it is still true,
the body is executed again. This continues until the expression becomes false.
Syntax: while(test_condition): Statements

 for loop

A
A for loop is used to iterate over a sequence that is either a list, tuple, dictionary, or a
set. We can execute a set of statements once for each item in a list, tuple, or dictionary.

N
Syntax: for variable in range (start value, end value): Statements

M
The following six steps must be followed to solve a problem-using computer.

1. Problem Analysis

P
2. Program Design – (Algorithm, Flowchart and Pseudocode)
3. Coding
C
4. Compilation and Execution
5. Debugging and Testing
T

6. Program Documentation
P

Program Design can be done before actual program coding. For designing, any of these
_G

three methods (Algorithm, Flowchart and pseudocode) can be used.

ALGORITHM:
E

An algorithm is a set of well-defined instructions to solve a particular problem. A set


of sequential steps usually written in Ordinary Language to solve a given problem is called an
E

Algorithm.
E

FLOWCHART:

A flow chart is a step-by-step pictorial representation of the logic paths to solve a given
problem.

29 EEE_GPTC PMNA
IIT LAB (1008)

FLOW CHART:

START

A
INPUT A, B

N
M
C=A+B

P
DISPLAY C
C
T

STOP
P
_G

OUTPUT:

Enter the first number:10


E

Enter the second number:20


E

Sum=30
E

30 EEE_GPTC PMNA
IIT LAB (1008)

SUM OF TWO NUMBERS


AIM:
Write a python program to find the sum of two numbers.

ALGORITHM:

STEP 1: START

A
STEP 2: Declare variables A, B and C

N
STEP 3: Read values A and B

STEP 4: Add A and B then the result assign to C

M
STEP 5: Display C

P
STEP 6: Stop

PROGRAM:
C
Python program to find the sum of two numbers.

a= int(input(“Enter first number:”))


T

b= int(input(“Enter second number:”))


P

sum = a + b
_G

print(“sum:”, sum)

RESULT:
Program is executed successfully and output is obtained.
E
E
E

31 EEE_GPTC PMNA
IIT LAB (1008)

FLOW CHART

START

INPUT A, B, C

A
N
IF A > B

M
P
IF A > B IF A > C
C
DISPLAY B IS DISPLAY C IS DISPLAY A IS
LARGEST LARGEST LARGEST
T
P

STOP
_G

OUTPUT:
E

Enter first number 4


E

Enter second number 8


Enter third number 6
E

The largest number is 8

32 EEE_GPTC PMNA
IIT LAB (1008)

LARGEST AMONG THREE NUMBERS


AIM:
Write a python program to find largest among three numbers.

ALGORITHM:
STEP 1: Declare variables A, B and C

A
STEP 2: Read variables A, B and C.

N
STEP 3: If A > B THEN go to step 4 else go to step 5

M
STEP 4: If A > C then Display A is the largest number else go to STEP 6

STEP 5: If B > C Display B is the largest number then go to step 7

STEP 6: Display C is the largest number


P
C
Step 7: Stop
T

PROGRAM:
Python program to find the largest number among the three inputs.
P
_G
E
E
E

RESULT:
Program is executed successfully and output is obtained

33 EEE_GPTC PMNA
IIT LAB (1008)

FLOW CHART:
START

N=1

A
PRINT N

N
N = N+1

M
IF N<=10

P
C
T
STOP

OUTPUT:
P

Enter a natural number: 10


_G

1
2
3
E

4
5
E

6
7
E

8
9
10

34 EEE_GPTC PMNA
IIT LAB (1008)

NATURAL NUMBERS
AIM:
Write a Python program to print first 10 natural numbers.

ALGORITHM
STEP 1: START

A
STEP 2: Assign N as 1

N
STEP 3: Display N

STEP 4: Increment N by 1

M
STEP 5: Check N <= 10, If it is trues go to step 3, else go to step 6

STEP 6: STOP

PROGRAM:
Python program to print natural number.
P
C
T
P
_G

RESULT:
E

Program is executed successfully and output is obtained.


E
E

35 EEE_GPTC PMNA

You might also like