CPS1192 COMPUTER SCIENCE II Fall Semester, 2013 08/27/2013 Lecture 1: Overview Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER SCIENCE CENTRAL.

Slides:



Advertisements
Similar presentations
CPS2236 Contemporary Operating Systems Fall Semester, 2013
Advertisements

CSEN5314 Database Systems Spring Semester, 2015
COSC 120 Computer Programming
CS150 Introduction to Computer Science 1 Professor: Chadd Williams.
CSCE156: Introduction to Computer Science II Instructor Stephen Scott Website
Welcome to IIT and cs105!. CS Secs Jon Hanrath SB Office Hours: –MW 8:00 A.M. – 9:45 A.M. –W 5:00 P.M. – 6:00 P.M
CS101- Lecture 11 CS101 Fall 2004 Course Introduction Professor Douglas Moody –Monday – 12:00-1:40 – – –Web Site: websupport1.citytech.cuny.edu.
Topic R3 – Review for the Final Exam. CISC 105 – Review for the Final Exam Exam Date & Time and Exam Format The final exam is 120-minutes, closed- book,
COMP 110 Introduction to Programming Jingdan Zhang June 20, 2007 MTWRF 9:45-11:15 am Sitterson Hall 014.
COMP 110 Introduction to Programming Mr. Joshua Stough August 22, 2007 Monday/Wednesday/Friday 3:00-4:15 Gardner Hall 307.
CSEN 5323 Computer Communication Networks Fall Semester, 2014
PROBABILITY AND STATISTICS FOR ENGINEERS Session 1 Dr Abdelaziz Berrado MTH3301 —Fall 09.
COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.
Introduction to Programming Using C++ Dr. Mohamed Khafagy.
CPSC 100 – Personal Computers & Their Uses Fall 2010 Dongsheng Che Department of Computer Science East Stroudsburg University.
COP4020/CGS5426 Programming languages Syllabus. Instructor Xin Yuan Office: 168 LOV Office hours: T, H 10:00am – 11:30am Class website:
Computer Science 102 Data Structures and Algorithms V Fall 2009 Lecture 1: administrative details Professor: Evan Korth New York University 1.
1 CSE 2341 Object Oriented Programming with C++ Note Set #1.
CSE 501N Fall ‘09 00: Introduction 27 August 2009 Nick Leidenfrost.
Welcome on Board CSCE 106. Course Information (Lecture 0) Eman Nasr MSc, MPhil, PhD CSCE106 – Fundamentals of Computer Science.
1 COMS 261 Computer Science I Title: Course Introduction Date: August 25, 2004 Lecture Number: 01.
Object Oriented Programming (OOP) Design Lecture 1 : Course Overview Bong-Soo Sohn Assistant Professor School of Computer Science and Engineering Chung-Ang.
Instructor: Tina Tian. About me Office: RLC 203A Office Hours: Wednesday 1:30 - 4:30 PM or .
WEEK-1 PRINCIPLES OF MANAGEMENT BUSN 107, Özge Can.
Object Oriented Programming (OOP) Design Lecture 1 : Course Overview Bong-Soo Sohn Associate Professor School of Computer Science and Engineering Chung-Ang.
CST 229 Introduction to Grammars Dr. Sherry Yang Room 213 (503)
Welcome to IIT and cs115!.
CPS3320 DATABASE SYSTEMS Spring Semester, /13/2014 Overview Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER SCIENCE CENTRAL STATE UNIVERSITY,
ICS 102 Computer Programming University of Hail College of Computer Science & Engineering Computer Science and Software Engineering Department.
1 Object Oriented Design COP 3331 Spring 2011 MWF 11:50 AM – 12:40 PM CHE 103 Instructor:Dr. Rollins Turner Dept. of Computer Science and Engineering ENB.
CS355 Advanced Computer Architecture Fatima Khan Prince Sultan University, College for Women.
INTRODUCTION TO COMPUTER SCIENCE DoD Summer Camp, /16/2014 Overview Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER SCIENCE CENTRAL STATE.
CSCI 51 Introduction to Computer Science Dr. Joshua Stough January 20, 2009.
Bilgisayar Mühendisliği Bölümü CENG 102 – Computer Programming Melek OKTAY Syllabus Administrative Information.
Introduction to Data Structures
Computer Science 102 Data Structures and Algorithms CSCI-UA.0102 Fall 2012 Lecture 1: administrative details Professor: Evan Korth New York University.
CSEB114: PRINCIPLE OF PROGRAMMING Course Introduction.
COMP2012 Object-Oriented Programming and Data Structures Fall 2015.
CMSC 2021 CMSC 202 Computer Science II for Majors Fall 2002 Mr. Frey (0101 – 0104) Mr. Raouf (0201 – 0204)
ICS102: Introduction To Computing King Fahd University of Petroleum & Minerals College of Computer Science & Engineering Information & Computer Science.
Principles of Computer Science I Honors Section Note Set 1 CSE 1341 – H 1.
Object Oriented Programming (OOP) Design Lecture 1 : Course Overview Bong-Soo Sohn Associate Professor School of Computer Science and Engineering Chung-Ang.
Object Oriented Programming (OOP) Design Lecture 1 : Course Overview Bong-Soo Sohn Assistant Professor School of Computer Science and Engineering Chung-Ang.
OO Data Structures SE Dr. Samir Tartir 2010/2011 Second Semester.
June 19, Liang-Jun Zhang MTWRF 9:45-11:15 am Sitterson Hall 011 Comp 110 Introduction to Programming.
CS Class 08 Today  Exercises  Nested loops  for statement  Built-in functions Announcements  Homework #3, group solution to in-class.
ICS202 Data Structures King Fahd University of Petroleum & Minerals College of Computer Science & Engineering Information & Computer Science Department.
WELCOME to CS244 Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin -
CMSC 2021 CMSC 202 Computer Science II for Majors Spring 2002 Sections Ms. Susan Mitchell.
CMSC 2021 CMSC 202 Computer Science II for Majors Spring 2001 Sections Ms. Susan Mitchell.
CMSC 2021 CMSC 202 Computer Science II for Majors Spring 2003 Mr. Frey (0101 – 0104) Mr. Raouf (0201 – 0204)
CPS3316 COMPUTER NETWORKS Spring Semester, /13/2014 Overview Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER SCIENCE CENTRAL STATE UNIVERSITY,
CS 162 Introduction to Computer Science II Winter, 2014: 60 Spring, 2014: 60 Summer, 2014: 71.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
C Programming Lecture 1 : Introduction Bong-Soo Sohn Associate Professor School of Computer Science and Engineering Chung-Ang University.
1 CS 381 Introduction to Discrete Structures Lecture #1 Syllabus Week 1.
CSC 205 Java Programming II Introduction. Topics Syllabus Course goals and approach Review I Java language fundamentals.
Data Structures and Algorithms in Java AlaaEddin 2012.
Course Information CSE 2031 Fall Instructor U.T. Nguyen Office: CSE Home page:
CS Class 04 Topics  Selection statement – IF  Expressions  More practice writing simple C++ programs Announcements  Read pages for next.
“Babeş-Bolyai” University Faculty of Economics and Business Administration Second semester 1st year, English line of study Business IT Introductive course.
Andy Wang Object Oriented Programming in C++ COP 3330
Computer Engineering Department Islamic University of Gaza
CS101 Computer Programming I
CSc 020: Programming Concepts and Methodology II
CS5040: Data Structures and Algorithms
Computer Science 102 Data Structures CSCI-UA
Andy Wang Object Oriented Programming in C++ COP 3330
C Programming Lecture 1 : Introduction
C Programming Lecture 1 : Introduction
Presentation transcript:

