Discussion 2 Notes
19 Sept. & 21 Sept.
Topics Covered:
- Introduction:
- My Name, Email
Address, Office Hours & Rm., Discussion
Section Webpage
- Answer any general Unix or UMBC-specific questions
- Time and Place for the extra
lab sessions for an Introduction to the C Compiler
- NOTE: All handouts and examples used in class
will be posted on my webpage. The notes which may or may not
accompany them are used by me to deliver the lecture. Some examples
may not be explained, so these pages are NOT meant to replace
the Discussion Sections.
- Examples will usually be posted by 8am before
the Tuesday section meets. Check the page!
- Handout with Exaples of C Programming Structures which cover:
- Simple Program to build from
- Examples Doing Error Checking Using:
- if statement
- if/else statment
- while loop
- do/while loop
- Sentinel Example
- switch Statement
- for Loops (single and nested)
- Sample Runs from each
- Example 1: convert.c
- Example 2: convert2.c
- Example 3: convert3.c
- Example 4: convert4.c
- Example 5: convert5.c
- Example 6: convert6.c
- Example 7: convert7.c & convert7run
- Example 8: forloops.c & forloopsrun
- Any Questions???
- Additional Notes about the examples:
- Versatility of printf()
- scanf(), its Issues, and cs201 project I/O assumptions
- Possible Improvements to the Examples presented
- DeMorgan's Laws
- Any Questions???
- In Conclusion:
- Re-mention extra
lab sessions this week and next
- Examples will be posted to the web
- Try some of the DeMorgan's Law problems from the textbook
- Examples for next week's discussion should be posted by 8am
Tuesday 26 Sept.
- See you next week!
Last Modified 23 October 2000