ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Jan. 20 th, 2009.

Slides:



Advertisements
Similar presentations
CISC Data Structures Ben Perry University of Delaware Summer 2011.
Advertisements

08/2012Tanya Mishra1 EASYC for VEX Cortex Llano Estacado RoboRaiders FRC Team 1817.
Introduction to Programming Lecture 15. In Today’s Lecture Pointers and Arrays Manipulations Pointers and Arrays Manipulations Pointers Expression Pointers.
Programming Languages and Paradigms The C Programming Language.
© Janice Regan, CMPT 128, February CMPT 128: Introduction to Computing Science for Engineering Students Pointers.
Engineering EG167C - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect M1 P. 1Winter Quarter Midterm I Review.
Chapter 3: Beginning Problem Solving Concepts for the Computer Programming Computer Programming Skills /1436 Department of Computer Science.
V Avon High School Tech Club Agenda Old Business –Delete Files New Business –Week 15 Topics: SPARC Announcement Intro to HTML/CSS –Questions?
Chapter 4 Control Structures I. Objectives ► Examine relational and logical operators ► Explore how to form and evaluate logical (Boolean) expressions.
Wednesday, 12/11/02, Slide #1 CS 106 Intro to Comp. Sci. 1 Wednesday, 12/11/02  QUESTIONS??  Today: CLOSING CEREMONIES!  HW #5 – Back Monday (12/16)
Program Design and Development
CS 101 Course Summary December 5, Big Ideas Abstraction Problem solving Fundamentals of programming.
0 CS100J September 2007 CS100J: 12 weeks programming using Java, 2 using Matlab. David Gries. CS100M: 7 weeks of Matlab and 7 of Java. Daisy Fan. CS100H:
PHYS 2020 Making Choices; Arrays. Arrays  An array is very much like a matrix.  In the C language, an array is a collection of variables, all of the.
CSC 111 Course orientation
Guide To UNIX Using Linux Third Edition
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To understand the structure of a C-language program. ❏ To write your first C.
An Introduction to C Programming Geb Thomas. Learning Objectives Learn how to write and compile a C program Learn what C libraries are Understand the.
CS190/295 Programming in Python for Life Sciences: Lecture 1 Instructor: Xiaohui Xie University of California, Irvine.
1 CS1130 Spring 2011: David Gries & Walker White Transition to Object-Oriented Programming Assumes programming knowledge in a language like Matlab, C,
CS 11 C track: lecture 1 Preliminaries Need a CS cluster account cgi-bin/sysadmin/account_request.cgi Need to know UNIX ITS.
1 CSC 221: Computer Programming I Fall 2004 course overview  what did we set out to learn?  what did you actually learn?  where do you go from here?
Introduction to FORTRAN
Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)
CIS Computer Programming Logic
Programming Languages: History & Traditional Concepts CSC 2001.
CS100J Spring 2006 CS100J: 11 weeks of programming using Java and 2 weeks using Matlab. David Gries is teaching CS100J. Graeme Bailey is teaching a special.
/* Documentations */ Pre process / Linking statements Global declarations; main( ) { Local Declarations; Program statements / Executable statements; }
1 CS1110 Fall 2011 David Gries, Steve Marschner Reading for this lecture and previous lecture: Sections 1.1, 1.2, 1.3. Lab 1 will give you practice with.
CIS-165 C++ Programming I CIS-165 C++ Programming I Bergen Community College Prof. Faisal Aljamal.
Chapter 6 Programming Languages (1) Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Computational Methods of Scientific Programming Lecturers Thomas A Herring, Room , Chris Hill, Room ,
These notes were originally developed for CpSc 210 (C version) by Dr. Mike Westall in the Department of Computer Science at Clemson.
Introduction to Programming
C++ Lecture 1 Friday, 4 July History of C++ l Built on top of C l C was developed in early 70s from B and BCPL l Object oriented programming paradigm.
1 CS1100 Fall Instructor: David Gries CS100M: Matlab No prior programming experience One semester of calculus Math & engineering type problems CS100J:
Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect 5P. 1Winter Quarter C Programming Basics Lecture 5.
1 CSC 221: Computer Programming I Spring 2008 course overview  What did we set out to learn?  What did you actually learn?  Where do you go from here?
School of Computer Science & Information Technology G6DICP - Lecture 4 Variables, data types & decision making.
CSC Programming for Science Lecture 4: Beginning Programming.
C++ / G4MICE Course Session 1 - Introduction Edit text files in a UNIX environment. Use the g++ compiler to compile a single C++ file. Understand the C++
CSI 3125, Preliminaries, page 1 Data Type, Variables.
General Computer Science for Engineers CISC 106 Lecture 12 James Atlas Computer and Information Sciences 08/03/2009.
Pointers in C++. Topics Covered  Introduction to Pointers  Pointers and arrays  Character Pointers, Arrays and Strings  Examples.
EGR 115 Introduction to Computing for Engineers MATLAB Basics 1: Variables & Arrays Wednesday 03 Sept 2014 EGR 115 Introduction to Computing for Engineers.
Spring 2009 Programming Fundamentals I Java Programming XuanTung Hoang Lecture No. 8.
Lecture 15: Course Review BJ Furman ME 30 16MAY2011.
Chapter 1 Java Programming Review. Introduction Java is platform-independent, meaning that you can write a program once and run it anywhere. Java programs.
Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)
Java Basics. Tokens: 1.Keywords int test12 = 10, i; int TEst12 = 20; Int keyword is used to declare integer variables All Key words are lower case java.
1 CS100J Spring Instructor: David Gries CS100M: Matlab No prior programming experience One semester of calculus Math & engineering type problems.
CS100Lecture 21 Announcements For homework due Thursday, work alone -- do not work in pairs New class location: Olin 155 Office hour oops! Lyn: MW, 11:15-12:15.
1 Lecture # 2. * Introducing Programming with an Example * Identifiers, Variables, and Constants * Primitive Data Types * Byte, short, int, long, float,
Click to edit Master title style Click to edit Master text styles –Second level Third level –Fourth level »Fifth level 1 Fundamentals of Programming Most.
Chapter 2 Variables and Constants. Objectives Explain the different integer variable types used in C++. Declare, name, and initialize variables. Use character.
Topics introduced today (these topics would be covered in more detail in later classes) – Primitive Data types Variables Methods “for” loop “if-else” statement.
CS140 – Computer Programming 1 Course Overview First Semester – Fall /1438 – 2016/2017 CS140 - Computer Programming 11.
SKMM1013 Programming for Engineers
Chapter 6: Data Types Lectures # 10.
Data Types, Identifiers, and Expressions
C Basics.
Prepared By: G.UshaRani B.Pranalini A.S.Lalitha
CS190/295 Programming in Python for Life Sciences: Lecture 1
Introduction to the C Language
Introduction to Programming
Fundamental Programming
PHP an introduction.
IAT 800 Foundations of Computational Art and Design
design OO words Debug Variables Data types
Variables and Constants
Presentation transcript:

ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Jan. 20 th, 2009

