Michael Robinson's Homepage
May 4, 2024, 6:42 pm

Teaching   |   Research   |   Biography   |   Contact Me    |   About   |   Help   |   Home


COP 2270 - C FOR ENGINEERS (FLAME) - Fall 2011, Ref 82229, Section U01

Professor:    Michael Robinson
e-mail:         mrobi002@cs.fiu.edu
Web Page:  www.cs.fiu.edu/~mrobi002/teaching/c/c.php

Starts: Tuesday   08/23/11 (Tuesday, August 23th, 2011)
Ends : Thrusday  12/08/11 (Thursday, December 8th, 2011)

Time and Place : Tuesday 12:50 PM - 2:05 PM, Room EC 2840 (in the Engineering Center)
Time and Place : Friday    12:50 PM - 2:05 PM, Room EC 2940 (in the Construction Management Department)
Office Hours     : Saturdays 11:00am to 1:00pm, Room EC 2843.

The last day to register for Fall 2011 classes without incurring a $100 Late Registration Fee is Sunday, August 21th 2011. If you register after this date a late registration fee will be assessed. If the charge was incorrectly applied, you may petition the Office of the Registrar to have the charge waived.

Last day to drop a course with a DR grade Monday, October 31th, 2011.

Catalog Description
A first course in programming geared for engineering and natural science students that describes the ANSI C programming language. Includes developing algorithms and writing code for problems in engineering and science.
Previously CGS 2423. Not acceptable for credit to Computer Science majors.

Prerequisite
General computer knowledge and familiarity with the internet is expected.

Attendance
If you attend every class, you will have a better chance of learning the material of this course.
Not everything I teach in this class is in the book.

Required Text
C Program Design for Engineers by Jeri R. Hanly and Elliot B. Koffman.
Second Edition. Addison Wesley (publisher) ISBN 0-201-70871-X.

Your textbook regular price is $111.00, you can find it used from $14.95 at Amazon, Barnes & Nobles and others.

Grading
3 Exams: 20 points each                                  =   60 points
5 Programming Assignments: 8 points each    =   40 points
Your grade, will be calculated as follows        = 100 points

                            A   100-95
                            A-    94-90
                            B+   89-87
                            B     86-83
                            B-    82-80
                            C+   79-76
                            C     75-70
                            C-    69-66
                            D+   65-60
                            D     59-56
                            D-    55-51
                            F      50-0

Important Dates
Exam One   : TBA (covering ch 1, 2, 3)
Exam Two   : October 25th, 2011 (covering programs 1,2,3, and other material covered in class)
Final Exam  : Tue 12/06/11 12/09/11 12:00-2:00PM Final Exam

Assignment Due Dates
Assignments must be turned in at the start of class on the due dates.
I do not accept late assignments without a valid reason.

Programming Assignments
Assignment #1: Program 1 Due Friday, September 9th, 2011 at beginning of class
Assignment #2: Program 2 Due Tuesday October 11th, 2011 at beginning of class
Assignment #3: Program 3 Due Thursday October 20th, 2011 at beginning of class
Assignment #3: Program 3 2DimData.txt
Assignment #4: Program 4 Due Tuesday November 15th, 2011 at beginning of class
Assignment #5: Program 5 Due Tuesday November 22th, 2011 at beginning of class.

Class Policies: FIU Academic Affairs policy on academic dishonesty

Include the following header in every program

/*********************************************************************
Author:       Your Name
Course:       COP 2270 TU-TH 12:50PM
Professor:    Michael Robinson
Program #:  Program Purpose/Description
                   {A brief description of the program }
Due Date:    MM/DD/YYYY

Certification:
I hereby certify that this work is my own and none of it is the work of any other person.



..........{ your signature }..........
*********************************************************************/

SYLLABUS: COP 2270 Fall 2011
CHAPTER
         1         OVERVIEW OF COMPUTERS AND SOFTWARE
         2         OVERVIEW OF C
         3         DATA TYPES, EXPRESSIONS, SIMPLE FUNCTIONS
         4         SELECTION STRUCTURES: IF AND SWITCH STATEMENTS
         5         REPETITION AND LOOP STATEMENTS: FOR, WHILE, REPEAT STATEMENTS(FOR, WHILE, DO)
         6         FUNCTIONS AND PARAMETERS
         7         ARRAYS
         8         MULTIDIMENSIONAL ARRAYS
         9         STRUCTURE TYPES (STRUCTS)
        A         TEXT AND BINARY FILE PROCESSING
                     IF TIME PERMITS:
         B         PROGRAMMING IN THE LARGE
         C         INTRODUCTION TO NUMERICAL METHODS
         D         ON TO C++

All the Windows computers in our classroom EC 2834, have the GCC C compiler installed.

If you choose to use your own computers to do your programs
Do not use any wordprocessor to write your programs.

