Time & Place: | Ref No. 22586: Monday-Wednesday, 6:00 - 8:55 PM, Dale Mabry Room Tech-412 | ||
Instructor: | Name: Wayne Pollock
E-mail Address: pollock@acm.org Office & Phone: Tech-404, 253-7213 Office Hours: Monday-Thursday 5:00-5:30, Tues. 2:00-5:00, or by appointment. homepage URL: http://www.hcc.cc.fl.us/pollock/ | ||
Texts: | Robert Lafore, The Waite Groups C Programming Using Turbo C++, Second Edition, ©1993 SAMS Publishing. ISBN: 0-672-30399-X. (Or newer edition if available.) | ||
Description: | "Introduces programming in ‘C’ language, with an emphasis on basic input/output functions. Topics include interactive programming, style and methodology, top-down design and structured programming." The class format will be lecture and discussion; class participation is strongly encouraged. In addition, there will be numerous examples and in-class group programming exercises (model solutions to these and all projects will be provided.) | ||
Objectives: | "The student will demonstrate a knowledge of the following
topics through objective tests, hands-on activities, and projects:
| ||
Prerequisite: | COP 1000, or Permission of the Instructor. Students enrolled in a degree or college credit certificate program must complete all prerequisites. | ||
Facilities: | All programming assignments can be performed on any computer available in the lab or classroom, or on a home computer. The minimum requirement is a working ANSI C++ compiler. Borland C++ v5.5 for Windows is free and ANSI compliant and will be used in class. Student discounts for Borland C++ as well as on other software are available to HCC students at the campus bookstore. A free high quality C compiler is available for UNIX and DOS systems from the Free Software Foundation (FSF). It is called "gcc" (for Gnu C Compiler) or "g++" and it is available using FTP on the Internet at various sites. MS Visual C++, while not ANSI compliant, will be adequate for this class. You will need your own floppy disks and writing materials, plus Scantron sheets for the exams. | ||
Grading: | 3 equally weighted exams: 50% 3 programming projects: 50%
A=90-100, B=80-89, C=70-79, D=60-69, F=0-59
|
Classes Begin: | Tuesday 5/8/2001 |
Add-Drop ends: | Thursday 5/10/2001 |
Last Day to Withdraw: | Wednesday, 5/30/2001 |
Classes End (Finals Week): | Monday, 6/25/2001 (Last regularly scheduled class: Monday, 6/25/2001) |
Request For Accommodation
Quotes: | Tell me and I'll listen. | - Lakota Indian saying | |
---|---|---|---|
Learning is not a spectator sport! | - Chickering & Gamson |
Dates | Topics | Suggested Readings | |
---|---|---|---|
5/9 5/14 | Course introduction, Personal introduction, LAN use. Assign User IDs for LAN, discuss passwords. Open Lab procedures and hours. Computer use (Borland® C/C++ v5.x). Compiler basics (three phases, object and executable files). First C program (Hello.c). Basic C elements: basic data types, operators and expressions, variables. | Get Text; Chapter 1 (don’t take it seriously), pp. 28-35, 46, 48-63 | |
5/16 5/21 | Control flow. C Preprocessor (#define and #include). Input/Output (printf and scanf). I/O redirection. | Chapters 3, 4, pp. 157-166, 35-46, 291-295 | |
5/23 |
Exam #1 Functions: calls, usage, parameter passing, returns. | Chapter 5 | |
5/28 | No class - Memorial Day | ||
5/30 | Memory use (program stack, heap).
Recursion.
Scope (local and global variables).
Project #1 Due | Chapter 5 | |
6/4 6/6 | Arrays, strings, standard library functions. 2-dimensional arrays. | Chapters 6, 7 | |
6/11 | Exam #2 Project #2 Due. Pointers. | Chapter 7 | |
6/13 | struct-ures, typedef, enum. Command-line arguments. Sorting and searching arrays. | Chapter 9, pp. 514-524, 288-291 | |
6/18 6/20 | Scope and lifetime (static and extern). Dynamic memory (malloc, free), linked-lists, Modular programming (multi-file projects). Using data files. | pp. 452-481, 504-514, Chapter 11 | |
6/25 | Exam #3 Project #3 due. |
Class name: COP 1220 (C Programming) Days: Monday-Wednesday Time: 6:00PM Student Information Sheet Student Name: ___________________________ Student ID: _____________________________ Phone (optional): ______________________ Email (optional): ______________________ Student Certification Statement I have read and understand all of the information contained in the syllabus, and agree to abide by the conditions of this course, especially the following areas (initial each area): _____ Test Policy _____ Honesty Policy _____ Attendance Policy _____ Grading Policy _____ Class Conduct _________________________________ Student Signature
C Examples Discussed in Class | |||||
---|---|---|---|---|---|
C Operator Chart | Shows operators, their associativity and precedence | Printf and Scanf Reference | Shows all the format codes and other information | ||
Hello.c | Traditional first program | Cost.c | Compute cost per hour of COP 1220 | ||
Temp.c | Fahrenheit to Celsius conversion | Tax.c | Fictional tax calculator | ||
Fact.c | Compute Factorials | FactFunc.c | Compute Factorials using a function | ||
Fib.c | Compute Fibonacci numbers | FibRecur.c | Compute Fibonacci numbers recursively | ||
Choose.c | Compute C(n, r) | Choose1.c | Compute C(n, r) another way | ||
average.c | Use Array to computer averages | strup.c | convert strings to UPPERCASE. | ||
swap.c | Use pointers to pass by reference | parrot.c | Illustrates using command-line arguments | ||
Model Solutions to Assigned Projects | |||||
Loan.exe | Morgage Schedule | graf.exe | Draws Graphics | ||
clue.exe | Clue Database Application |
Send comments and mail to the WebMaster. |