Presentation is loading. Please wait.

Presentation is loading. Please wait.

March 2005 1R. Smith - University of St Thomas - Minnesota Today’s Class Course StuffCourse Stuff –Classroom change TOMORROW –Assignment; Lab While LoopsWhile.

Similar presentations


Presentation on theme: "March 2005 1R. Smith - University of St Thomas - Minnesota Today’s Class Course StuffCourse Stuff –Classroom change TOMORROW –Assignment; Lab While LoopsWhile."— Presentation transcript:

1 March 2005 1R. Smith - University of St Thomas - Minnesota Today’s Class Course StuffCourse Stuff –Classroom change TOMORROW –Assignment; Lab While LoopsWhile Loops Lab 5Lab 5 Nested For loop exampleNested For loop example Size of IntegersSize of Integers

2 March 2005 2R. Smith - University of St Thomas - Minnesota Course Stuff On Thursday we will be in OSS 329 downstairsOn Thursday we will be in OSS 329 downstairs Thursday topic: evolution of modern computingThursday topic: evolution of modern computing Related Assignment: short paper on a dispute in the history of computingRelated Assignment: short paper on a dispute in the history of computing Next Lab: While loopsNext Lab: While loops

3 March 2005 3R. Smith - University of St Thomas - Minnesota The Up Arrow I spent a lot of time using “^” yesterdayI spent a lot of time using “^” yesterday pow(x,y) is x ypow(x,y) is x y #include #include

4 March 2005 4R. Smith - University of St Thomas - Minnesota While Loop Simpler version of for loopSimpler version of for loop Only includes the ‘second’ sectionOnly includes the ‘second’ section –Loops as long as expression is true ==== < > !=!= <=<= >=>= –Converting from a For loop

5 March 2005 5R. Smith - University of St Thomas - Minnesota Flowcharting Lab 5 What has to happen?What has to happen? What is the right order?What is the right order?

6 March 2005 6R. Smith - University of St Thomas - Minnesota Nested For Loops What makes a For loop work?What makes a For loop work? Mixing two loops togetherMixing two loops together Multiplication table exampleMultiplication table example

7 March 2005 7R. Smith - University of St Thomas - Minnesota Size of Integers char, short, int, long, long longchar, short, int, long, long long Why different sizes?Why different sizes? What is factorial?What is factorial? Factorial exampleFactorial example

8 March 2005 8R. Smith - University of St Thomas - Minnesota Creative Commons License This work is licensed under the Creative Commons Attribution-Share Alike 3.0 United States License. To view a copy of this license, visit http://creativecommons.org/licenses/by- sa/3.0/us/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.


Download ppt "March 2005 1R. Smith - University of St Thomas - Minnesota Today’s Class Course StuffCourse Stuff –Classroom change TOMORROW –Assignment; Lab While LoopsWhile."

Similar presentations


Ads by Google