Lecture08 - Engineering 101 Engineering 101 Lecture 08...

Info iconThis preview shows pages 1–14. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Engineering 101 Engineering 101 Lecture 08 Lecture 08 Side Effects and Procedures Side Effects and Procedures Prof. Michael Falk University of Michigan, College of Engineering Announcements Announcements Project 2 Due Wednesday at 9pm TestCase2 program generated test cases. Exam 1 will be held Wednesday 10/4 from 7-9pm. Sample Exams are now posted. Early Exam 1 Mon 10/2 from 3-5pm in Dow 1017. Contact me by Wednesday if you need to take the early administration. A. Chung Z. Evans-Golden Change in My Office Hours Change in My Office Hours Monday 4-5pm Monday, Tuesday 11:30-12:30 Caller int main( ){ int A=156, B=20, C, D=156, E=20; C = Function(A, B); Procedure(D,E); etc. Functions vs. Procedures Functions vs. Procedures Caller int main( ){ int A=156, B=20, C, D=156, E=20; C = Function(A, B); Procedure(D,E); etc. Functions vs. Procedures Functions vs. Procedures A 156 B 20 D 156 E 20 C Caller int main( ){ int A=156, B=20, C, D=156, E=20; C = Function (A, B); Procedure(D,E); etc. Functions vs. Procedures Functions vs. Procedures int Function (int X, int Y) { return X+Y; } A 156 B 20 D 156 E 20 C Caller int main( ){ int A=156, B=20, C, D=156, E=20; C = Function(A, B); Procedure (D,E); etc. Functions vs. Procedures Functions vs. Procedures int Function (int X, int Y) { return X+Y; } void Procedure (int & X, int & Y) { X=X+Y; return; } A 156 B 20 D 156 E 20 C Caller int main( ){ int A=156, B=20, C, D=156, E=20; C = Function(A, B); Procedure(D,E); etc. Functions vs. Procedures Functions vs. Procedures int Function (int X, int Y) { return X+Y; } void Procedure (int & X, int & Y) { X=X+Y; return; } A 156 B 20 D 156 E 20 C X 156 Y 20 Caller int main( ){ int A=156, B=20, C, D=156, E=20; C = Function(A, B); Procedure(D,E); etc. Functions vs. Procedures Functions vs. Procedures int Function (int X, int Y) { return X+Y; } void Procedure (int & X, int & Y) { X=X+Y; return; } A 156 B 20 D 156 E 20 C 176 X 156 Y 20 Caller int main( ){ int A=156, B=20, C, D=156, E=20; C = Function(A, B); Procedure(D,E); etc. Functions vs. Procedures Functions vs. Procedures int Function (int X, int Y) { return X+Y; } void Procedure (int & X, int & Y) { X=X+Y; return; } A 156 B 20 D 156 E 20 C 176 X Y Caller int main( ){ int A=156, B=20, C, D=156, E=20; C = Function(A, B); Procedure(D,E); etc. Functions vs. Procedures Functions vs. Procedures int Function (int X, int Y) { return X+Y; } void Procedure (int & X, int & Y) { X=X+Y; return; } A 156 B 20 D 176 E 20 C 176 X Y Caller int main( ){ int A=156, B=20, C, D=156, E=20; C = Function(A, B); Procedure(D,E); etc. Functions vs. Procedures Functions vs. Procedures int Function (int X, int Y) { return X+Y; } void Procedure (int & X, int & Y) { X=X+Y; return; } A 156 B 20 D 176 E 20 C 176 What Does the Procedure Do?...
View Full Document

Page1 / 74

Lecture08 - Engineering 101 Engineering 101 Lecture 08...

This preview shows document pages 1 - 14. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online