CprE 185: Intro to Problem Solving (using C)

Slides:



Advertisements
Similar presentations
Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)
Advertisements

Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)
Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)
Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)
Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)
© 2004 Pearson Addison-Wesley. All rights reserved October 19, 2007 Sorting ComS 207: Programming I (in Java) Iowa State University, FALL 2007 Instructor:
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
© 2004 Pearson Addison-Wesley. All rights reserved March 10, 2006 Sorting ComS 207: Programming I (in Java) Iowa State University, SPRING 2006 Instructor:
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)
Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)
Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
CprE 185: Intro to Problem Solving (using C)
CprE 185: Intro to Problem Solving (using C)
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
CprE 185: Intro to Problem Solving (using C)
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Sorting October 20, 2006 ComS 207: Programming I (in Java)
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
CprE 185: Intro to Problem Solving (using C)
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Guest Lecture by Kyle Tietz
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
CprE 185: Intro to Problem Solving (using C)
CprE 185: Intro to Problem Solving (using C)
Presentation transcript:

CprE 185: Intro to Problem Solving (using C) Instructor: Alexander Stoytchev http://www.ece.iastate.edu/~alexs/classes/2009_Fall_185/

Functions (part 2) CprE 185: Intro to Problem Solving Iowa State University, Ames, IA Copyright © Alexander Stoytchev

Administrative Stuff HW3 is due this Friday @ 8pm on WebCT No HW4 yet (it will go out next week) Midterm 1 is next week On Monday we will have a review session

Midterm Format Lab part (70 pt) Lecture part (65 pt) Program 1 (10pt) Program 2 (10pt) Program 3 (15pt) Program 4 (15 pt) Program 5 (20pt) Lecture part (65 pt) True/False (10pt) Something else (10pt) Short Answers (10pt) Number conversions (20pt) One program on paper (15pt) During your regular lab time next week Wed Sep 23 @ 3-4pm in this room

Midterm Format You don’t need to get all 135 points to get an A 100 is a 100 You must get at least 65 points in order to pass this exam

Midterm Format Both parts are open book You can also bring up to letter-sized 3 pages of notes that you can use during the exam No other lifelines. You cannot call a friend 

Programming Examples

Flow Control of Function Calls main() calls sum() with an argument of 5 sum(5); sum(5) Main() return x;

Flow Control of Function Calls main() calls sum() with an argument of 5 r = sum(5); printf(“%d”, r); sum(5) Main() return x;

Flow Control with More than One Function main() sum(3) helper1(2) helper2(1) helper2(1); helper1(2); sum(3);

Live Programming Examples

Questions?

THE END