Lecture Summaries - Week 1
Jump To:
[Lecture Index |
Next Week's Lectures]
Topics covered:
- How to obtain a "wiliki" account.
- How to access class information.
- What this class is all about.
- What computer programming is.
- What C is.
- A tour through a first C program
- A program to printing a welcome message
(welcome.c,
page 4).
Reading: Chapter 1.1, 1.2.
Topics covered:
- How to enter, compile, and execute programs on "wiliki".
- What functions are and why we use them.
- Using printf.
- The newline character (\n).
- How to define and execute simple functions.
- Library functions and include files.
- Improving our second C program to use the stdio.h include file
(welcome2.c,
page 7).
- Most realistic programs do calculations as well as printing
- A more realistic C program
(price.c,
page 9).
- The idea of a variable and why we need them.
- How to declare and assign to variables.
Reading: Chapter 1.3, 1.4 (through page 11).
Topics covered:
- Doing arithmetic calculations.
- The basic arithmetic operators.
- The idea of assigning calculation results to variables.
- Why arithmetic expressions are not algebraic expressions.
- Using printf to write the values of variables.
- How to modify our example program to use different data by
changing its assignments.
Reading: Chapter 1.4 (pages 11-12).
[EE150 Home Page |
Top Of Page]