0% found this document useful (0 votes)
3 views19 pages

Programming Fundamentals Lec 1

Uploaded by

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

Programming Fundamentals Lec 1

Uploaded by

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

Programming

Fundamentals
Comp 102 F
(T R 15:30 - 16:45) (Lab T 8:00-10:50)
Office: S426-A
Learning Objectives

• Use of computer to solve complex problems


• General problem-solving skills
• Develop moderate to large software
• Become aware of the latest technology in industry
Course Contents
• Building blocks of programming
• Organize large software
• Algorithms to writing efficient software
• Libraries to write software quickly
Course Contents
• Building blocks of programming

▶ variables, conditions, loops, functions etc
• Organize large software

▶ Object oriented programming, Inheritance
• Algorithms to writing efficient software

▶ Recursion, sorting, searching etc
• Libraries to write software quickly

▶ Turtle, Tkinter, Data visualization, Software testing etc.
Aspects of Programming
What is Programming?
What is Programming?

Answer:
• Very high processing speed
• Huge memory
• High accuracy
• Doesn’t get tired
Computers have
limitations

• Computers are stupid


• They do exactly what you
tell them to do
• Computers are not creative
• They can’t think of new
ways to solve problems
Programatic Thinking

• Commands Available:
forward()
move forward 1 step
• Goal:
Get the cup

• Solution:
• 1 forward()
• 2 forward()
• 3 forward()
• Commands Available:
forward()
move forward 1 step
left()
turn left 90ᵒ
• Solution:
• 1 forward()
• 2 forward()
• 3 forward()
• 4 left()
• 5 forward()
• 6 forward()
• Commands Available:
forward() ×1
repeat n: ×1
repeats commands n
times
• Solution:
1 repeat 5:
2 forward()
Repeat
comma
nd
Syntax
You Try:
• Commands Available:
forward() ×2
left() ×1
repeat n: ×2
Summary
Summary
• Programming is giving instructions to a computer to
perform tasks.
• Computers are stupid and not creative.
• Programmatic thinking is breaking down a problem into
smaller steps.
• Commands are used to instruct the computer.
Don’t forget the Homework!

You might also like