Windows users
To write your programs use editors such as notepad, EditPad Pro or Visual Studio.

GCC C compiler for Windows, emulating Unix, downloaded as follows:
- Create a directory in drive c: called cygwin = c:\cygwin
      how: start -> run -> cmd -> cd \ -> mkdir cygwin -> exit

- In the Internet go to:
      http://www.cygwin.com/
      on the center-bottom: select "Install or Update Now" ->
      save (setup.exe) on c:\cygwin

- Goto c:\cygwin and double click on setup.exe

- Install from Internet or Download Without Installing or Install from Local Directory
      select "Install from Internet"

installation instructions:

http://www.eecg.utoronto.ca/~aamodt/ece242/cygwin.html

the only difference is in the last screen, try figuring it out by yourself.

Linux Ubuntu users
Use editor gedit (select View, Highlight mode, Sources, C)

Mac Users
It seems that Apple has modified the GCC C compiler to work on the Mac computers, and that
this C compiler is NOT pre-installed in the Mac computers.

I have Googled for this information and I think the following link will be useful:
http://www.mac-forums.com/forums/os-x-applications-games/206170-c-complier-macosx-gcc.html

Another solution is to go to an Apple Store and have them install the GCC C compiler.

All the Windows computers in our classroom EC 2834, have the GCC C compiler installed.

Recommended Editors:
Windows users
Download and install FREE EditPro

Linux Ubuntu users
Use editor gedit (select View, Highlight mode, Sources, C)

I recommend that you do not use IDE systems to write your programs at this time because when you get to use Unix you will run into problems because Unix does not have IDE systems and you will have to write your programs using editors.

My goal is to make sure you learn, working together on programs is NOT PERMITTED, if I notice that programs are similar I will start giving a quiz on the program the day it is due, if your grades (program, quiz) are very different the final grade will the one of the quiz.

Projected Schedule (could be modified)
Tue 8/23/11 Chapter 1 ( no class per MDC )
Fri   8/26/11 Chapter 1

Tue 8/30/11 Chapter 1 and 2
Fri   9/02/11 Chapter 2 Publish Program 1 (covering ch 2)

Tue 9/06/11 Chapter 3
Fri   9/09/11 Chapter 3 Program 1 Due (covering ch 2)

Tue 9/13/11 Chapter 4 Return Program 1, graded.
Fri   9/16/11 Chapter 4

Tue 9/20/11 Chapter 4 Review for Exam 1
Fri   9/23/11 Exam 1 (chapter 1, 2, 3). Publish Program 2 (chapter 3, 4)

Tue 9/27/11 Chapter 5 Return Exam 1, graded.
Fri   9/30/11 Chapter 5 Program 2 Due (chapters 3, 4)

Tue 10/04/11 Chapter 6 Return Program 2, graded.
Fri   10/07/11 Chapter 6

Tue 10/11/11 Chapter 7
Fri   10/14/11 Chapter 7 - Publish Program 3 (chapters 5, 6, 7)

Tue 10/18/11 Chapter 7
Fri   10/21/11 Chapter 8 - Program 3 Due, Exam 2 Review, and go over Program 3.

Tue 10/25/11 EXAM 2 October 25th, 2011 (covering programs 1,2,3, and other material covered in class)
Fri   10/28/11 No Class (Teacher Planning Day)

Tue 11/01/11 Chapter 8 - Return Exam 2 graded. - return Program 3 graded
Fri   11/04/11 Exam 2 (chapters 4, 5, 6, 7)

Tue 11/08/11 Chapter 9 - Publish Program 4 (all chapters + 8)
Fri   11/11/11 No Class Legal Holiday

Tue 11/15/11 Chapter 9 - Program 4 due (all chapters + 8) + Publish Program 5 (chapters 2 - 9 + some of 10)
Fri   11/18/11 Chapter 9

Tue 11/22/11 Chapter 10 - Program 5 due (chapters 2 - 9 and some of 10)
Fri   11/25/11 No Class Recess Day

Tue 11/29/11 Chapter 10 - Return Program 5 graded
Fri   12/02/11 Review Final Exam (covering ch 8, 9, 10)

Tue 12/06/11 12:00-2:00PM Final Exam (covering all programs and exams 1 and 2)


DATA TYPES          BYTES           MIN VAL          MAX VAL
CHAR                               1                       -128                       128
UNSIGNED CHAR          1                            0                       256
INT OR SHORT               2                 -32,768                   32,768
UNSIGNED SHORT        2                           0                   65,535
LONG                               4      -2,147,483,648      2,147,483,647
UNSIGNED LONG          4                            0       4,294,967,295
FLOAT                             4    -+1.701411E-38     -+1.701411E38
DOUBLE                                        -+1.0E-307             -+1.0E307

For example, 2.345E6 is equivalent to 2,345,000

©2009-2099 Michael Robinson    ®