Computer Science 1MD3 Introduction to Programming

Slides:



Advertisements
Similar presentations
 Computer Science 1MD3 Introduction to Programming Winter 2014.
Advertisements

CSC 3210 Computer Organization and Programming Introduction and Overview Dr. Anu Bourgeois.
The Assembly Language Level
 Computer Science 1MD3 Introduction to Programming Michael Liut Brandon Da Silva
Chapter 6: Arrays Java Software Solutions for AP* Computer Science
Introduction to Computer Programming I CSE 113
Introduction to Computer Programming in C
Computer Architecture Wed: 14:00-14:00, 14/34 Instructor: Jihad El-Sana Office:111, Building:37 Tel:
CIS 101: Computer Programming and Problem Solving Lecture 8 Usman Roshan Department of Computer Science NJIT.
Introduction to Computers and Programming Lecture 10: For Loops Professor: Evan Korth New York University.
CSCI 3 Introduction to Computer Science. CSCI 3 Course Description: –An overview of the fundamentals of computer science. Topics covered include number.
CS 106 Introduction to Computer Science I 02 / 12 / 2007 Instructor: Michael Eckmann.
Computer Science 1620 Multi-Dimensional Arrays. we used arrays to store a set of data of the same type e.g. store the assignment grades for a particular.
Understanding class definitions Looking inside classes 3.0.
CS 106 Introduction to Computer Science I 03 / 07 / 2008 Instructor: Michael Eckmann.
CS 106 Introduction to Computer Science I 03 / 03 / 2008 Instructor: Michael Eckmann.
CS 106 Introduction to Computer Science I 03 / 08 / 2010 Instructor: Michael Eckmann.
CSC 111 Course orientation
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To understand the structure of a C-language program. ❏ To write your first C.
CS 106 Introduction to Computer Science I 10 / 15 / 2007 Instructor: Michael Eckmann.
CS 106 Introduction to Computer Science I 10 / 16 / 2006 Instructor: Michael Eckmann.
CS 106 Introduction to Computer Science I 03 / 17 / 2008 Instructor: Michael Eckmann.
Concept of Computer Programming November 2, 2011.
 Computer Science 1MD3 Introduction to Programming Michael Liut Ming Quan Fu Brandon.
 Computer Science 1MD3 Introduction to Programming Michael Liut Brandon Da Silva
Multiple Choice Solutions True/False a c b e d   T F.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Lists in Python.
5.0 Objects First with Java A Practical Introduction using BlueJ Introduction to Computer Science I Instructor: Allyson Anderson.
IT253: Computer Organization Lecture 4: Instruction Set Architecture Tonga Institute of Higher Education.
Evolution of Programming Languages Generations of PLs.
 Computer Science 1MD3 Introduction to Programming Michael Liut Ming Quan Fu Brandon.
COSC 235: Programming and Problem Solving Chapter 1: The magic of Python Instructor: Dr. X 1.
Targeting TAKS with a Graphing Calculator Using the TI-83 calculator to pass the Texas Assessment of Knowledge and Skills Continue.
Grading Exams 60 % Lab 20 % Participation 5% Quizes 15%
 Computer Science 1MD3 Introduction to Programming Michael Liut Brandon Da Silva
Object-Oriented Design Simple Program Design Third Edition A Step-by-Step Approach 11.
 Computer Science 1MD3 Introduction to Programming Michael Liut Ming Quan Fu Brandon.
Chapter 15 Introduction to PL/SQL. Chapter Objectives  Explain the benefits of using PL/SQL blocks versus several SQL statements  Identify the sections.
1 Text Reference: Warford. 2 Computer Architecture: The design of those aspects of a computer which are visible to the programmer. Architecture Organization.
 Computer Science 1MD3 Introduction to Programming Michael Liut Ming Quan Fu Brandon.
CS 161 Introduction to Programming and Problem Solving Chapter 18 Control Flow Through C++ Program Herbert G. Mayer, PSU Status 10/8/2014 Initial content.
CS 106 Introduction to Computer Science I 03 / 02 / 2007 Instructor: Michael Eckmann.
Programming Assignment 4 Code generator Md. Zahurul Islam Center for Research on Bangla Language Processing (CRBLP) BRAC University.
CS190/295 Programming in Python for Life Sciences: Lecture 6 Instructor: Xiaohui Xie University of California, Irvine.
1 BUILDING JAVA PROGRAMS CHAPTER 2 PRIMITIVE DATA AND DEFINITE LOOPS.
CSC 212 – Data Structures Lecture 15: Big-Oh Notation.
Lists in Python Lists as Arguments/Parameters. Lists as arguments to functions Just like other data types, lists can be sent to functions as arguments.
Chapter 1: Introduction to Computers and Programming.
Machine Language Computer languages cannot be directly interpreted by the computer – they are not in binary. All commands need to be translated into binary.
Outcome based Learning Objectives
Fundamentals of Java: AP Computer Science Essentials, 4th Edition
Topics Introduction to Repetition Structures
Intro to Programming Week # 6 Repetition Structure Lecture # 10
Python: Control Structures
7 Big Ideas of Computing:
Lesson 5-15 AP Computer Science Principles
Function Objects and Comparators
Algorithm Analysis CSE 2011 Winter September 2018.
Review for Test1.
First Python Program Professor Hugh C. Lauer CS-1004 — Introduction to Programming for Non-Majors (Slides include materials from Python Programming: An.
CS190/295 Programming in Python for Life Sciences: Lecture 6
Passing Parameters by value
A Universal Turing Machine
Review for Test1.
Introduction to programming
Building Java Programs
Introduction to Computer Science
Quiz: Computational Thinking
CS 1054: Lecture 2, Chapter 1 Objects and Classes.
Presentation transcript:

Computer Science 1MD3 Introduction to Programming Winter 2014 Computer Science 1MD3 Introduction to Programming Michael Liut (liutm@mcmaster.ca) www.michaelliut.ca/cs1md3

Table of Contents Python High or Low Level Language? Function vs. Method Nested For Loop Assignment 1_3 & 1_4 Practice MidTerm Questions www.michaelliut.ca/cs1md3

High vs. Low Level Languages PYTHON IS A HIGH LEVEL LANGUAGE High Level Language Allows programmers to write algorithms, loops, and functions/methods without detailed knowledge of the hardware Examples: C, C++, Java, and Python Low Level Language Requires detailed knowledge of machine level coding: involvement with registers, interrupts, etc.. Example: MARIE Simulator www.michaelliut.ca/cs1md3

Functions vs. Methods A function is a piece of code that can pass data through it (in the form of a parameter) and can return data (optional). A method is a piece of code that is associated with an object defined in the class. Two key elements: A method is implicitly passed A method is able to operate on data contained within the class www.michaelliut.ca/cs1md3

Nested For Loop A for loop within a for loop Textbook pages 143-144 An inner loop enclosed inside an outer loop Textbook pages 143-144 Example Program www.michaelliut.ca/cs1md3

www.michaelliut.ca/cs1md3

www.michaelliut.ca/cs1md3

Assignment 1_3 & 1_4 Solutions Explain the assignment! www.michaelliut.ca/cs1md3

www.michaelliut.ca/cs1md3 Assignment 1_3

www.michaelliut.ca/cs1md3 Assignment 1_4

Practice MidTerm REAL TEST TOMORROW: Thu. Feb 13, 2014 at 16:30-17:20 in T28 www.michaelliut.ca/cs1md3

Questions? www.michaelliut.ca/cs1md3