CPS1192 COMPUTER SCIENCE II Fall Semester, /27/2013 Lecture 1: Overview Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER SCIENCE CENTRAL STATE UNIVERSITY, WILBERFORCE, OH 1

Outline  Course Administration  Course Overview  Review of Computer Science I  Introduction to Computers and Programming  Introduction to C++  Expressions and Interactivity  Making Decisions  Loops and Files 2

Administrivia  Class Web Page   Syllabus Class Policy  Class Notes Posted before class Read class notes before class  Assignments Posted after class Pay attention to the due dates  Blackboard  Posting grades  Sending out s to class 3

Administrivia-cont.  Instructional Addresses   Instructor: Ashraf Yaseen  Office phone:  Office location: Henderson Hall, 139  Office hours: M,W,F: 10:00AM-2:00PM T,R: 2:00PM-3:00PM by appointment 4

Administrivia-cont.  Grading Policy Quizzes will be announced in class Late Assignment/HW Policy 0~24 hrs: -5% 24~48 hrs: -10% >48 hrs: grade = 0 5 NumberActivities/ Evaluation MethodsPercentages 2Term Exam30% 1Final Exam ( Essay + Final Lab) 30% 16Lab Assignment/Homework40% Class participation and presentation quality will also impact final grade >=90AExcellent 80-89BVery Good 70-79CGood 60-69DPassed <60FFailed

Administrivia-cont.  Textbook  Starting out with C++ from Control Structures through Objects. By Tony Gaddis  Supplies/Materials:  Students are encouraged to install Visual C++ Express on their laptops 6

CSU Honor Code  The Honor Code applies to your conduct in this course. If you have questions, talk to me  HOMEWORK:  All submitted work must be your own  Do not copy another student’s work  Do discuss material and homework with classmates, professor  If you work with someone, write this on the first page of your submitted work  EXAMS: Do not give assistance to or receive assistance from anyone but professor  Violations of this Code are treated seriously  Evidence of cheating, plagiarism, or unauthorized collaboration will result in a 0 grade for quiz/assignment/exam  May have further consequences 7

How to get help?  Ask questions in class (or after class)  Attend office hours  me  Make sure that you put “CPS1192” in your subject line  Send it from your.odu account It wouldn’t come to my spam folder  State clearly what you need in your 8

How to Get an A in this Class  Attendance  Attend class regularly and on time  Ask questions  Work on in-class exercises and lab assignments  Notes  Read over class notes before class  Review class notes after class  Homework  Get started as early as possible  Contact me if you encounter problems 9

