CIS22A - Notes for Week 1, 9/23 - 9/26

Announcements and Reminders

  • Check attendance sheet
  • Waitlist add codes are on the attendance sheet
  • Tuesday's online time (7:00-8:15 pm)  will contain a demonstration of Code::Blocks compiler installation and use
  • Lab Exercise #1 is due Wednesday
  • Assignment #1 is due next Monday
  • Next week's online session will be held on Wednesday night (7:00-815 pm)

Topics

Terminology

Class Hours
       Lecture:
M/W 8:30-9:20 / ATC 311
       Online
Tuesday  7:00-8:15 pm  (ConferZoom
        Office Hours
Monday 8:00-8:30 am / ATC 311 (classroom)

The syllabus

The syllabus supplement

CodeLab
Web page
Access Code - DEAN-27288-JPPP-42

This class will require a considerable amount of time for reading the book, doing the lab exercises and the programming assignments. For success in this class, you must invest the time and keep up with it.

Academic Integrity Policy

DeAnza Computer Account

If you are registered in the class, you can get a Windows/Unix account.

Computer Lab Hours


Monday – Thursday                9 am – 8 pm
Friday                                       9 am – 4 pm
Saturday and Sunday             CLOSED

Computer Lab Rules
  • Eating and drinking are not allowed in the main lab and the classrooms.
  • All bottled water or soda cans should not be visible on the desks and should be kept in bags or backpacks.  Any beverage containers with liquid, include disposable coffee and soft drink cups must be finished before students enter the Computer Lab and ATC classrooms.
  • Students are not permitted to change or modify the monitor setting in ATC203 Computer Main Lab from horizontal to vertical mode.
Printing

De Anza students have to use ePRINTit system if they need hard copies.  There is one (1) ePRINTit station installed in room ATC 307.


Microsoft Imagine
The Microsoft Program will be available for all eligible CIS students to register and download selected software from Microsoft for free, after the census day.

Volunteer Teaching Assistants

SUGGESTIONS

  1. Get a computer account in the lab
  2. Download and install a C++ compiler on your own/home computer
  3. Read Chapter 1 in the textbook
  4. Do the first lab exercise

Code::Blocks compiler Installation - demonstation Monday at 9:30




A "Hello World" C++ program


What is a compiler?  What is an IDE?  What does it mean to compile?

Which compiler should you use?

Answer:  It doesn't matter, as long as you write Standard C++ code.

Code::Blocks
Microsoft Visual C++
NetBeans
Eclipse
Linux gnu

Program Development

Requirements
Analysis
Brainstorming
Write some code
Review, brainstorm some more
Write some more code
Review, brainstorm some more
Write some more code
...
Review, get some feedback, celebrate
...

Example

Given two sides of a right triangle, determine the length of the hypotenuse.

Compilation - what does it mean?

Source Code    === compile ===>   Object Code   === link ===>   Executable or Binary

Demonstration

Write, compile, and execute a program.

Program 1-1 Example from the textbook (Page 14)

What's a comment?
What does #include mean?
   pound sign (#)
Why does main() return int? 
What is void?
What is a keyword?
What is a literal?
   "string", constant, literal constant
What are braces?
What is cout ?
What is << ?
What is endl ?
What does return 0 mean?
What is cout?  

How to: simple output

Videos

Installing Code::Blocks - this video is a little dated, but still relevant

Understanding a Simple C++ Program



Read me
Beginning Programming

Methodologies

C++

lab exercise

programming assignment

computer program

code (noun)
code (verb)

computer account
computer lab (ATC 203)

compiler

IDE
Integrated Development Environment

source code
compile
compile errors
compile warnings
executable, binary
run, execute
output

equirements
analysis
brainstorming
code, write code
editor, text editor
IDE
Integrated Development Environment

Compilers
Code::Blocks
Microsoft Visual Studio
Microsoft Visual C++
MS Visual C++ 2012 Express
NetBeans
Eclipse
gnu compiler (Linux/Unix)

command-line compiler
gnu compiler, g++
compilation (noun)
compile (verb)
project
source file, source, source code
object file, object code
link (verb)
linker  (noun)
build, make
debug (verb)
debugger (noun)
executable (noun), binary (noun)
execute (verb), run (verb)

These don't count
#include
header file
<iostream>
namespace
using directive
int
type
main
void
braces
cout
ostream object
insertion operator
text data, "string"
endline, endl, newline
statement
return
comments
double
variable
cin
istream object
extraction operator
multiplication operator
assignment operator