Warmup Write a function to add two integer parameters and return the result.

Slides:



Advertisements
Similar presentations
1 Class motto: What’s this button for?. 2 CMSC104 Problem Solving and Computer Programming Fall 2011 Section 4 Richard Chang.
Advertisements

Introduction to Computer Programming I CSE 113
CMSC 132: Object-Oriented Programming II
CMSC 132: Object-Oriented Programming II Nelson Padua-Perez William Pugh Department of Computer Science University of Maryland, College Park.
CSC 171 – FALL 2004 COMPUTER PROGRAMMING LECTURE 0 ADMINISTRATION.
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.
WEEK 1 CS 361: ADVANCED DATA STRUCTURES AND ALGORITHMS Dong Si Dept. of Computer Science 1.
PLEASE GRAB A SEAT ANYWHERE FOR NOW. Welcome to the CMSC 201 Class!!! Mr. Lupoli ITE 207.
Warmup Write a function to add two integer parameters and return the result.
Introduction to EGR115 1.Welcome! 2.Your instructors 3.Class format 4.Requirements 5.Topics 6.Grading 7.Help 1.
Careers in Computer Science What is computer science? Who should major in computer science? What do computer scientists really do? Research Paper Alice.
CSCI 51 Introduction to Computer Science Dr. Joshua Stough January 20, 2009.
CS 140 Computer Programming (I) Second semester (3 credits) Imam Mohammad bin Saud Islamic University College of Computer Science and Information.
Welcome to CS 115! Introduction to Programming. Class URL Write this down!
Welcome CSCI 1100/1202 Intro to Computer Science Winter 2002.
Introduction to Data Structures
Course Information Sarah Diesburg Operating Systems COP 4610.
CMSC 2021 CMSC 202 Computer Science II for Majors Fall 2002 Mr. Frey (0101 – 0104) Mr. Raouf (0201 – 0204)
Course Information Andy Wang Operating Systems COP 4610 / CGS 5765.
Course Introduction Andy Wang COP 4530 / CGS 5425 Fall 2003, Section 4.
Principles of Computer Science I Honors Section Note Set 1 CSE 1341 – H 1.
COP4610/CGS5765 Operating Systems Syllabus. Instructor Xin Yuan Office: 168 LOV Office hours: W M F 9:10am – 10:00am, or by appointments.
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.
Data Structures and Algorithms in Java AlaaEddin 2012.
Computer Networks CNT5106C
Dr. Sajib Datta Jan 15,  Instructor: Sajib Datta ◦ Office Location: ERB 336 ◦ Address: ◦ Web Site:
Spring 2008 Mark Fontenot CSE 1341 – Honors Principles of Computer Science I Note Set 1 1.
1 CMSC104 Problem Solving and Computer Programming Fall 2008 Section 0101 John Y. Park.
CMSC 104, Version 9/011 Introduction CMSC 104 Problem Solving and Computer Programming Fall 2001.
Computer Network Fundamentals CNT4007C
Andy Wang Object Oriented Programming in C++ COP 3330
Computer Engineering Department Islamic University of Gaza
Networking CS 3470, Section 1 Sarah Diesburg
CSc 1302 Principles of Computer Science II
Course Introduction – Fall 2014
CSc 020: Programming Concepts and Methodology II
Computer Networks CNT5106C
CS 1150 – Lab #8 – Using Algorithms for Painting
Course Information Mark Stanovich Principles of Operating Systems
Computer Science 102 Data Structures CSCI-UA
September 27 – Course introductions; Adts; Stacks and Queues
CSE1320 INTERMEDIATE PROGRAMMING
CSE1320 INTERMEDIATE PROGRAMMING
Course Information and Introductions
Introduction CMSC 104 Problem Solving and Computer Programming
CS 201 – Data Structures and Discrete Mathematics I
Lecture 1: Introduction
Computer Networks CNT5106C
Andy Wang Operating Systems COP 4610 / CGS 5765
Andy Wang Object Oriented Programming in C++ COP 3330
Andy Wang Operating Systems COP 4610 / CGS 5765
Andy Wang Operating Systems COP 4610 / CGS 5765
CSE1320 INTERMEDIATE PROGRAMMING
CSE1320 INTERMEDIATE PROGRAMMING
Andy Wang Operating Systems COP 4610 / CGS 5765
Lab 1: Getting started ICE0125 Programming Fundamentals II – C/C++
CS 1111 Introduction to Programming Fall 2018
Accelerated Introduction to Computer Science
Problem Solving and Computer Programming
Andy Wang Operating Systems COP 4610 / CGS 5765
Computer Engineering Department Islamic University of Gaza
Computer Networks CNT5106C
Welcome to the CMSC 104 Class!!!
Andy Wang Operating Systems COP 4610 / CGS 5765
Introduction CMSC 104 Problem Solving and Computer Programming
CS31 Discussion 1H Fall18: week 1
Introduction CMSC 104 Problem Solving and Computer Programming
CS201 – Course Expectations
Presentation transcript:

