0% found this document useful (0 votes)
23 views

PF Week1

This document provides an introduction and overview for a Programming Fundamentals course being taught in Spring 2023. It outlines the instructor, contact hours, evaluation criteria, classroom etiquette, academic offences and plagiarism policies. It also introduces why Python is a useful programming language to learn and what programming and bugs are. Finally, it previews installing Python and hello world programs.

Uploaded by

laibazafar1111
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)
23 views

PF Week1

This document provides an introduction and overview for a Programming Fundamentals course being taught in Spring 2023. It outlines the instructor, contact hours, evaluation criteria, classroom etiquette, academic offences and plagiarism policies. It also introduces why Python is a useful programming language to learn and what programming and bugs are. Finally, it previews installing Python and hello world programs.

Uploaded by

laibazafar1111
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/ 32

WELCOME TO

PROGRAMMING
FUNDAMENTALS

SPRING (2023)
Lecture 1 &2
7TH March, 2024

Instructor: Dr Faiza Iftikhar


Introduction
2

Contact Hours
Credit Hours: 3(2,1)

Lectures: Dr Faiza Iftikhar


◦ BEII (2023-2027)
◦ Section A: Monday: 10:00am-12:00pm (2hrs)
◦ Section B: Friday: 9:00am-11:00pm (2hrs)
email: [email protected]
Lab: Dr Faiza Iftikhar
◦ BEII (2022-2026)
◦ Section A: Thursday: 8:00am-11:00am (3hrs)
◦ Section B: 11:00am-2:00pm (3hrs)
Google group link:
● https://classroom.google.com/c/NjA2NTE5MzMyMzA2?cjc=3jjg3
3e

2
Introduction
3

Let us start…

3
Introduction
4

Classroom Etiquette
All laptop computers, cell phones, tablet
computers must be closed during all classroom
hours
Introduction
5

Evaluation
Your evaluation in this course is based on four
components:
◦ One mid-term examination
◦ One final examination
◦ Assignments
◦ Quizes
Introduction
6

Evaluation
Commenting code is necessary for engineers:
◦ Engineers who do not comment code will not encourage
employees and contracted programmers to comment
their code.
◦ This will lead to significant additional costs.

The commenting bonus occurs at the end of the


term.
Introduction
7

Improving Your Performance


The human brain can retain approximately 5-9
independent items of information in its short-term
memory
George Miller, The Magical Number Seven, Plus or Minus
Two: Some Limits on Our Capacity for Processing
Information, Psychological Review, Vol.63 pp.81–97, 1956

The introduction of new information causes the brain


to discard an item currently in your short-term
memory
◦ For example, consider the 12 words which will appear on the
next sequence of screens

Your goal: at the end, write down all twelve words


Introduction
8

Improving Your Performance


Consider now, the following 16 words:
resistor Microsoft inductor Oracle
Sun diode glass capacitor
knife DEC IBM Google
plate transistor fork SAP

If you notice the relationship, you have a much


better chance of remembering these, as there are
only three ideas
Introduction
9

Improving Your Performance


To transfer information from your short-term
memory to your long-term memory, that
information must be imposed on your mind at least
three times

You should always try the following:


◦ Attend lectures
● You see the information again with commentary
◦ Review the lecture during the evening
● Rewrite and summarize the slides in your words
Introduction
10

Academic Offences
Academic Offences include, but are not limited to:
◦ Infringing unreasonably on the work of other members
● E.g., disrupting classes
◦ Cheating
◦ Plagiarism
◦ Misrepresentations
Introduction
11

Plagiarism
Collaboration with other students must be limited
to
◦ Discussions
◦ High-level pseudocode
◦ Assistance with debugging (only through the offering of
advice)
◦ Sharing test files

All such collaborations must be documented in


your source code
Introduction
12

Plagiarism
When one student copies from another
student, both students are responsible
◦ Exceptions are made for outright theft

The penalty for plagiarism on a Project is a


mark of 0 on the project in question and a
further 5% is subtracted from your final grade
◦ Regardless if Projects are counted or not
Introduction
13

Distribution of Information
Information may be pass to the class through one
of two media:
◦ An announcement in class,
◦ Google or WhatsApp group
◦ An e-mail to CR
Introduction
14

Course learning Outcomes


PLO
Sr. Taxonomy mapping
CLO Statement
# Level

Build logic of a program, design an algorithm and make a flow C2 3


chart to represent the solution of problem.
1

Design and Implement the solution of problem using loops, C2 3


2 arrays, functions, structures.

Analyze different programs to compute the output and identify C3 2


3 logical and syntax errors.
Introduction
15

Python Programming Books


Text Books
1. Practical Programming: Introduction to computer
sciences by Jenefer Campbell (Text Book)
2. Python Programming: Introduction to computer
sciences by John Zelle (Text Book)
Reference Books
1. Think Python
2. Python Notes for Professionals
Note:
Uploaded on the google group.
Introduction
16

Why Python?
Python is a particularly lucrative
programming language

16
Introduction
17

Why Python?
Python is used in machine learning &
artificial intelligence, fields at the
cutting-edge of tech
◦ Self-driving cars — Volkswagen
◦ Banking — JPMorgan Chase
◦ Healthcare — Philips
◦ Computer vision — Panasonic
◦ Cybersecurity — Palo Alto Networks
◦ Emotion detection — Affectiva
◦ Training — Deep learning

17
Introduction
18

Why Python?
Python is simply structured and easy to
learn

18
Introduction
19

Why Python?
Python has a really cool best friend: data
science

Fraud and Risk Detection


Healthcare
Internet Search
Targeted Advertising
Website Recommendations
Advanced Image Recognition
Speech Recognition
Airline Route Planning
Gaming

19
Introduction
20

Why Python?
Python creates amazing graphics

20
Introduction
21

Why Python?
There are countless free resources
available to Python programming
newbies

21
Introduction
22

What’s Programming?

22
Introduction
23

Programs and Programming


Conceptualizing, not programming.
A way that humans, not computers, think.
For everyone, everywhere.

23
Introduction
What’s a Programming 24

Language?
Every programming language has a way to
write mathematical expressions, repeat a list
of instructions a number of times, choose
which of two instructions to do based on the
current information you have, and much
more. In this book, you’ll learn how to do
these things in the Python programming
language. Once you understand Python,
learning the next programming language will
be much easier.

24
Introduction
25

What’s a Bug?
The people who wrote the program told the
computer to do something it couldn’t do:
open a file that didn’t exist
keep track of more information than the
computer could handle
repeat a task with no way of stopping other
than by rebooting the computer
some bugs don’t cause a crash; instead, they
give incorrect information

25
Introduction
26

Installing Python
BEII 2021-2025 (google.com)

26
Chapter 2

Hello, Python

27
Introduction
How Does a Computer Run a 28

Python Program?

28
Introduction
29

Data Types

29
Introduction
30

Arithmetic Operators

30
Introduction
31

Operator Precedence

31
Introduction
32

32

You might also like