March R. 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
March R. 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
March R. 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
March R. 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
March R. 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?
March R. 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
March R. 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
March R. 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 sa/3.0/us/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.