Sei sulla pagina 1di 42

AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

COMPUTING FUNDAMENTALS
E Engr. M. Uzair

DEPARTMENT OF COMPUTER ENGINEERING


CE 1-A
COMPUTING FUNDAMENTALS
By
E Engr. M. Uzair

1
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

Table Of Contents:-

Lab # Lab Experiments CLO’s


1 Introduction to Microsoft word CLO 1
2 Making references, Tables and writing a report CLO 1
3 Table of contents CLO 1
4 Introduction to Microsoft power point CLO 1
5 Power point presentations (slides) CLO 1
6 Introduction to Microsoft CLO 1
7 Table, sheets and mathematical computations in MS CLO 1
Excel
8 Designing Lab in MS Word CLO 1
9 Disassemble Computer System CLO2
10 Assemble Computer System CLO2
11 Installing Linux Operating System CLO2
12 Introduction To Scripting Languages CLO3
13 Basic Programming In Python CLO3

2
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING
AIR UNIVERSITY
DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING

EXPERIMENT NO 1

Lab Title: Introduction To Microsoft Word


Student Name: Reg. No:

Objective:

LAB ASSESSMENT:

Excellent Good Average Satisfactory Unsatisfactory


Attributes
(5) (4) (3) (2) (1)
Ability to Conduct
Experiment
Ability to assimilate the
results
Effective use of lab
equipment and follows the
lab safety rules

Total Marks: Obtained Marks:

LAB REPORT ASSESSMENT:


Excellent Good Average Satisfactory Unsatisfactory
Attributes
(5) (4) (3) (2) (1)

Data presentation

Experimental results

Conclusion

Total Marks: Obtained Marks:

Date: Signature:

3
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

Lab#01

Introduction to Microsoft Word


OBJECTIVES:
 Getting introduced to Microsoft Word
 Learning some basic functions and fonts
 Introduction to columns
 Learning to insert pictures

TOOLS:
 Microsoft Word

DESCRIPTION:
Sometimes called Winword, MS Word, or Word, Microsoft Word is a word processor published
by Microsoft. It is one of the office productivity applications included in Microsoft Office.
Originally developed by Charles Simonyi and Richard Brodie, it was first released in 1983.
Microsoft Word is available for the Microsoft Windows, Apple macOS, Android, and Apple
iOS. It could also be run on the Linux operating system using WINE.
Microsoft Word allows you to create professional-quality documents, reports, letters, and
résumés. Unlike a plain text editor, Microsoft Word has features including spell check, grammar
check, text and font formatting, HTML support, image support, advanced page layout, and more.
What does the Microsoft Word editor look like?
Below is an overview of a Microsoft Word 2010 document.

4
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

IN LAB TASK:
1) Create a test report using basic word knowledge.
2) Make a document provided by an instructor and type that document by yourself. Copy and
paste is not allowed. Use the features like italics, bold, underline.

POST LAB TASK:


1) Create the same sample report as In-lab task but using advanced knowledge and almost as
perfect as original file.
2) Make a front page having your name, roll number, air university logo, page number

5
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

AIR UNIVERSITY
DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING

EXPERIMENT NO 2

Lab Title: Making references, table and writing a report


Student Name: Reg. No:

Objective:

LAB ASSESSMENT:

Excellent Good Average Satisfactory Unsatisfactory


Attributes
(5) (4) (3) (2) (1)
Ability to Conduct
Experiment
Ability to assimilate the
results
Effective use of lab
equipment and follows the
lab safety rules

Total Marks: Obtained Marks:

LAB REPORT ASSESSMENT:


Excellent Good Average Satisfactory Unsatisfactory
Attributes
(5) (4) (3) (2) (1)

Data presentation

Experimental results

Conclusion

Total Marks: Obtained Marks:

Date: Signature:

6
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

Lab#02

Making References, Tables and writing a Report


OBJECTIVES:
 Learning to make references
 Learning to make tables
 Learning the usage of columns

TOOLS:
 Microsoft Word

DESCRIPTION:
Whenever you are writing a report, or doing any kind of research work, then it is necessary to put
reference at the end. So for making references, there are many sites present in an internet which
creates citations (references).

