Quiz 2 grades posted on blackboard Current average: 36 (72%)
Data in Main Memory is "volatile" File: Place for "permanent" data storage C: drive, A: drive, Flash drive, etc.
Output File Streams
In C+, the Programmer Can Declare Outp
Also Called Switch/Case Statement Just Case in Other Languages Selects Among Several Different Actions Can Only Select from Integer or Character If an Integer Value Is Matched, Statements under Control of that Case Block Are Executed
Class Average Median 100s 10:00 83.47 92 2 11:25 87.51 93 3 6:25 92.22 95 4 ALL 88.18 93 9
The while Loop
Syntax: while (condition) statement; while (condition) cfw_ statement; statement;
The for Loop
for (expression1;condition; express
Quiz Grades Posted on blackboard Quizzes Handed Back Next Wednesday
Programming Has 3 Types of Control: Sequential (normal): Control of Execution Proceeds One after the Other Selection (if-then-else): Control Proce
EXAM 2 in LECTURE AND LAB NEXT WEEK!
Exam 2 Next Week 33% of Exam in Lab Must Complete a Program in 50 Minute Lab Time 67% of Exam in Lecture 50 Minutes (last 50 Tuesday evening, or 50 on Wednesday) Know Your Programming Study Quiz 1 and 2, Exam
Imagine you are in a room with 3 switches. In an adjacent room there are 3 bulbs (all are off at the moment), each switch belongs to one bulb. It is impossible to see from one room to another. How can you find out which switch belongs to
Exam 1 Next Week
54 Quizzes Taken Average: 38.63 Median: 41 3 Perfect Scores
Syntax: if (condition) cfw_
/MUST HAVE ()!
condition Must Evaluate to "True" or "False" Two Types of Operators for Conditio
Five hundred begins it, five hundred ends it Five in the middle is seen, First of all figures, first of all letters, Take up the stations between. Join all together, and then you will bring, Before you the name of an eminent king.
#include <iostream> / WHAT IS THE OUTPUT OF THIS PROGRAM? #include <vector> using namespace std; int main() cfw_ vector<char> output(16, 'F');int values = cfw_4,5,7,9,10,23,13;int i; if (values = 5) output = 'o'; else output = 'y'; if (values[0
If You Missed Last Week
Go to www.cs.iit.edu/~cs105, Click on Syllabus, review lecture 01 notes, course schedule Contact your TA (email on website) Schedule going over Lab 0 with them AS SOON AS POSSIBLE!
Writing a C+ Program
Write Pseudocode (Design) T
Source Code: the Original Problem-Solving, Logical Solution Written in a Programming Language (e.g. C+) Compiling: the Action of Turning the Source Code into a Format the Computer Can Use Linking: the Action of Bringing in Already Written Code (Libraries)
Project Check Due Next Week in Lab Phase I main(), menu() Functions and Reading in File Stub Functions Last Lectures Next Week Project and Evaluations Final Exam Reviews Final Exam Times:
Mon 10:00 Class:
Mon 11:25 Class:
string Is a Type in C+ Library <string> May Initialize or Assign with Double Quoted Values May Compare using Equality Operators Can Access Single Characters using Square Bracket Operator ([ ]) Can Use length() Object Function Can Add to