Presentation is loading. Please wait.

Presentation is loading. Please wait.

Engineering EG167C - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect M1 P. 1Winter Quarter Midterm I Review.

Similar presentations


Presentation on theme: "Engineering EG167C - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect M1 P. 1Winter Quarter Midterm I Review."— Presentation transcript:

1 Engineering EG167C - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect M1 P. 1Winter Quarter Midterm I Review Topics Lecture M1

2 Engineering EG167C - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect M1 P. 2Winter Quarter Optional Review Session for Midterm I As you probably know, the first midterm in EG167C is scheduled for Monday, January 30th. The midterm is during the class period.

3 Engineering EG167C - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect M1 P. 3Winter Quarter What should be on the first mid term exam? Can you name the topics and provide some type of organization for these topics?

4 Engineering EG167C - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect M1 P. 4Winter Quarter Topics for Midterm 1 Algorithms & Flow Charts UNIX (simple commands) Pre-Processor Directives #include #define Named Constants #define pi or const float pi = ;

5 Engineering EG167C - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect M1 P. 5Winter Quarter Topics for Midterm 1 Variable types –int, float, char, double Operators –types -- mathematical, logical, relational, and assignment –Precedence of operators "computer math" –floating point versus integer

6 Engineering EG167C - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect M1 P. 6Winter Quarter Topics for Midterm 1 C program basic structure –Comment statements –Pre-processor directives –Function definition statement –Comment statements –Declaration statements –Comment statements –Executable statements –Comment statements

7 Engineering EG167C - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect M1 P. 7Winter Quarter Topics for Midterm 1 Typical "main" function int main ( ) {. return 0 ; }

8 Engineering EG167C - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect M1 P. 8Winter Quarter Topics for Midterm 1 I/O –formats, including the specifications for the various data types -- %d, %f, %c –functions – scanf, printf, getchar, putchar File I/O –FILE statement –Initialization and use of "file pointer" variables –functions – fopen, fclose, fscanf, fprintf

9 Engineering EG167C - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect M1 P. 9Winter Quarter Topics for Midterm 1 Repetition structures –forfor (k=1,a=0; k<20; k=k+3) a++; –whilek=1; a=0; while(k<20) {k+=3; a++;} –do { } while k=1; a=0; do {k+=3; a++;} while(k<20); Selection structures –if –if else –if else if else –switch - case


Download ppt "Engineering EG167C - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect M1 P. 1Winter Quarter Midterm I Review."

Similar presentations


Ads by Google