7 Li Homwark it}
M
g: {(327)6[l/ XXOZ "\9 0+4 SUB/Una
ff;- (!,0)éS J (0,069 ) Add (Aw-Mo,» 41.x) 64$.
RINS- (drapery?
w s; way/maa)! Hummi
Tlfs R a 3M£$flrcce.
if; n m m mm) )5 Is {00:0 bye/e.
mzo£m)w
5: 53, 6S-
3) For jés w: Law, 'P({)=7C/2)é§rj(/)f3{9

APSC 174J - Homework #3
Posted: Wednesday March 13, 2012
Instructor: C. Weatherby
Winter/Spring 2012
Read: Sections 3 and 4 from the lecture notes as well as sections 1.3 and 1.4 from
the textbook.
Try the following problems for practice. Solutions will b

APSC 174J - Homework #2
Posted: Thursday March 8, 2012
Instructor: C. Weatherby
Winter/Spring 2012
Read: Section 2 from the lecture notes as well as sections 1.1 and 1.2 from the
textbook.
Try the following problems for practice. Solutions will be posted

APSC 174J - Homework #1
Posted: Thursday March 1, 2012
Instructor: C. Weatherby
Winter/Spring 2012
Read: Sections 0 and 1 from the lecture notes.
Try the following problems for practice. Solutions will be posted next week after
youve had a chance to try t

APSC 142 COMPUTER PROGRAMMING FOR
ENGINEERS
LECTURE 2 VARIABLES AND
DISPLAYS
Dr. E. Morin, P.Eng.
Dept. of Electrical & Computer Engineering
W2014
Lecture slides adopted from Dr. A. Afsahi and Dr. K. Rudie
Lecture Outline
Data Types, Variables and Declar

APSC142 COMPUTER PROGRAMMING FOR
ENGINEERS W2014
LECTURE 11
NUMERICAL METHODS II
Dr Evelyn Morin
Dept of Electrical & Computer Engineering
Queens University
APSC 142 this week
Lecture:
Solving systems of linear equations using Gaussian elimination
Lab:

APSC 142 INTRODUCTION TO COMPUTER
PROGRAMMING FOR ENGINEERS
W2014
FUNCTIONS
Dr. E. Morin, P. Eng.
Dept of Electrical & Computer Engineering
Lecture Outline
Functions
Types of Functions
Function Declaration, Call and Definition
Program Flow with Functi

APSC 142 Introduction to Computer
Programming for Engineers
W2014
Lecture 8
Starting your Project:
Software Design and Development
Lecture material prepared by:
B. Nabulsi, K. Rudie, T. Dean, H. Abou-zeid. A. Afsahi
& E. Morin
1
This Week in APSC 142
In

APSC 142 Introduction to Computer
Programming for Engineers
W2014
Lecture 9
Sorting and Searching
Algorithms
Dr. Evelyn Morin
Department of Electrical and Computer Engineering
1
Todays Lecture
Sorting
Sequential Sort
Bubble Sort
Searching
Linear Sear

APSC 142 INTRODUCTION TO COMPUTER
PROGRAMMING FOR ENGINEERS W2014
LECTURE 12 COURSE REVIEW
Dr. Evelyn Morin
Department of Electrical and Computer Engineering
1
2
APSC 142 Exam
Saturday, April 19, 9 am noon
Locations:
Bews gym surnames beginning with A

APSC 142 Introduction to Computer
Programming for Engineers W2014
Lecture 5 1D and 2D Arrays
Dr. Evelyn Morin
Dept of Electrical & Computer Engineering
1D Arrays
An array is a data structure containing a number of data
values, all of which have the same

APSC 142 Introduction to Computer
Programming for Engineers
W2014
Lecture 3 Selection
Structures
Dr. Evelyn Morin
Department of Electrical and Computer Engineering
1
Lecture Outline
Program structures
Sequence, selection, repetition
Program flowcharts

APSC 174J - Homework #4
Posted: Wednesday March 21, 2012
Instructor: C. Weatherby
Winter/Spring 2012
Read: Section 5 from the lecture notes as well as section 1.5 from the textbook.
Try the following problems for practice. Solutions will be posted next we

APSC 174J - Homework #5
Posted: Tuesday March 27, 2012
Instructor: C. Weatherby
Winter/Spring 2012
Read: Section 6 from the lecture notes.
Try the following problems for practice. Solutions will be posted next week after
youve had a chance to try the prob

APSC 174J - Homework #12
Posted: Monday May 28, 2012
Complete by: Tuesday June 5th, 2012
Instructor: C. Weatherby
Winter/Spring 2012
Read: Sections 15 from the lecture notes as well as Chapter 5.1 from the textbook.
Try the following problems for practice

APSC 174J - Homework #11
Posted: Tuesday May 22, 2012
Complete by: Tuesday May 29th, 2012
Instructor: C. Weatherby
Winter/Spring 2012
Read: Sections 14 from the lecture notes as well as Chapter 4 from the textbook.
Try the following problems for practice.

APSC 174J - Homework #10
Posted: Tuesday May 22, 2012
Complete by: Friday May 25th, 2012
Instructor: C. Weatherby
Winter/Spring 2012
Read: Sections 13 from the lecture notes as well as Section 2.3 from the textbook.
Try the following problems for practice

APSC 174J - Homework #9
Posted: Thursday May 10, 2012
Complete by: Friday May 18th, 2012
Instructor: C. Weatherby
Winter/Spring 2012
Read: Sections 11 and 12 from the lecture notes as well as Section 2.2 from the
textbook.
Try the following problems for p

APSC 174J - Homework #8
Posted: Tuesday May 8, 2012
Complete by: Sunday May 13th, 2012
Instructor: C. Weatherby
Winter/Spring 2012
Read: Section 10 from the lecture notes as well as Section 2.1 from the textbook.
Try the following problems for practice. S

APSC 174J - Homework #7
Posted: Monday April 30, 2012
Complete by: Monday May 7th, 2012
Instructor: C. Weatherby
Winter/Spring 2012
Read: Sections 8 and 9 from the lecture notes as well as Section 1.6 from the textbook.
Try the following problems for prac

APSC 174J - Homework #6
Posted: Wednesday April 4, 2012
Instructor: C. Weatherby
Winter/Spring 2012
Read: Section 7 from the lecture notes.
Try the following problems for practice. Solutions will be posted next week after
youve had a chance to try the pro