PREFACE ASSUMED – Little to no experience with Unix and/or scientific computing GOAL – Establish a foundation to start working in a UNIX environment immediately, and provide the tools and knowledge to quickly gain proficiency. PHILOSOPHY – Provide breadth to (hopefully) illustrate the big picture and interconnection of the different topics covered. Provide the necessary depth in topics most relevant.

PRELIMINARIES Instructor: ◦ Matt Masarik, Website: ◦ Class Structure: ◦ 3:00-3:50 - Lecture 1 ◦ 3:50-4:00 - Break ◦ 4:00-4:50 - Lecture 2 ◦ 4:50-5:00 - Summary/Questions ◦ 5:00-5:30 - Office hours [optional]

SYLLABUS WEEK 1 ◦ Lec 1: Introduction to Unix ◦ Lec 2: Programming Basics WEEK 2 ◦ General computing topics – hardware, precision, languages, scripting, programming tools (compiler, text editors, etc.), boolean logic WEEK 3 ◦ Introduction to CS – background, problem solving model, functions, algorithm design, good programming practices, debugging WEEK 4 ◦ Networks & related topics – background, hierarchy, tunneling, vpn, ssh, ftp, scp, http, html/css, security

LAST OF THE DETAILS… Syllabus vs. Syllabus Matlab, C A word about speakers Student background Student requests

BASIC PROGRAMMING Data Structures constant scalar array exotic Core Statements/Expressions declaration/assignment branches loops Operators (relational/logical)

DATA STRUCTURES Scalar Variables integer: 3 float, double: character: ‘a’ boolean: True, 1 string: “jan202009”

DATA STRUCTURES Constants By definition do not (should not) change during execution of the program. Example: Fortran – PARAMETER, any data type (int, float, char). Example: Matlab – only predefined, pi = 3.14… Matlab and the declaration global

DATA STRUCTURES Arrays multi-dimensional can be composed of any of the scalar variable types comment on dimensions (Matlab vs. Fortran)

DATA STRUCTURES Pointers a variable that holds the ‘address’ of another variable (any type). It ‘points’ to the location of a variable. can be ‘dereferrenced’, giving the value of the variable it points to won’t discuss much

DATA STRUCTURES Exotic see example: Linked List of Observation objects

RELATIONAL OPERATORS Less than Less than or equal Greater than Greater than or equal Equal Not equal

LOGICAL OPERATORS and or not exclusive or (xor)

STATEMENTS / EXPRESSIONS [See Matlab examples] Branches if case (not here) Loops for while do while (not here) Assignment (declaration/initialization)