Download presentation
Presentation is loading. Please wait.
1
CprE 185: Intro to Problem Solving (using C)
Instructor: Alexander Stoytchev
2
Functions (part 2) CprE 185: Intro to Problem Solving
Iowa State University, Ames, IA Copyright © Alexander Stoytchev
3
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
4
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 3-4pm in this room
5
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
6
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
7
Programming Examples
8
Flow Control of Function Calls
main() calls sum() with an argument of 5 sum(5); sum(5) Main() return x;
9
Flow Control of Function Calls
main() calls sum() with an argument of 5 r = sum(5); printf(“%d”, r); sum(5) Main() return x;
10
Flow Control with More than One Function
main() sum(3) helper1(2) helper2(1) helper2(1); helper1(2); sum(3);
11
Live Programming Examples
12
Questions?
13
THE END
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.