Professional Documents
Culture Documents
2. Clothing:
Shorts and sandals should not be worn in the lab at any time. Shoes are required when
working in the machine shops.
If you have long hair or loose clothes, make sure it is tied back or confined.
Keep the work area clear of all materials except those needed for your work.
3. Equipment Failure:
If a piece of equipment fails while being used, report it immediately to Lab
Engineer/Assistant. Never try to fix the problem yourself because you could harm
yourself and others.
If leaving a lab unattended, turn off all ignition sources and lock the doors.
Clean up your work area before leaving.
4. Electrical safety:
Obtain permission by the safety coordinator before operating any high voltage equipment
Maintain an unobstructed access to all electrical panels.
Avoid using extension cords whenever possible.
Never, ever modify or otherwise change any high voltage equipment.
5. Fire
: If a person’s clothing catches on fire, he/she needs help.
Prevent him/her from running.
M n and smother the flames by rolling, wrapping with lab coats, blankets,
a towels, etc.
k
Never turn a carbon dioxide extinguisher on a person.
e
h If a fire breaks out, (if time allows) turn off all burners and remove solvents, place
i the chemical and equipment safely to the nearest possible table/bench, exit the
m building calmly.
/
h If you do not use the fire extinguisher, leave the room immediately to a safer
e place possibly outside. There are carbon dioxide extinguishers in the building and
r the positions and operation of these should be known.
li
Point the extinguisher at the base of the flames.
e
d Very small fires can be put out with a damp towel by smothering.
o
w Only after the safety of all is assured should the matter of extinguishing the fire be
considered.
Because a few seconds delay can result in very serious injury, Laboratory staff will guide you on
what to do and how to exit during the case of such an emergency.
6. In Case of emergency
Report the location of the emergency; give your name, telephone number, and
building and floor number.
Report the nature of the emergency whether an explosion has occurred and
whether there has been a chemical or electrical fire.
RESCUE: 1122
Police Emergency Control Room: 041-9200264
Army Control Room: 1135
Administrator: 041-8777210
Safety Undertaking
Date:
Lab Instructor:
II. Grading Policy
Lab Performance 20%
Lab Report 10%
Lab Project 20%
Final Lab Viva/ Performance 50%
Rubrics
Lab Performance (Continuous Assessment)
S
r.
# Performance
Exemplary (5) Satisfactory (4-3) Developing(2-1) Unsatisfactory (0)
Indicator
Fully understand the Has very good Has some Has poor
lab instruments understanding of the understanding of the understanding of the
including its lab instruments lab instruments lab instruments
purpose and quite including its purpose including its purpose including its
Ability to able to conduct the and able to conduct and able to conduct purpose and unable
1 entire experiment experiment with to conduct
Conduct experiment with many
Experiment with negligible help some help from lab help from lab experiment on his
from lab instructor. instructor. instructor. own; lab instructor.
Responsiveness to Responds well, quick Generally responsive Responsive but evasive Non-responsive.
Questions / and very accurate all and accurate most of or inaccurate most of the
Accuracy the time. the times. times.
1
Level of Description
inquiry
The problem, procedure, and methods to solutions are provide to the Student.
0 The student performs the experiment and verifies the results with the manual.
The problem and procedure are provide to the student. The student
1 Interprets the data in order to propose viable solutions.
The problem is provide to the student. The student develops a procedure for
2 investigating the problem, decides what data to gather, and interprets the data
in order to propose viable solutions.
1 Installation of IDEs
Task 1: Installation Of Python IDE,
Task 2: How to start with jupyter installation
Task 3: Implementing Distance formula & Pythagoras theorem.
2 Write a program that
prints out the decimal equivalents of 1/2, 1/3, 1/4, 1/10.
using a for loop that loops over a sequence.
Interpreter and Sum of 2 Numbers On CMD Using Python
Language.
3 Working with data types:
Defining variables with assignment operator “=”.
Create variables with different data types.
Using type() function to determine data types.
Compare variables with comparison operator “==”.
Convert variable from one data type to another.
Work with integers, floats & complex numbers.
Understand the Boolean data type and implement
AND,NOT,OR,XOR & NAND tables using Boolean logic.
While loop, Continue-Break & if else statements in Python.
4 Introduction to Lists:
Write a Python program to sum all the items in a list.
Write a Python program to get the smallest number from a list.
Write a Python program to map two lists into a dictionary.
5 Introduction to Tuple:
Write a Python program to convert a list to a tuple.
Write a Python program calculate the product, multiplying all the
Department of Electrical Engineering
The University of Faisalabad.
numbers of a given tuple.
6 Introduction to Strings:
Write a Python program to count the number of strings where the
string length is 2 or more and the first and last character are same
from a given list of strings.
Write a Python program to create a dictionary from a string.
7 Working With For Loops:
Write a Python program to iterate over dictionaries using for loops
8 Write a Python program to generate a 3*4*6 3D array whose each
element is *.
9 Write a Python program to find maximum and the minimum value in a
set.
1 Working with NumPy.
0
1 OOP in Python, Working with Classes:
1 Create a Car class with two instance attributes.
1. .color , which stores the name of the car’s color as a string.
2. .mileage ,which stores the number of miles of the car as an
integer.
1 Sorting techniques implementation in Python.
2 Implementation of
Bubble Sort
Selection Sort
Insertion Sort
Shell Sort
1 Open Ended Lab
3 Task: To develop a program in python to get a certain process that output
a number after doing comparison among three different loops based on
user defined logic.
You have to write the code for calling that process through a function
method. Once called your function method should be able to complete
above procedure and also find time complexity of the program.
Department of Electrical Engineering
The University of Faisalabad.
Objectives:
Task 1: Installation Of Python IDE,
Task 2: How to start with jupyter installation
Task 3: Implementing Distance formula & Pythagoras theorem.
RUBRICS
Performance Lab
Report
Description Total Marks Description Total Marks
Marks Obtained Marks Obtained
Experiment 10 Organization/Structure 05
Related
Knowledge
Data 10 Data Presentation 05
analysis
Total Marks
Obtained
When I can download the Pycharm then I can start the Installation. I click the next button.
Enter the following code in IDE and put some space before x2 in line 3.
To remove this error remove the space before x2 and write the code in the same alignment.
Department of Electrical Engineering
The University of Faisalabad.
Task No 02: How to start with Jupyter Installation.
Procedure:
Firstly I download anaconda.
To download anaconda open chrome and type anaconda .
A link shown in a figure1.1
Fig 1.2
Click on produts showing in fig 1.2 and then click on individual product
showing in fig 1.3
Department of Electrical Engineering
The University of Faisalabad.
Fig 1.3
Click on individual edition and then click on download showing in fig 1.4
Fig 1.4
A new page shown in fig 1.5
Click on 64 bit graphicall installer and download anaconda
Department of Electrical Engineering
The University of Faisalabad.
Fig 1.5
Objectives:
Write a program that
Prints out the decimal equivalents of 1/2, 1/3, 1/4, 1/10.
Using a for loop that loops over a sequence.
Interpreter and Sum of 2 Numbers On CMD Using Python Language.
RUBRICS
Performance Lab
Report
Description Total Marks Description Total Marks
Marks Obtained Marks Obtained
Experiment 10 Organization/Structure 05
Related
Knowledge
Data 10 Data Presentation 05
analysis
Total Marks
Obtained
Task No 01: Using a for loop, write a program that prints out the decimal
equivalents of 1/2, 1/3, 1/4, 1/10.
Procedure:
Enter the following code in IDE.
Procedure:
Enter the following code in IDE.
When cmd window open we write the file name as we save sum.py.
Now, input the values as we want to sum. They will give output.
Department of Electrical Engineering
The University of Faisalabad.
Objectives:
Defining variables with assignment operator “=”.
Create variables with different data types.
Using type() function to determine data types.
Compare variables with comparison operator “==”.
Convert variable from one data type to another.
Work with integers, floats & complex numbers.
Understand the Boolean data type and implement
AND,NOT,OR,XOR & NAND tables using Boolean logic.
While loop, Continue-Break & if else statements in Python.
RUBRICS
Performance Lab
Report
Description Total Marks Description Total Marks
Marks Obtained Marks Obtained
Experiment 10 Organization/Structure 05
Related
Knowledge
Data 10 Data Presentation 05
analysis
Total Marks
Obtained
Procedure:
Enter the following code in IDE.
Department of Electrical Engineering
The University of Faisalabad.
Gates in Python:
AND gate:
Department of Electrical Engineering
The University of Faisalabad.
Procedure:
Enter the following code in IDE.
def AND (a, b):
if a == 1 and b == 1:
return True
else:
return False
# Driver code
if __name__=='__main__':
print(AND(1, 1))
print("+---------------+----------------+")
print(" | AND Truth Table | Result |")
print(" A = False, B = False | A AND B =",AND(False,False)," | ")
print(" A = False, B = True | A AND B =",AND(False,True)," | ")
print(" A = True, B = False | A AND B =",AND(True,False)," | ")
print(" A = True, B = True | A AND B =",AND(True,True)," | ")
Now run the code.
OR gate:
Department of Electrical Engineering
The University of Faisalabad.
Procedure:
Enter the following code in IDE.
NOT gate:
Procedure:
Department of Electrical Engineering
The University of Faisalabad.
Enter the following code in IDE.
NAND gate:
Procedure:
Department of Electrical Engineering
The University of Faisalabad.
Enter the following code in IDE.
XOR gate:
Procedure:
Department of Electrical Engineering
The University of Faisalabad.
Enter the following code in IDE.
Objectives:
Write a Python program to sum all the items in a list.
Write a Python program to get the smallest number from a list.
Write a Python program to map two lists into a dictionary.
RUBRICS
Performance Lab
Report
Description Total Marks Description Total Marks
Marks Obtained Marks Obtained
Experiment 10 Organization/Structure 05
Related
Knowledge
Data 10 Data Presentation 05
analysis
Total Marks
Obtained
Task No 01: Write a Python program to sum all the items in a list.
Department of Electrical Engineering
The University of Faisalabad.
Procedure:
Enter the following code in IDE.
Task No 02: Write a Python program to get the smallest number from a list.
Procedure:
Enter the following code in IDE.
Department of Electrical Engineering
The University of Faisalabad.
Task No 03: Write a Python program to map two lists into a dictionary.
Procedure:
Enter the following code in IDE.
Department of Electrical Engineering
The University of Faisalabad.
RUBRICS
Performance Lab
Report
Description Total Marks Description Total Marks
Marks Obtained Marks Obtained
Experiment 10 Organization/Structure 05
Related
Knowledge
Data 10 Data Presentation 05
analysis
Total Marks
Obtained
Procedure:
Enter the following code in IDE.
Department of Electrical Engineering
The University of Faisalabad.
Task No 02: Write a Python program calculate the product, multiplying all the
numbers of a given tuple.
Procedure:
Enter the following code in IDE.
Department of Electrical Engineering
The University of Faisalabad.
RUBRICS
Performance Lab
Report
Description Total Marks Description Total Marks
Marks Obtained Marks Obtained
Experiment 10 Organization/Structure 05
Related
Knowledge
Data 10 Data Presentation 05
analysis
Total Marks
Obtained
Task No 01: Write a Python program to count the number of strings where the string
length is 2 or more and the first and last character are same from a given
list of strings.
Procedure:
Department of Electrical Engineering
The University of Faisalabad.
Enter the following code in IDE.
Procedure:
Enter the following code in IDE.
Department of Electrical Engineering
The University of Faisalabad.
Objectives:
Write a Python program to iterate over dictionaries using for loops.
RUBRICS
Performance Lab
Report
Description Total Marks Description Total Marks
Marks Obtained Marks Obtained
Experiment 10 Organization/Structure 05
Related
Knowledge
Data 10 Data Presentation 05
analysis
Total Marks
Obtained
Procedure:
Enter the following code in IDE.
Department of Electrical Engineering
The University of Faisalabad.
Objectives:
Write a Python program to generate a 3*4*6 3D array whose each element is
*.
RUBRICS
Performance Lab
Report
Description Total Marks Description Total Marks
Marks Obtained Marks Obtained
Experiment 10 Organization/Structure 05
Related
Knowledge
Data 10 Data Presentation 05
analysis
Total Marks
Obtained
Procedure:
Enter the following code in IDE.
Department of Electrical Engineering
The University of Faisalabad.
Objectives:
Write a Python program to find maximum and the minimum value in a set.
RUBRICS
Performance Lab
Report
Description Total Marks Description Total Marks
Marks Obtained Marks Obtained
Experiment 10 Organization/Structure 05
Related
Knowledge
Data 10 Data Presentation 05
analysis
Total Marks
Obtained
Procedure:
Enter the following code in IDE.
Department of Electrical Engineering
The University of Faisalabad.
Objectives:
Implementing Num.Py
RUBRICS
Performance Lab
Report
Description Total Marks Description Total Marks
Marks Obtained Marks Obtained
Experiment 10 Organization/Structure 05
Related
Knowledge
Data 10 Data Presentation 05
analysis
Total Marks
Obtained
Procedure:
Enter the following code in IDE.
Department of Electrical Engineering
The University of Faisalabad.
Department of Electrical Engineering
The University of Faisalabad.
Department of Electrical Engineering
The University of Faisalabad.
Department of Electrical Engineering
The University of Faisalabad.
Department of Electrical Engineering
The University of Faisalabad.
Objectives:
Create a Car class with two instance attributes.
.Car , which stores the name of the car’s name as a string
.Color , which stores the name of the car’s color as a string.
.miles ,which stores the number of miles of the car covered as an integer.
RUBRICS
Performance Lab
Report
Description Total Marks Description Total Marks
Marks Obtained Marks Obtained
Experiment 10 Organization/Structure 05
Related
Knowledge
Data 10 Data Presentation 05
analysis
Total Marks
Obtained
Objectives:
Implementation of
Bubble Sort
Selection Sort
Insertion Sort
Shell Sort
RUBRICS
Performance Lab
Report
Description Total Marks Description Total Marks
Marks Obtained Marks Obtained
Experiment 10 Organization/Structure 05
Related
Knowledge
Data 10 Data Presentation 05
analysis
Total Marks
Obtained
Procedure:
Enter the following code in IDE.
Procedure:
Enter the following code in IDE.
Procedure:
Enter the following code in IDE.
Procedure:
Enter the following code in IDE.
Objectives:
To develop a program in python to get a certain process that output a
number after doing comparison among three different loops based on user
defined logic.
You have to write the code for calling that process through a function
method. Once called your function method should be able to complete above
procedure and also find time complexity of the program.
RUBRICS
Performance Lab
Report
Description Total Marks Description Total Marks
Marks Obtained Marks Obtained
Experiment 10 Organization/Structure 05
Related
Knowledge
Data 10 Data Presentation 05
analysis
Total Marks
Obtained
def minimum_number():
list1 = []
for i in range(0,250):
import random
n1 = random.randint(0,250)
#print(n)
list1.append(n1)
print ("Random list 1: ",list1)
list2 = []
for j in range(0,250):
import random
n2 = random.randint(0, 250)
# print(n)
list2.append(n2)
print ("Random list 2: ",list2)
list3 = []
for k in range(0,250):
import random
n3 = random.randint(0, 250)
# print(n)
list3.append(n3)
print ("Random list 3: ",list3)
list_f = []
ent = int(input("Enter the index number : "))
list_f.append(list1[ent])
list_f.append(list2[ent])
list_f.append(list3[ent])
print (" ")
print("This is the most Smallest value of required index number : ",
min(list_f))
print("Done")
print (" ")
print (minimum_number())
Department of Electrical Engineering
The University of Faisalabad.
Now run the code.