CS 111 Lab
Instructor: Andy Abreu
Email:
andy.abreu.qc@gmail.com
Evening section: Class Website
Lecture Syllabus
Week # | Lectures | Homework | Important Note | Programs |
Week 1 |
No Lab Class
Lab switched with lecture |
|
|
|
Week 2 |
Slide 1: SSH and basic Unix commands
Slide 2: Editing_Compiling_Executing_C++ Slide 3: C++ Comments Slide 4: C++ Variables Slide 5: C++ Arithmetic Examples of How to Debug |
1.1. Download SSH secure shell on your home PC.
1.2. Make sure you have no trouble logging in. 1.3. Memorize all the commands 1.4. Email me so I can add you to email list - Name and Class 2.1. Try to compile and run the program here using g++ compiler and pico editor. |
How to Transfer a File from Terminal to Machine (for Mac users) | hello_world_Program |
Week 3 |
Labwork (Cout, Cin, Variables, arithemtic)
Labwork (Arithemtic, modulus) |
2.2. Homework 1
2.3. Homework 2 |
1. Homework 1 - Due 9/12
2. Homework 2 - Due 9/14 3. Quiz 1 - Tuesday 9/30 How to print booleans for HW 1 |
|
Week 4 |
Slide 1: C++ if statements
Labwork (if statements) Slide 2: C++ While loops Labwork (Simple while loops) |
Homework 3 |
Homework 3 - Due 9/20
Quiz 2 - Thursday 10/2 |
|
Week 5 | No Lab |
|
|
|
Week 6 |
Slide 1: Compound Comparisons
Labwork (Counter while loops) Slide 2: C++ for loops Labwork (For loops) |
Homework 4
Homework 4 help |
Homework 4 - Due 10/4
Quiz 3 - Tuesday 10/14 Uninitialized Variables |
|
Week 7 | Labwork (Nested For loops) |
Must hand in lab work for this week!!!
Homework 5 If you want to try more examples on Nested Loops refer to this document solution |
Lab (Nested For Loops) due 10/10
Homework 5 due 10/12 Quiz 4 - Thursday 10/16 |
|
Week 8 |
Slide 1: Intro to Functions
Labwork: Labwork (Using rand() and sqrt() function) Labwork: Midterm Review Questions |
Study for Midterm!!!
|
| |
Week 9 |
Slide 1: Functions
Slide 2: Scope of variables Labwork: Function_prototypes Labwork: Labwork - Writing Functions |
Homework 6: Finish Labworks for week 9 and submit
Submit all labs in one email |
Homework 6 due 10/31
Quiz 5 on Thursday 11/6 |
|
Week 10 |
Slide 1: Pass by Reference
Labwork_Pass By Reference Slide 2: Recursion Labwork_Recursion |
Homework 7 |
Homework 7 due 11/8
Quiz 6 on Thursday 11/13 |
|
Week 11 |
Slide 1: Arrays
Labwork: Labwork_Arrays |
Homework 8 |
Homework 8 due 11/15
Quiz 7 on Thursday 11/20 |
|
Week 12 |
Slide 1: 2D Arrays
Lab exercise: 2D arrays |
Homework 9: Submit the answers for this week's Lab exercise |
Homework 9 due 11/22
Quiz 8 Wed 11/26 HW 8 Question 1 Solution HW 8 Question 2 Solution A HW 8 Question 2 Solution B HW 8 Question 3 Solution HW 8 Question 4 Solution |
|
Week 13 |
Lab exercise: Arrays with Functions
Midterm 2 Review Lab cancelled - Email me any midterm review questions |
Homework 10: Submit the answers for this week's Lab exercise
Bring questions to study for midterm!!! |
Homework 10 - Due 11/29
HW 9 Solution Quiz 8 Tues 12/2 Quiz 9 Thurs 12/4 |
|
Week 14 |
Examples using arrays, functions, and recursion
Midterm 2 Review Slide 1: String and chars Lab exercise: String and chars |
Homework: Study for midterm 2 |
HW 10 Solution
bubblesort.txt |
|
Week 15 |
Slide 1: File input output
Slide 2: Break, Continue, ++, argc, argv Lab exercise: Exercise: File input & output |
Hand in the lab for extra HW points
Study for FINAL!!! |
|
|