Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS 106 Introduction to Computer Science I 04 / 09 / 2008 Instructor: Michael Eckmann.

Similar presentations


Presentation on theme: "CS 106 Introduction to Computer Science I 04 / 09 / 2008 Instructor: Michael Eckmann."— Presentation transcript:

1 CS 106 Introduction to Computer Science I 04 / 09 / 2008 Instructor: Michael Eckmann

2 Michael Eckmann - Skidmore College - CS 106 - Spring 2008 Today’s Topics Comments and/or Questions? implement a Cut method and then solve problem 2 on lab –but ask user which card(s) to discard

3 Cut method Ideas for the cut method Have another array of 52 Cards to copy into (then later copy this array back into original.)‏ Generate some random number between 0 and 51 and use that as the place to cut the cards. Keeping track of starting and ending indicies is a challenge but its doable if we're careful. Draw copying idea on board. – How many loops and what will each one do?


Download ppt "CS 106 Introduction to Computer Science I 04 / 09 / 2008 Instructor: Michael Eckmann."

Similar presentations


Ads by Google