How to add citation?


Following is the method used in Microsoft word for citations:
1) On the References tab, in the Citations & Bibliography group, click the arrow next to Style
and click the style that you want to use for the citation and source. For example, social sciences
documents usually use the MLA or APA styles for citations and sources

2) Click at the end of the sentence or phrase that you want to cite.
3) On the Reference tab, click Insert Citation and then do one of the following:

7
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING
 To add the source information, click Add New Source, and then, in the Create Source
dialog box, click the arrow next to Type of Source, and select the type of source you want
to use (for example, a book section or a website).
 To add a placeholder, so that you can create a citation and fill in the source information later,
click Add New Placeholder. A question mark appears next to placeholder sources in Source
Manager.

4) If you chose to add a source, enter the details for the source. To add more information about a
source, click the Show All Bibliography Fields check box.

5) Click OK when finished. The source is added as a citation at the place you selected in your
document.

Tables:
A table is a grid of rows and columns that intersect to form cells. The lines that mark the cell
boundaries are called gridlines. It's often easier to read or present information in table format
than in paragraph format. Tables help you present information in a clear and organized way.
Here's how to make a table from the Insert Table dialogue box:
1) Click on Table from the menu bar. Select Insert, and then Table… A dialogue box will
open.
2) Enter the desired number of rows and columns.
3) Choose AutoFit behavior if you want the table's cells to automatically expand to fit the text
inside them. Choose AutoFormat if you'd rather select a table with a specific format.
4) Click OK to insert your table.

IN LAB TASK:
1) Make table using MS WORD
2) Make 5 citations using the method above
3) Write a short technical report of the document shared by your instructor

8
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING
POST LAB TASK:
1) Make another report using MS WORD including tables and references at the end
2) Pick up any table of one page having colour in it. Make the same table as your practice

9
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

AIR UNIVERSITY
DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING

EXPERIMENT NO 3

Lab Title: Table Of Contents

Student Name: Reg. No:

Objective:

LAB ASSESSMENT:

Excellent Good Average Satisfactory Unsatisfactory


Attributes
(5) (4) (3) (2) (1)
Ability to Conduct
Experiment
Ability to assimilate the
results
Effective use of lab
equipment and follows the
lab safety rules

Total Marks: Obtained Marks:

LAB REPORT ASSESSMENT:


Excellent Good Average Satisfactory Unsatisfactory
Attributes
(5) (4) (3) (2) (1)

Data presentation

Experimental results

Conclusion

Total Marks: Obtained Marks:

Date: Signature:

10
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

Lab#03

TABLE OF CONTENTS

OBJECTIVES:
This lab is designed to make students learn about how table of contents is designed for any kind
of report, paper and documents. Also it is designed to enable students, how to use Microsoft
tools for making table of contents in an optimized way.

TOOLS:
Microsoft Word

DESCRIPTION:
A table of contents, usually headed simply Contents and abbreviated informally as TOC, is a list,
usually found on a page before the start of a written work, of its chapter or section titles or brief
descriptions with their commencing page numbers.
How to create a table of contents?
1) Put your cursor where you want to add the table of contents.
2) Go to References > Table of Contents. and choose an automatic style.

11
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

3) If you make changes to your document that affect the table of contents, update the table of
contents by right-clicking the table of contents and choosing Update Field.

IN LAB TASK:
Make a table of contents given below:

12
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

POST LAB TASK:


Making another table of contents of minimum 2 pages

13
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

AIR UNIVERSITY
DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING

EXPERIMENT NO 4

Lab Title: Introduction To Microsoft PowerPoint

Student Name: Reg. No:

Objective:

LAB ASSESSMENT:

Excellent Good Average Satisfactory Unsatisfactory


Attributes
(5) (4) (3) (2) (1)
Ability to Conduct
Experiment
Ability to assimilate the
results
Effective use of lab
equipment and follows the
lab safety rules

Total Marks: Obtained Marks:

LAB REPORT ASSESSMENT:


