1 / 8

Today’s Class

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

tobias
Download Presentation

Today’s Class

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

  2. 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

  3. 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

  4. 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

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

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

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

  8. 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

More Related