Outline
Loop Control Structures p
while-loops Nested while-loops
CS 1410 Comp Sci with C+
Loop Control Structures
1
CS 1410 Comp Sci with C+
Loop Control Structures
2
Example
cout< Enter cout<"Enter your weight"; weight ; cin>Weight; if (Wei
CompSci 100E
http:/www.cs.duke.edu/courses/fall06/cps100e
Dietolf (Dee) Ramm http:/www.cs.duke.edu/~dr Robert A. Wagner http:/www.cs.duke.edu/~raw
CompSci 100E
1.1
What is Computer Science?
What is it that distinguishes it from the separate subje
CompSci 100E
http:/www.cs.duke.edu/courses/fall06/cps100e
Dietolf (Dee) Ramm http:/www.cs.duke.edu/~dr Robert A. Wagner http:/www.cs.duke.edu/~raw
CompSci 100E
1.1
What is Computer Science?
What is it that distinguishes it from the separate subj
Outline Introduction To Computers and Programming
Computer and information History of computer technology
CS 1410 Comp Sci with C+
Introduction to Computers and Programming
1
CS 1410 Comp Sci with C+
Introduction to Computers and Programming
CompSci 100E Dietolf (Dee) Ramm
http:/www.cs.duke.edu/courses/cps100e/spring06 http:/www.cs.duke.edu/~dr
CompSci 100E
1.1
What is Computer Science?
What is it that distinguishes it from the separate subjects with which it is related? What is the l
CompSci 100E Dietolf (Dee) Ramm
http:/www.cs.duke.edu/courses/cps100e/spring05 http:/www.cs.duke.edu/~dr
CompSci 100E
1.1
What is Computer Science?
What is it that distinguishes it from the separate subjects with which it is related? What is the l
CompSci 100E Dietolf (Dee) Ramm
http:/www.cs.duke.edu/courses/cps100e/spring06 http:/www.cs.duke.edu/~dr
CompSci 100E
1.1
What is Computer Science?
What is it that distinguishes it from the separate subjects with which it is related? What is the
COMP 102: Computers and Computing
Lecture 6: Introduction to Scripting
Instructor: Joelle Pineau (jpineau@cs.mcgill.ca)
Class web page: www.cs.mcgill.ca/~jpineau/comp102
Programming basics
Difference between a programming language and a program.
COMP 102: Excursions in Computer Science
Lecture 8: Of Arrays and Algorithms
Instructor: Joelle Pineau (jpineau@cs.mcgill.ca)
Class web page: www.cs.mcgill.ca/~jpineau/comp102
Quick recap of loops and variables
Example: Calculate the sum of (inte
COMP 102: Computers and Computing
Lecture 6: Introduction to Scripting
Instructor: Kaleem Siddiqi (siddiqi@cim.mcgill.ca)
Class web page: www.cim.mcgill.ca/~siddiqi/102.html
Programming basics
Difference between a programming language and a prog
Chapter 1 Notes Computers- machines that perform very simple tasks according to specific instructions Program- a set of instructions for a computer to follow Software- a collection of programs Hardware- the physical machines that make up a computer C
COMP1200 Perspectives on Computing
Lecture notes by Brendan McKay
COMP1200: lecture 17
2008
1
History of Computing
What is a computer? What essential ideas preceded computer hardware? How did computing technology develop?
COMP1200: lecture 1
Outline
Selection Control Structures
Boolean Expressions Boolean Operators Relational Operators if else statement
CS 1410 Comp Sci with C+
Selection Control Structures
1
CS 1410 Comp Sci with C+
Selection Control Structures
2
Control Struct
COMP 102: Excursions in Computer Science
Lecture 17: Computability
Instructor: Joelle Pineau (jpineau@cs.mcgill.ca)
Class web page: www.cs.mcgill.ca/~jpineau/comp102
Paris, 1900
On 8 August 1900, at the Paris 2nd International Congress of Mathema