Excellent Good Average Satisfactory Unsatisfactory
Attributes
(5) (4) (3) (2) (1)

Data presentation

Experimental results

Conclusion

Total Marks: Obtained Marks:

Date: Signature:

14
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

Lab#04

INTRODUCTION TO POWERPOINT
OBJECTIVES:
The objective of this lab is to make students learn how to make use power point to make slides,
presentations etc

TOOLS:
Microsoft PowerPoint.

DESCRIPTION:
Microsoft PowerPoint is a presentation program. PowerPoint is used to create a file
which usually have a consistent style (from template masters), and which may contain
information imported from other apps or created in PowerPoint, including text, bullet lists,
tables, charts, drawn shapes, images, audio clips, video clips, animations of elements, and
animated transitions between slides, plus attached notes for each slide.
PowerPoint provides a free access to create a presentation using text, charts, tables and
graphics. PowerPoint is an application software used to present data and information by using
text, images, diagrams with animations and transitional effects etc.

15
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING
In LAB TASKS:
Make and Prepare the presentation of any topic and present it on projector.

Post Lab Task:


 To prepare a presentation on the given topics:
 Engineering and Modern world
 Islam and Science
 Depression. A major threat to life
 Humanoid Robots
 Internet and Human Life

16
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING
AIR UNIVERSITY
DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING

EXPERIMENT NO 5

Lab Title: POWERPOINT Presentations (Slides)


Student Name: Reg. No:

Objective:

LAB ASSESSMENT:

Excellent Good Average Satisfactory Unsatisfactory


Attributes
(5) (4) (3) (2) (1)
Ability to Conduct
Experiment
Ability to assimilate the
results
Effective use of lab
equipment and follows the
lab safety rules

Total Marks: Obtained Marks:

LAB REPORT ASSESSMENT:


Excellent Good Average Satisfactory Unsatisfactory
Attributes
(5) (4) (3) (2) (1)

Data presentation

Experimental results

Conclusion

Total Marks: Obtained Marks:

Date: Signature:

17
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

Lab#05

POWERPOINT PRESENTATIONS (SLIDES)

OBJECTIVES:
In this lab students will learn how to present a presentation prepared using Microsoft
PowerPoint. Students will gain confidence by presenting a presentation. PowerPoint help to
explain the topic and idea in front of audience easily and practically.

TOOLS:-
Microsoft PowerPoint.

DESCRIPTION:-
PowerPoint provides a free access to create a presentation using text, charts, tables and
graphics. PowerPoint is an application software used to present data and information by using
text, images, diagrams with animations and transitional effects etc.

In Lab Task:
To prepare a presentation on the topic of your own choice and present it in front of
audience/class.

Post Lab Task:

To prepare a presentation on the topic “SCIENCE ANT THE MODERN WORLD”.

18
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING
AIR UNIVERSITY
DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING

EXPERIMENT NO 6

Lab Title: Introduction To Microsoft Excel


Student Name: Reg. No:

Objective:

LAB ASSESSMENT:

Excellent Good Average Satisfactory Unsatisfactory


Attributes
(5) (4) (3) (2) (1)
Ability to Conduct
Experiment
Ability to assimilate the
results
Effective use of lab
equipment and follows the
lab safety rules

Total Marks: Obtained Marks:

LAB REPORT ASSESSMENT:


Excellent Good Average Satisfactory Unsatisfactory
Attributes
(5) (4) (3) (2) (1)

Data presentation

Experimental results

Conclusion

Total Marks: Obtained Marks:

Date: Signature:

19
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

Lab#06

INTRODUCTION TO MICROSOFT EXCEL

OBJECTIVES:
This lab is made to make students learn how to use Microsoft Excel in arranging data, using
forumlas and making data sheets etc

TOOLS:

 Microsoft Excel.

DESCRIPTION:
Microsoft Office Excel is one of the most important tools to perform the calculation, analysis,
and visualization of data and information. It helps people to organize and process data by the
use of columns and rows with formulas and some cool features of Excel.
Microsoft excel is a spreadsheet program included in Microsoft office. Microsoft Excel features
include calculations, pivot tables, graphing tools etc. Spreadsheet is used to solve complex
arithmetic problems.