Warmup Write a function to add two integer parameters and return the result

CMSC 202 Lesson 1 Introduction

Welcome! Who am I? What is this class? Why should you care? Dana Wortman, Instructor What is this class? CMSC 202: Computer Science 2 Design and Development of Software C++ by Torture (…I mean…no, that’s what I mean) Why should you care? The “Gateway”

Announcements No Lab this week No TA Office Hours this week Course Website: http://www.csee.umbc.edu/courses/undergraduate/202/spring06/

Syllabus High Points Attendance Exams Projects (5 at 7% each) <= 1 day late = -25% > 1 day late = 0 Homeworks (2 at 2.5% each) Blackboard Academic Dishonesty Email Policies

Tips for Success Attend Class Keep your Text handy Read Carefully Memorize the Coding Standard Start EARLY (>= 15 hours per project!) Learn a Linux editor Ditch Visual C++ Review the Resources page Read the Blackboard discussion Ask Questions

MOST IMPORTANT Save Early, Save Often Modular Composition Write no more than 5 lines Save Compile Test (optional) Repeat

Submitting Work Use GL machines Log into: Project 0 will: linux.gl.umbc.edu Project 0 will: Ensure the submit system is setup for you Help you learn the submit system

Need Help? Teaching Assistants: Instructor Help Center 2.5 Graduate Me! Help Center Open M-F 10-4 (ish?) TBA

What is Computer Science? The systematic study of computing systems and computation. The body of knowledge resulting from this discipline contains theories for understanding computing systems and methods; design methodology, algorithms, and tools; methods for the testing of concepts; methods of analysis and verification; and knowledge representation and implementation.

Where does this class fit? CMSC 202 is primarily focused on: Design methodology Algorithms Tools Why C++? C++ is a superset of C Objects: greater organization & easier maintenance More than 50% of jobs in CS request C++

Debugging What is a bug? Three primary types: Application does the unexpected May not cause a failure (core dump, crash, etc.) Three primary types: Syntax – caught by compiler Modular – caught by the linker Logic – caught by….uh oh…the developer!!!

Logic Bugs – Where’s the Bug? int a = 7; int b = 6; int c = 2; float d = a + b + c / 3.0;

Debugging Two basic strategies Print each variable during run… quick for some bugs, but tedious Use a debugging tool Preferred method! GDB Visual C++ Debugger Eclipse CDT and other opensource C++ IDE/Debuggers

Essential Debugger Features Line by line code execution Stacktrace of previously called functions View variable values at any line View POINTER values at any line Stop the code at a certain point (breakpoint) Show line where program core-dumps

Assignment For next class: Before 9/10: Before 9/17: Talk to me if you are not registered! Log into your GL account Email me with problems Check out the BlackBoard site Check out the Course website Before 9/10: Do Project 0 Will be posted once submission system is setup Email me if you have problems Before 9/17: Do Homework 1 Will be posted on 9/10

Challenge For next class: Write a function that sorts an array that is passed as a parameter (your function can also accept the size of the array) Use the FEWEST lines of code Can you do it in less than 10? Less than 5?