Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect M2P. 1Winter Quarter Midterm II Review Topics Lecture M2.

Slides:



Advertisements
Similar presentations
C: Advanced Topics-II Winter 2013 COMP 2130 Intro Computer Systems Computing Science Thompson Rivers University.
Advertisements

Introduction to C Programming
File Management in C. What is a File? A file is a collection of related data that a computers treats as a single unit. Computers store files to secondary.
Question Bank. Explain the syntax of if else statement? Define Union Define global and local variables with example Concept of recursion with example.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 10P. 1Winter Quarter Repetition Structures.
Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect FXP. 1Winter Quarter Course Wrap Up and Final Review Topics Lecture.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 16P. 1Winter Quarter Strings Lecture 16.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 12P. 1Winter Quarter User-Written Functions.
Files in C Rohit Khokher.
Engineering EG167C - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect M1 P. 1Winter Quarter Midterm I Review.
1 Chapter 10 Strings and Pointers. 2 Introduction  String Constant  Example: printf(“Hello”); “Hello” : a string constant oA string constant is a series.
Lecture 20 Arrays and Strings
What is a pointer? First of all, it is a variable, just like other variables you studied So it has type, storage etc. Difference: it can only store the.
Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Cpt S 122 – Data Structures Characters and Strings.
BITS Pilani, Pilani Campus TA C252 Computer Programming - II Vikas Singh File Handling.
File Management in C. A file is a collection of related data that a computers treats as a single unit. File is a collection of data stored permanently.
Files in C Rohit Khokher. Files in C Real life situations involve large volume of data and in such cases, the console oriented I/O operations pose two.
1 CSE1303 Part A Data Structures and Algorithms Semester 2, 2006 Lecture A1 – Welcome & Revision.
Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect 20P. 1Winter Quarter Propulsion Lab with MATLAB Lecture 20.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 19P. 1Winter Quarter MATLAB: Script and.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect FXP. 1Winter Quarter Course Wrap Up and.
1 CSE1301 Computer Programming: Revision 1. 2 Topics Type of questions What do you need to know? About the exam Exam technique Staff consultation Sample.
Review for midterm exam Dilshad M. Shahid Spring NYU.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 13P. 1Winter Quarter Scope of Variables.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 11P. 1Winter Quarter Arrays Lecture 11.
Topic R3 – Review for the Final Exam. CISC 105 – Review for the Final Exam Exam Date & Time and Exam Format The final exam is 120-minutes, closed- book,
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect M1 P. 1Winter Quarter Midterm I Review Topics.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 6P. 1Winter Quarter I/O in C Lecture 6.
Guide To UNIX Using Linux Third Edition
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect M2P. 1Winter Quarter Midterm 2 Review Topics.
CSE1301 Computer Programming: Revision. Topics Type of questions What do you need to know? About the exam Exam technique Sample questions.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 14P. 1Winter Quarter Pointers Lecture 14.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect FXP. 1Winter Quarter Course Wrap Up and.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 9P. 1Winter Quarter Switch Case Structures.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 15P. 1Winter Quarter Arrays and Pointers.
Console and File I/O - Basics Rudra Dutta CSC Spring 2007, Section 001.
V-1 University of Washington Computer Programming I File Input/Output © 2000 UW CSE.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 23P. 1Winter Quarter Structs and Enumeration.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 21P. 1Winter Quarter MATLAB: Structures.
Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect 14P. 1Winter Quarter Pointers Lecture 14.
CECS 121 EXAM 2.  Function Prototype Syntax return-type function_name ( arg_type arg1,..., arg_type argN);  Function Prototypes tell you the data type.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 7P. 1Winter Quarter File I/O in C Lecture.
Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect 25P. 1Winter Quarter C++: I/O and Classes Lecture 25.
Characters and Strings File Processing Exercise C Programming:Part 3.
1 CSE1301 Computer Programming: Revision. 2 Topics Type of questions What do you need to know? About the exam Exam technique Staff consultation Revision.
Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect 23P. 1Winter Quarter Structs and Enumeration Lecture 23.
Engr 0012 (04-1) LecNotes Engr 0012 (04-1) LecNotes C++ errors/debugging build/compile compiler does not recognize a statement build/compile.
Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect 12P. 1Winter Quarter User-Written Functions Lecture 12.
Khalid Rasheed Shaikh Computer Programming Theory 1.
Chapter 7 : File Processing1 File-Oriented Input & Output CHAPTER 7.
1 CHAPTER6 CHAPTER 6. Objectives: You’ll learn about;  Introduction  Files and streams  Creating a sequential access file  Reading data from a sequential.
Lecture 11: Files & Arrays B Burlingame 18 November 2015.
24-2 Perform File I/O using file pointers FILE * data-type Opening and closing files Character Input and Output String Input and Output Related Chapter:
Lecture 15: Course Review BJ Furman ME 30 16MAY2011.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 11P. 1Winter Quarter Arrays Lecture 11.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 20P. 1Winter Quarter Propulsion Lab with.
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To understand the basic properties and characteristics of external files ❏ To.
Chapter 7 Text Input/Output Objectives
Chapter 7 Text Input/Output Objectives
MATLAB: Structures and File I/O
I/O in C Lecture 6 Winter Quarter Engineering H192 Winter 2005
CS 2308 Exam I Review.
File I/O in C Lecture 7 Narrator: Lecture 7: File I/O in C.
File Input and Output.
EE 312 Exam I Review.
Quick Review EECS May 2019.
EE 312 Exam I Review.
Files Chapter 8.
COMP 2130 Intro Computer Systems Thompson Rivers University
EE 312 Exam I Review.
Presentation transcript:

Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect M2P. 1Winter Quarter Midterm II Review Topics Lecture M2

Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect M2P. 2Winter Quarter Optional Review Session for Midterm II The review session for ENG H192 second midterm will be on Sunday, March 2nd, in (Location TBD). The review will begin at 6:00pm and last until all questions are answered (estimated to be about 8:00pm). Ted Pavlic and Joe Ryan have agreed to host the review. The midterm will be on Monday, March 3rd, during your regular ENG H192 class time.

Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect M2P. 3Winter Quarter What should be on the second mid term exam? Can you name the topics and provide some type of organization for these topics?

Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect M2P. 4Winter Quarter Topics for Midterm 2 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

Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect M2P. 5Winter Quarter Topics for Midterm 2 File I/O –FILE statement –detecting an EOF –functions – fopen, fclose, fscanf, fprintf, fgets –feof example: FILE *fptr; int k,a; float b,c; fptr=fopen(“data.dat”,”r”); k=fscanf(fptr,”%f”,&b); if(feof(fptr)||k==EOF) printf(“End of File\n”);

Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect M2P. 6Winter Quarter Topics for Midterm 2 I/O –formats, including the specifications for the various data types -- %d, %f, %c, %ld, %s –functions – scanf, printf, getchar, putchar examples: int k,a; float b,c; k = scanf (“%f%d%f”, &b, &a, &c) ; if (k==EOF) printf (“End of file\n”) ; else if (k<3) printf (“Conversion Error\n”) ;

Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect M2P. 7Winter Quarter Topics for Midterm 2 Arrays (one and two dimensional) –declaring an array –initializing an array –using (how to index) an array Pointer variables –declaring a pointer variable –initializing a pointer –dereferencing a pointer Arrays, Pointers, Values, and Addressing (like Quiz 4)

Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect M2P. 8Winter Quarter Topics for Midterm 2 Character strings –declaring character strings (arrays of characters) –initializing character strings –using character strings –functions in and for handling and doing string I/O –comparing and sorting strings (strcpy, strcmp, strlen)

Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect M2P. 9Winter Quarter Topics for Midterm 2 User-written functions –function prototype –function definition –function invocation User libraries –user-written header files –user library files –using a user library file on CC command

Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect M2P. 10Winter Quarter Topics for Midterm 2 MATLAB –basic syntax –vectors and matrices –math operators –loading data –plotting data –labeling axes and plots –writing a MATLAB function

Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect M2P. 11Winter Quarter Topics for Midterm 2 Engineering Laboratory –data acquisition system –basic stress/strain concepts –relationship between stress and strain (Young's modulus) –what is a strain gauge –rocket motor performance basics –how to measure thrust –thrust-time curve –basic aerodynamics