In Lab Task:
1) To create a spreadsheet as provided.
2) To create lab assessment sheet and to perform arithmetic operations.

Post Lab Task:


1) To create lab assessment sheet of your class by using arithmetic operations.

20
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

AIR UNIVERSITY
DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING

EXPERIMENT NO 7

Lab Title: Table Sheets and Mathematical Computations In MS Excel

Student Name: Reg. No:

Objective:

LAB ASSESSMENT:

Excellent Good Average Satisfactory Unsatisfactory


Attributes
(5) (4) (3) (2) (1)
Ability to Conduct
Experiment
Ability to assimilate the
results
Effective use of lab
equipment and follows the
lab safety rules

Total Marks: Obtained Marks:

LAB REPORT ASSESSMENT:


Excellent Good Average Satisfactory Unsatisfactory
Attributes
(5) (4) (3) (2) (1)

Data presentation

Experimental results

Conclusion

Total Marks: Obtained Marks:

Date: Signature:

21
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

Lab#07

Table, Sheets and Mathematical


Computations in MS Excel

Objective:
This lab is designed to make students understand about the basics of Microsoft Excel in order to
make them efficient in making data sheets, making statistical reports, making computations in
Microsoft Excel by using different formulas etc.

Tools:
Microsoft Excel

Description:
Microsoft Excel is a spreadsheet developed by Microsoft for Windows, macOS, Android and iOS.
It features calculation, graphing tools, pivot tables, and a macro programming language called
Visual Basic for Applications. It has been a very widely applied spreadsheet for these platforms,
especially since version 5 in 1993, and it has replaced Lotus 1-2-3 as the industry standard for
spreadsheets. Excel forms part of the Microsoft Office suite of software.

In Lab Tasks:
1) Make the following table in excel sheet:

22
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

2) Make Any data sheet in excel


3) Calculate the Percentage absenties of students of your class by taking random presents and
absents from total 43 lectures

Post Lab Tasks:

1) Apply sum, multiply, percentage and average formula to any data of your choice

23
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

AIR UNIVERSITY
DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING

EXPERIMENT NO 8

Lab Title: Designing Lab In MS Word

Student Name: Reg. No:

Objective:

LAB ASSESSMENT:

Excellent Good Average Satisfactory Unsatisfactory


Attributes
(5) (4) (3) (2) (1)
Ability to Conduct
Experiment
Ability to assimilate the
results
Effective use of lab
equipment and follows the
lab safety rules

Total Marks: Obtained Marks:

LAB REPORT ASSESSMENT:


Excellent Good Average Satisfactory Unsatisfactory
Attributes
(5) (4) (3) (2) (1)

Data presentation

Experimental results

Conclusion

Total Marks: Obtained Marks:

Date: Signature:

24
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

Lab#08

Designing Lab In MS Word

Objective:
This lab is designed to make students enable in making a technical report and lab manual by using
appropriate fonts, citations, table of contents, proper indent, paragraphing and style. Also the main
objective of this lab is to enable students use any kind of feature in MS Word.

Tools:
Microsoft Word

Description:
Microsoft word is the most powerful tool to make reports now a days. In every profession, this
tool is used in making any sort of report whether it is a report, letter or any other document.
A technical report (also scientific report) is a document that describes the process, progress, or
results of technical or scientific research or the state of a technical or scientific research problem.
It might also include recommendations and conclusions of the research. Unlike other scientific
literature, such as scientific journals and the proceedings of some academic conferences, technical
reports rarely undergo comprehensive independent peer review before publication. They may be
considered as grey literature. Where there is a review process, it is often limited to within the
originating organization. Similarly, there are no formal publishing procedures for such reports,
except where established locally.
Lab manual is the document used in many universities, industries for the purpose of following the
proper procedure of any technical work. Many industries makes working manuals of their
machines. In the same way, universities make lab manuals of respected subjects to make students
perform their practical work.

25
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

