80 likes | 195 Views
Today’s Class. Course Stuff Classroom change TOMORROW Assignment; Lab While Loops Lab 5 Nested For loop example Size of Integers. Course Stuff. On Thursday we will be in OSS 329 downstairs Thursday topic: evolution of modern computing
E N D
Today’s Class • Course Stuff • Classroom change TOMORROW • Assignment; Lab • While Loops • Lab 5 • Nested For loop example • Size of Integers R. Smith - University of St Thomas - Minnesota
Course Stuff • On Thursday we will be in OSS 329 downstairs • Thursday topic: evolution of modern computing • Related Assignment: short paper on a dispute in the history of computing • Next Lab: While loops R. Smith - University of St Thomas - Minnesota
The Up Arrow • I spent a lot of time using “^” yesterday • pow(x,y) is xy • #include <math.h> • #include <stdio.h> R. Smith - University of St Thomas - Minnesota
While Loop • Simpler version of for loop • Only includes the ‘second’ section • Loops as long as expression is true • == • < • > • != • <= • >= • Converting from a For loop R. Smith - University of St Thomas - Minnesota
Flowcharting Lab 5 • What has to happen? • What is the right order? R. Smith - University of St Thomas - Minnesota
Nested For Loops • What makes a For loop work? • Mixing two loops together • Multiplication table example R. Smith - University of St Thomas - Minnesota
Size of Integers • char, short, int, long, long long • Why different sizes? • What is factorial? • Factorial example 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 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. R. Smith - University of St Thomas - Minnesota