What You Will Learn  CPS 1192 prepares students for the concept and skill of object-oriented programming (OO).  Topics include class and object, class inheritance, pure virtual function, polymorphism, template function and template class, exception handling, data structure 10

What You Will Learn-cont.  Upon successful completion of this class, you will be able to define and implement  Classes  Array of objects  Class Inheritance.  Pure virtual function and abstract class.  Polymorphism.  Template function and template class.  Exception handling  Data structure: stack, queue and linked-list. 11

Topics  C++ programming Overview  Classes and Data Abstraction  Inheritance and Composition  Pointers, Classes, Lists, and Virtual Functions  Overloading and Templates  Exception Handling  Recursion  Linked Lists  Searching and Sorting Algorithms  Stacks and Queues 12

Importance of This Course  Prerequisite for  You must get a C or better to pass  Foundation for advanced courses  Operating Systems  Programming Language  Compiler Design  Networking  Parallel Programming  Algorithm  I/O Management 13

About Me  I got my bachelor’s from JUST (Jordan University of Science & Technology)  Master’s from NYiT (New York Institute of Technology)  Ph.D. (in process) ODU (Old Dominion University)  My Research  Computational Biology  High Performance Computing 14

How about you? 15  Tell us your name and year  In a few sentences, tell us about you, e.g.  Where are you from?  What is your major?  Career plans or after-college plans?  Favorite hobby, sport?  Something interesting about yourself  Expectation in this class

Greater Expectations  Class Attendance & Participation: mandatory  In-Class exercises/discussion questions Solidify your understanding Help gauge your understanding Increase interactivity (reduce boredom)  You are expected to try your best in class  By attending, you work less out class.  If you miss class, you are responsible for learning what you missed 16

Greater Expectations-cont.  Behave and perform in a professional manner  Be punctual, dress appropriately and be attentive  Respect the rights of all participants by turning off any device that could cause a disturbance during class (this includes pagers, cell phones, personal alarms and iPod music players).  Negative behavior patterns in class (e.g. unexcused absences, tardiness, and class disruptions, wearing hats, eating, drinking, smoking and sleeping) will be treated seriously  could result in a reduction of up to 12.5% (labs) of a student’s final grade. 17

While in Class,  No Facebook  No Cell phone  No Music players  No Topic unrelated to class.  No Sleep  No Food  No bad jokes 18

Overview of CPS 1192: Programming in C++ 19

Chapter 1: Introduction to Computers and Programming  A program is a set of instructions that the computer follows to perform a task  An integrated development environment, or IDE, combine all the tools needed to write, compile, and debug a program into a single software application.  Examples are Microsoft Visual C++, Turbo C++ Explorer, CodeWarrior, etc 20

What is a Program Made of?  Common elements in programming languages:  Key Words  Programmer- Defined Identifiers  Operators  Punctuation  Syntax 21

Chapter 2: Introduction to C++ 22 // sample C++ program #include using namespace std; int main() { cout << "Hello, there!"; return 0; } preprocessor directive comment which namespace to use beginning of function named main beginning of block for main output statement end of block for main string literal send 0 to operating system The Parts of a C++ Program

cout/cin, include  cout/cin  cout << "Programming is" << endl; cout << "fun!";  int grade; cin>>grade;  #include Directive 23

Variables and Literals 24

Identifiers 25 IDENTIFIERVALID?REASON IF INVALID totalSales Yes total_Sales Yes total.Sales NoCannot contain. 4thQtrSales NoCannot begin with digit totalSale$ NoCannot contain $

Data Types & Defining Variables 26

Char, String 27

Variable Scope 28

Chapter 3: Expressions and Interactivity  Cin Object Reads Different Data Types  Mathematical Expressions  Order of Operations  Algebraic Expressions 29

Type Casting 30

Combined Assignment Operators 31

Formatting Output  Stream Manipulator 32

33

Mathematical Library Functions  Require cmath header file  Take double as input, return a double  Commonly used functions: 34 sin Sine cos Cosine tan Tangent sqrt Square root log Natural (e) log abs Absolute value (takes and returns an int)

Chapter 4: Making Decisions  Relational Operators >, =, ==, !=  Do not confuse = and ==  Relational Expressions  The if Statement 35

Expanding if Statement 36 Nested if Statements if/else if Statement

Logical Operators, AND, OR, NOT  int x = 12, y = 5, z = -4; 37 (x > y) && (y > z)true (x > y) && (z > y)false (x <= z) || (y == z)false (x <= z) || (y != z)true !(x >= z)false

switch Statement 38

Chapter 5: Loops and Files 39

While loop 40

Do-while 41

For loop 42

Nested for Loop Inner Loop Outer Loop Breaking and Continuing a Loop

Using Files for Data Storage 44

Summary  Syllabus  Review of CPS1191 Topics  Introduction to Computers and Programming  Introduction to C++  Expressions and Interactivity  Making Decisions  Loops and Files

What I want you to do  Review Chapters 1-5 and Class Slides  Prepare for the 2 nd part of the review  Chapters 6-8 from CPS1191 Functions Arrays Searching and Sorting Arrays  Enjoy your new semester