In Lab Tasks:
1) Pick up any technical report from the internet and type it in Microsoft word by making exact
copy of it
2) Learn how to put citations in your report and make citations using any website from the internet
and put those citations at the end of technical report
3) Make a lab manual provided by your instructor

Post Lab Tasks:


1) Make any lab manual more than 50 pages long

26
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

AIR UNIVERSITY
DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING

EXPERIMENT NO 9

Lab Title: Disassemble Of Computer System

Student Name: Reg. No:

Objective:

LAB ASSESSMENT:

Excellent Good Average Satisfactory Unsatisfactory


Attributes
(5) (4) (3) (2) (1)
Ability to Conduct
Experiment
Ability to assimilate the
results
Effective use of lab
equipment and follows the
lab safety rules

Total Marks: Obtained Marks:

LAB REPORT ASSESSMENT:


Excellent Good Average Satisfactory Unsatisfactory
Attributes
(5) (4) (3) (2) (1)

Data presentation

Experimental results

Conclusion

Total Marks: Obtained Marks:

Date: Signature:

27
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

Lab#09

Disassemble Of Computer System


Objective:
This lab is designed to make students identify different parts of a computer system, their
functionality, plus optimized and efficient ways of organizing computer systems

Tools:
 Computer System

Description:
As we know that in modern world, a computer system is the base of every new and emerging
technology. So it is very important to know about the computer system and its parts.

How to Disassemble a Computer?


 Unplugging. Unplug ever cable that is connected to the computer
 The Casing. After your computer is unplugged move to a clean working space, preferably a
table
 Unplug The Power Supply
 Remove CD/DVD Drive
 Remove System Fan
 Remove CPU Fan
 Remove Hard Drive and Floppy Disk
 Remove The Power Switch.

In Lab Tasks:
28
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING
Disassemble the parts of computer system in groups of three. The parts to remove are power
supply, fan, hard disk, and RAM.

Post Lab Tasks:


Make a report of this lab in which explain the working of all the parts of computer system like
processor, RAM, Hard disk, fan etc

29
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING
AIR UNIVERSITY
DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING

EXPERIMENT NO 10

Lab Title: Assemble Computer System


Student Name: Reg. No:

Objective:

LAB ASSESSMENT:

Excellent Good Average Satisfactory Unsatisfactory


Attributes
(5) (4) (3) (2) (1)
Ability to Conduct
Experiment
Ability to assimilate the
results
Effective use of lab
equipment and follows the
lab safety rules

Total Marks: Obtained Marks:

LAB REPORT ASSESSMENT:


Excellent Good Average Satisfactory Unsatisfactory
Attributes
(5) (4) (3) (2) (1)

Data presentation

Experimental results

Conclusion

Total Marks: Obtained Marks:

Date: Signature:

30
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

Lab#10

Assemble Computer System

Objective:
This lab is designed to make students understand the working of computer system along with self
assembling of different parts of computer system

Tools:
 Computer System

Description:
Assembling of computer system is easy once you know about the parts of computer, their working,
and if you have disassembled it by your self.
Following is the way in which you can assemble parts of computer system. Remember assembling
of computer system doesn’t follow the order in which you disassembled it.
 Put Hard Disk
 Place RAM
 Place fan in its position
 Place the power switch
 Now on the system by putting plug

In Lab Tasks:

31
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING
1. Assemble all the parts of your computer system which you disassembled in the previous lab
2. Check each and every part as if all the parts are correctly placed
3. Verify the functionality of RAM and hard disk by powering on the system

Post Lab Tasks:


1. Make a report of this lab and explain the learning points in this lab
2. Explain why cache memory is used along with Hard disk
3. Explain what is clock speed
4. Does processor has greater speed than RAM? If yes then why?

32
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING
AIR UNIVERSITY
DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING

EXPERIMENT NO 11

Lab Title: Installing Linux Operating System


Student Name: Reg. No:

Objective:

LAB ASSESSMENT:

Excellent Good Average Satisfactory Unsatisfactory


Attributes
(5) (4) (3) (2) (1)
Ability to Conduct
Experiment
Ability to assimilate the
results
Effective use of lab
equipment and follows the
lab safety rules

