welcome to cs 105 (and iit?)cs105/wed_eve/lect01_introduction_format.pdfuses java. 4. cs 105 –...

25
1 Welcome to CS 105 (and IIT?)

Upload: others

Post on 07-Mar-2021

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

1

Welcome to CS 105(and IIT?)

Page 2: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

CS 105, Sections 07, 09•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

2

Page 3: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

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

•Labs: Thu 6:25 – 8:05 pm

•Section 07: SB 108

•Section 09: Rice campus

Meetings

3

Page 4: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

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.

4

Page 5: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

CS 105 – Required

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

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

5

Page 6: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

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

6

Page 7: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

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).

7

Page 8: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

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.)

8

Page 9: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

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.

9

Page 10: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

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!!

10

Page 11: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

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.

11

Page 12: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

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

12

Page 13: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

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 !!!

13

Page 14: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

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: To Be Announced.

14

Page 15: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

CS 105 – Web Page•http://www.cs.iit.edu/~cs105

•Click on Syllabus

•Weekly assignments

•Quiz and Exam dates

•Lecture slides

•TA and instructor office hours

•Other course information

15

Page 16: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

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.”

16

Page 17: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

Avoid This Final Exam17

Page 18: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

Course Philosophy•Computer Science Side

•Problem Solving

•Logical Thought

•Programming in C++

18

Page 19: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

Course Philosophy•“Real World” Side

•Human Nature

•Corporate World

•Surviving during and after College

19

Page 20: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

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?

20

Page 21: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

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”.

21

Page 22: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

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

22

Page 23: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

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

23

Page 24: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

C++ Required Elements•Every C++ Program Must Have:

•int

•main()

•{

•}

24

Page 25: Welcome to CS 105 (and IIT?)cs105/wed_eve/Lect01_Introduction_format.pdfUses Java. 4. CS 105 – Required •“C++Programming: From Problem Analysis to Program Design”, by D.S

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

Your First Program

25