1 / 8

Exploring While Loops and Nested For Loops in Modern Computing

Join us in OSS 329 as we delve into the evolution of modern computing. This Thursday's class will focus on while loops and nested for loops, essential tools in programming. Students are expected to prepare a short paper on a historical dispute in computing for the related assignment. Additionally, we will discuss the size of integers and factorial applications. Don’t miss Lab 5, where we will work with flowcharting and the significance of loops in programming.

tobias
Télécharger la présentation

Exploring While Loops and Nested For Loops in Modern Computing

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