Total Marks: Obtained Marks:

LAB REPORT ASSESSMENT:


Excellent Good Average Satisfactory Unsatisfactory
Attributes
(5) (4) (3) (2) (1)

Data presentation

Experimental results

Conclusion

Total Marks: Obtained Marks:

Date: Signature:

33
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

Lab#11

Installing Linux Operating System

Objective:
This lab is designed to make students understand the very important operating system (Linux)
widely used in industries.

Tools:
 Ubuntu Setup
 Rufus

Description:
Linux is the best-known and most-used open source operating system. As an operating system,
Linux is software that sits underneath all of the other software on a computer, receiving requests
from those programs and relaying these requests to the computer’s hardware.
In many ways, Linux is similar to other operating systems you may have used before, such as
Windows, OS X, or iOS. Like other operating systems, Linux has a graphical interface, and types
of software you are accustomed to using on other operating systems, such as word processing
applications, have Linux equivalents. In many cases, the software’s creator may have made a Linux
version of the same program you use on other systems. If you can use a computer or other
electronic device, you can use Linux.
But Linux also is different from other operating systems in many important ways. First, and
perhaps most importantly, Linux is open source software. The code used to create Linux is free
and available to the public to view, edit, and—for users with the appropriate skills—to contribute
to.
Linux is also different in that, although the core pieces of the Linux operating system are generally
common, there are many distributions of Linux, which include different software options. This
means that Linux is incredibly customizable, because not just applications, such as word
processors and web browsers, can be swapped out. Linux users also can choose core components,
such as which system displays graphics, and other user-interface components.

34
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING
How To Install Linux OS?
 Download the .iso or the OS files on your computer.
 Download free software like ‘Universal USB installer or Rufus’ to make a bootable USB
stick.
 Select an Ubuntu Distribution form the drop down to put on your USB.
 Click YES to Install Ubuntu in USB.
 Reboot your system and press boot button to pick USB
 Boot in your USB
 Now follow the intructions which Linux installer will give you and install Linux in your
system

In Lab Tasks:
1. Install Linux OS in computer along with windows OS
2. Understand the command line console in Linux
3. Install python OS in linux and simply write a code of Hello World in it

Post Lab Tasks:


Make a report about what you learned in this lab

AIR UNIVERSITY
DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING

35
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING
EXPERIMENT NO 12

Lab Title: Introduction To Scripting Languages


Student Name: Reg. No:

Objective:

LAB ASSESSMENT:

Excellent Good Average Satisfactory Unsatisfactory


Attributes
(5) (4) (3) (2) (1)
Ability to Conduct
Experiment
Ability to assimilate the
results
Effective use of lab
equipment and follows the
lab safety rules

Total Marks: Obtained Marks:

LAB REPORT ASSESSMENT:


Excellent Good Average Satisfactory Unsatisfactory
Attributes
(5) (4) (3) (2) (1)

Data presentation

Experimental results

Conclusion

Total Marks: Obtained Marks:

Date: Signature:

36
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

Lab#12

Introduction To Scripting Languages

Objective:
This lab is made to make students know about the basic difference between scripting and
programming languages and usage of scripting languages

Tools:
 Python3.7

Description:
All scripting languages are programming languages. The scripting language is basically a language
where instructions are written for a run time environment. They do not require the compilation
step and are rather interpreted. It brings new functions to applications and glue complex system
together. A scripting language is a programming language designed for integrating and
communicating with other programming languages.
There are many scripting languages some of them are discussed below:

bash: It is a scripting language to work in the Linux interface. It is a lot easier to use bash to create
scripts than other programming languages. It describes the tools to use and code in the command
line and create useful reusable scripts and conserve documentation for other people to work with.
Node js: It is a framework to write network applications using JavaScript. Corporate users of
Node.js include IBM, LinkedIn, Microsoft, Netflix, PayPal, Yahoo for real-time web applications.
Ruby: There are a lot of reasons to learn Ruby programming language. Ruby’s flexibility has
allowed developers to create innovative software. It is a scripting language which is great for web
development.
Python: It is easy, free and open source. It supports procedure-oriented programming and object-
oriented programming. Python is an interpreted language with dynamic semantics and huge lines
of code are scripted and is currently the most hyped language among developers.

