welcome to cs 105 intro comp pgm’g i

25
1 Welcome to CS 105 Intro Comp Pgm’g I Welcome to IIT too?

Upload: onawa

Post on 06-Jan-2016

52 views

Category:

Documents


0 download

DESCRIPTION

Welcome to CS 105 Intro Comp Pgm’g I. Welcome to IIT too?. CS 105, Sections 07, 09 Spring 2011. Dr. Jim Sasaki [email protected] , 312-567-5176 Office Hours: (SB 110) MW 11:30 am – 12:30 pm; R 1–2 pm http://www.cs.iit.edu/~cs105. Meetings. Lecture:Wed 6:25 – 8:05 pm, SB 104 - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Welcome to CS 105 Intro Comp Pgm’g I

1

Welcome to CS 105Intro Comp Pgm’g I

Welcome to IIT too?Welcome to IIT too?

Page 2: Welcome to CS 105 Intro Comp Pgm’g I

2

CS 105, Sections 07, 09

Spring 2011• Dr. Jim Sasaki

[email protected], 312-567-5176

• Office Hours: (SB 110)

• MW 11:30 am – 12:30 pm; R 1–2 pm

• http://www.cs.iit.edu/~cs105

Page 3: Welcome to CS 105 Intro Comp Pgm’g I

3

• Lecture: Wed 6:25 – 8:05 pm, SB 104

• Labs: Thu 6:25 – 7:15 pm

• Section 07: SB 108

• Section 09: Rice campus

Meetings

Page 4: Welcome to CS 105 Intro Comp Pgm’g I

4

CS Intro Courses• CS 105: One semester; requires little or no previous

programming experience. Uses C++

• CS 115-116: Two semester sequence. Assumes previous programming experience. Uses C++ or Java. Primarily for CS majors

• CS 201: One semester accelerated combination of CS 115 & CS 116, requires previous programming experience. Uses Java.

Page 5: Welcome to CS 105 Intro Comp Pgm’g I

5

CS 105 – Required Textbook and Lab

Manual

• “C++Programming: From Problem Analysis to Program Design”, by D.S. Malik

• 2nd (YELLOW) OR 3rd (GREEN) Edition OR 4th (BROWN) Edition

Page 6: Welcome to CS 105 Intro Comp Pgm’g I

6

End-of-Semester Score

• Labs – 20%

• Project – 10%

• 2 Quizzes – 5% each

• Exam I (in Lecture) – 10%

• Exam II (in Lecture & Lab) – 20%

• Final Exam – 30%

• Must pass Final Exam to pass course

Page 7: Welcome to CS 105 Intro Comp Pgm’g I

7

CS105 Labs

• Labs prepare you for tests.

• Labs assigned in handout; on website

• Consist of a reading assignment and exercises from Malik textbook

• Lab exercises comprised of Exercises and Programming Exercises (located at end of each Chapter in textbook).

Page 8: Welcome to CS 105 Intro Comp Pgm’g I

8

CS105 Labs

• Work on personal or campus computers.

• You’re expected to complete a Lab BEFORE your Lab section meets.

• Save .cpp file(s) to flash drive, or send to yourself in email and bring to Lab section for discussion and questions. (See more in Lab 0.)

Page 9: Welcome to CS 105 Intro Comp Pgm’g I

9

CS105 Labs (Cont)

• Labs Are Not Graded.

• Lab credit comes from attending and participating in lab session.

• Arrive late? Leave early? Half credit.

• TA will cover Labs/questions/other topics in Lab session.

Page 10: Welcome to CS 105 Intro Comp Pgm’g I

10

Expectations

• Attendance in Lectures and Labs

• Completion of Tests (= Exams + Quizzes)

• Four to Six hours per week on homework

• Outside help if necessary

• No Cheating (Tests, Project)

• Have fun!!

Page 11: Welcome to CS 105 Intro Comp Pgm’g I

11

