ECE 1620 - Spring 2022 - Class Notes


w14-16) 11-28 Apr 2022

2D arrays, images, functions

a10 - will be collected AM Sun May 1

p1, p3: read -> modify -> write
p2: read -> new -> write
p4: new -> write

RGB (red, green, blue) and human vision (color circles) vs. ROYGBIV spectral colors (rainbow)

example images

example code: modify, shrink, new, circle;   zero;   a3x4, flip

notes from class


w13) 4-8 Apr 2022

a9 - will be collected AM Th April 14

pointer examples

string.h

notes from class


w12) 28 Mar - 1 Apr 2022

6.6 - Character Arrays - also fgets(), fputs(), copy lines

6.1 Addresses and Pointers - chapter6_{1,2,3}.c

6.4 switching values in two variables: c6p306/swap.gif, try swap function

notes from class


w11) 21-25 Mar 2022

5.1 - One-Dimensional Arrays - continue

Monte-Carlo simulation

notes from class


w10) 14-18 Mar 2022

finish from last week: exp, sqrt

4.3 - Computing the Boundaries of the Iris

4.4 - Iceberg Tracking - using 3D Point

5.1 - One-Dimensional Arrays

notes from class


w9) 7-11 Mar 2022

4.1 - Modularity

4.2 - Programmer-Defined Functions

avg3-math function, sqrt and frexp scaling, exp

notes from class


w8) Spring Break


w7) 21-25 Feb 2022

Chapter 3

signal processing: interpolation, decimation, moving average, frequency response

notes from class


w6) 14-18 Feb 2022

3.3 - Selection Statements

3.5 - Loop Structures

3.6 - Wave Interaction

4.5 - Random Numbers

an interesting tangent function

notes from class


w5) 7-11 Feb 2022

Chapter 3 - start with Repetition Example - while loop - chapter3_2.c

2.4 - Standard Input and Output - scanf_Points.c

3.1 - Algorithm Development

3.2 - Conditional Expressions

Newton's method for sqrt

notes from class


w4) 31 Jan - 4 Feb 2022

chapter2_4.c and scanf

2.5 - Estimating Height from Bone Lengths

2.8 - Mathematical Functions

Intro to structures; compare distance_pythag.c with distance_Point.c

notes from class

Next: chapter 3


w3) 24-28 Jan 2022

2.1 - Program Structure

2.2 - Constants and Variables

2.3 - Assignment Statements

Appendix B - ASCII Character Codes; characters and integers - chapter2_1.c

References: keywords, operators, library

notes from class

Next: 2.5, 2.8


w2) 19-21 Jan 2022

survey, results, birthdays: 1, 2, all, notes; sim

2.1 Program Structure
comments, preprocessor directives, standard C library, declarations and initial values, statements
--> functions
chapter1_1.c - distance between two points
perry_c2_sqr.c - sqr function and main

Next: 2.2, 2.3, 2.5, 2.8


w1) 10-14 Jan 2022

Recording from class Jan 13

Course overview, C history, Chapter 1

1.1 Engineering in the 21st Century
1.2 Computing Systems: Hardware and Software
Figures: 1.1 (CPU, ALU), 1.2 (software interfaces), 1.3 (compile, link, execute)
1.3 An Engineering Problem-Solving Methodology
(1) state the problem clearly
(2) describe the inputs and outputs
(3) do an example by hand
(4) develop a solution and program (decomposition outline, algorithm)
(5) test
chapter1_1.c - distance between two points (Figure 1.4)