37
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING
Perl: A scripting language with innovative features to make it different and popular. Found on all
windows and Linux servers. It helps in text manipulation tasks. High traffic websites that use Perl
extensively include priceline.com, IMDB.

Difference Between Programming Languages and Scripting Languages:


Basically, all scripting languages are programming languages. The theoretical difference between
the two is that scripting languages do not require the compilation step and are rather interpreted.
For example, normally, a C program needs to be compiled before running whereas normally, a
scripting language like JavaScript or PHP need not be compiled.

Generally, compiled programs run faster than interpreted programs because they are first converted
native machine code. Also, compilers read and analyze the code only once, and report the errors
collectively that the code might have, but the interpreter will read and analyze the code statements
each time it meets them and halts at that very instance if there is some error. In practice, the
distinction between the two is getting blurred owing to improved computation capabilities of the
modern hardware and advanced coding practices.

Another point to be noted is that while classifying a language as scripting language or


programming language, the environment on which it would execute must be taken into
consideration. The reason why this is important is that we can design an interpreter for C language
and use it as a scripting language, and at the same time, we can design a compiler for JavaScript
and use it as a non-scripting(compiled language). A live example of this is V8, the JavaScript
engine of Google Chrome, which compiles the JavaScript code into machine code, rather than
interpreting it.

Applications of Scripting Languages :


1. To automate certain tasks in a program
2. Extracting information from a data set

In Lab Tasks:
Install python3.7 in computer and write the following programs:

38
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING
1) Take two numbers as integer and perform summation, subtraction, multiplication and division
on those variables
2) Take input of two numbers and perform addition, subtraction, multiplication, and division on
those variable and show their output

Post Lab Tasks:


1) Learn about the if else condition in python and solve any program you want and show its output
in report

39
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

AIR UNIVERSITY
DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING

EXPERIMENT NO 13

Lab Title: Basic Programming In Python

Student Name: Reg. No:

Objective:

LAB ASSESSMENT:

Excellent Good Average Satisfactory Unsatisfactory


Attributes
(5) (4) (3) (2) (1)
Ability to Conduct
Experiment
Ability to assimilate the
results
Effective use of lab
equipment and follows the
lab safety rules

Total Marks: Obtained Marks:

LAB REPORT ASSESSMENT:


Excellent Good Average Satisfactory Unsatisfactory
Attributes
(5) (4) (3) (2) (1)

Data presentation

Experimental results

Conclusion

Total Marks: Obtained Marks:

Date: Signature:

40
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING

Lab#13

Basic Programming In Python

Objective:
This lab is designed to make students understand the basic syntax of python and solve some of the
basic level programs in python.

Tools:
 Python3.7

Description:-
Python is an interpreted, high-level, general-purpose programming language. Created by Guido
van Rossum and first released in 1991, Python's design philosophy emphasizes code readability
with its notable use of significant whitespace.

It is used for:

 web development (server-side),


 software development,
 mathematics,
 system scripting.

What can Python do?

 Python can be used on a server to create web applications.


 Python can be used alongside software to create work flows.
 Python can connect to database systems. It can also read and modify files.
 Python can be used to handle big data and perform complex mathematics.
 Python can be used for rapid prototyping, or for production-ready software development

41
AIR UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING
Why Python?
1) Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).
2) Python has a simple syntax similar to the English language.
3) Python has syntax that allows developers to write programs with fewer lines than some other
programming languages.
4) Python runs on an interpreter system, meaning that code can be executed as soon as it is written.
This means that prototyping can be very quick.
5) Python can be treated in a procedural way, an object-orientated way or a functional way.

In Lab Tasks:-
1) Find the largest number among the 3 numbers enter by the used
2) Any integer number is input by the user. Write a program to find out whether it is an even
number or odd number
3) Write a program to check whether a number is positive, negative or zero

Post Lab Tasks:-


1) Make a complete report about describing the advantages of using python over C++

42

Potrebbero piacerti anche