Class Courtesy Rules

• No swearing or other inconsiderate behavior

• Turn off cell phones; no laptops, iPads, etc.

• In Lab: No Internet browsing, emailing, gaming, IM-ing (Hey, it’s only 50 minutes!)

• Questions, Discussions, and Ideas are welcome.

Page 12: Welcome to CS 105 Intro Comp Pgm’g I

12

Missing a Test

• If you will miss an Test (= Exam or Quiz), make arrangements BEFORE the test date.

• Test dates already posted.

• If Emergency:

• Medical problem: Doctor/Hospital note

• Family problem: Contact info for parents

Page 13: Welcome to CS 105 Intro Comp Pgm’g I

13

Unacceptable Excuses for Missing a Test

• Didn’t know when test was.

• Had a game/match/practice/doctor’s app’t.

• Missed the bus.

• Slept late.

• Felt sick [but not sick enough to see Doctor].

• I’m just a freshman.

• Roommate took my alarm clock/textbook/underwear

• If any of above happen, get to the test AS SOON AS POSSIBLE !!!

Page 14: Welcome to CS 105 Intro Comp Pgm’g I

14

Ethics: We’re For It!!

• Tests: Closed Everything: Book, Notes, ….

• Open ears (no mp3 players, cell phones, etc).

• Labs should be done independently, but working with others is acceptable.

• Project: Individual; to Be Announced.

Page 15: Welcome to CS 105 Intro Comp Pgm’g I

15

CS 105 – Web Page

• http://www.cs.iit.edu/~cs105/wed_eve

• Click on Syllabus

• Weekly assignments

• Quiz and Exam dates

• Lecture slides

• TA and instructor office hours

• Other course information

Page 16: Welcome to CS 105 Intro Comp Pgm’g I

16

Where to Get Help• http://www.cs.iit.edu/~cs105• Instructor’s office hours• TA’s office hours, Lab time - Any TA

Can answer questions• ARC: Academic Resource Center has

tutors available (http://arc.iit.edu) • Internet: Search for “C++

tutorial/help/etc.”• GET HELP EARLY RATHER THAN

LATER!!!

Page 17: Welcome to CS 105 Intro Comp Pgm’g I

17

Avoid This Final Exam

Page 18: Welcome to CS 105 Intro Comp Pgm’g I

18

Course Philosophy

• Computer Science Side• Problem Solving• Logical Thought• Programming in C++

Page 19: Welcome to CS 105 Intro Comp Pgm’g I

19

Course Philosophy

• “Real World” Side• Human Nature• Corporate World• Surviving during and after College

Page 20: Welcome to CS 105 Intro Comp Pgm’g I

20

Problem Solving

• Arrange a deck of cards by suit and rank

• How would you do this?

• How would you tell a child to do this?

• How would you tell a computer to do this?

Page 21: Welcome to CS 105 Intro Comp Pgm’g I

21

Problem Solving

• CS 105 develops logic skills to solve problems by writing a program.

• A program is a problem-solving tool.

• Computers follow instructions they’re given.

• They don’t have “intuition” or make decisions “on their own”.

Page 22: Welcome to CS 105 Intro Comp Pgm’g I

22

Why Use a Program?

• Computers perform tasks many times faster than a person.

• Computers are more consistent than a person.

• Computers can work 24-7.

Page 23: Welcome to CS 105 Intro Comp Pgm’g I

23

Terminology• 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) for use in a new program.

• Executable: The result of compiling and linking a source program; the “.exe” file that the computer can run

Page 24: Welcome to CS 105 Intro Comp Pgm’g I

24

C++ Required Elements

• Every C++ program must have:

• int

• main()

• {

• }

Page 25: Welcome to CS 105 Intro Comp Pgm’g I

25

// Sam Smith// CS 105// Section 07#include <iostream>using namespace std;intmain(){ cout << “Hello World!!” << endl; return (0);}

Your First Program