Ch6exercises - show them how to write the code out to a...

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

View Full Document Right Arrow Icon
Ch6exercises From Cs142fa11 Jump to: navigation , search Here are some exercises that we may complete in class Count the number of "3" in a string using substr Modify this code to use array notation Go over array notation from slides Create code to read in a bunch of integers with a -1 to stop Do the following examples on the board Write a function to create the sum of all of the integers Write a function to multiply each integer by 2 Write a function to print out the number of stars specified by the integer Use the sound example to do the following Introduce a 2 second echo Notice that it has multiple echoes, copy the array Speed it up to double speed Slow it down to half speed Reverse it using a temporary variable Do the landscape example Have one student write code to initialize a two dimensional array
Background image of page 1

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

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

Unformatted text preview: show them how to write the code out to a file by inputting the file name Bring it up in excel and graph it Do vectors and show how the parking attendant moves the cars Retrieved from " " Views Page Discussion View source History Personal tools Log in Navigation Main Page Contact, Hours, etc. Syllabus Schedule Labs Examples Language Help Search Toolbox What links here Related changes Special pages Printable version Permanent link This page was last modified on 30 September 2011, at 22:45. This page has been accessed 79 times. Privacy policy About Cs142fa11 Disclaimers Go Search...
View Full Document

This note was uploaded on 10/06/2011 for the course CS 142 taught by Professor Staff during the Spring '08 term at BYU.

Page1 / 2

Ch6exercises - show them how to write the code out to a...

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

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