Introduction to Programming

Slides:



Advertisements
Similar presentations
Modular Design Using Subroutines (functions later)
Advertisements

Programming for Beginners
PDP 4 – Writing academic Reports. Academic assignments In higher education, assignments are submitted in several formats –Essay –Presentation –Dissertation.
Unit 6 Assignment 2 Chris Boardley.
JAVA BASICS SYNTAX, ERRORS, AND DEBUGGING. OBJECTIVES FOR THIS UNIT Upon completion of this unit, you should be able to: Explain the Java virtual machine.
15-Jun-15 Beginning Style. 2 Be consistent! Most times, you will enter an ongoing project, with established style rules Follow them even if you don’t.
Programming Style a programs language gives you a lot of freedom how to write a program – too much? but some programming style is good goal: it must be.
© The McGraw-Hill Companies, 2006 Chapter 9 Software quality.
26-Jun-15 Beginning Style. 2 Be consistent! Most times, you will enter an ongoing project, with established style rules Follow them even if you don’t.
Algorithm Programming Coding Advices Bar-Ilan University תשס " ו by Moshe Fresko.
1. 2 Chapter 1 Introduction to Computers, Programs, and Java.
COMP An Introduction to Computer Programming : University of the West Indies COMP6015 An Introduction to Computer Programming Lecture 02.
6 Steps of the Programming Process
Programming Style and Documentation Objective(s) F To become familiar with Java Style and Documentation Guidelines.
Good Programming Practices. 2 home back first prev next last What Will I Learn? List examples of good programming practices Accurately insert comments.
Announcements  If you need more review of Java…  I have lots of good resources – talk to me  Use “Additional Help” link on webpage.
Board Activity Find your seat on the seating chart Login – Remember your login is your first initial your last name and the last three numbers of your.
Testing Vs. Inspection Research Paper Diala T. Gammoh, Ph.D. Student Dr. Damla Turgut, Ph.D. University of Central Florida, Orlando Florida
Problem of the Day  Why are manhole covers round?
Kruse/Ryba Ch011 Object Oriented Data Structures Programming Principles Introduction Programming Style Coding, Testing, Further Refinement Program Maintenance.
SE: CHAPTER 7 Writing The Program
23-Oct-15 Abstract Data Types. 2 Data types A data type is characterized by: a set of values a data representation, which is common to all these values,
CS 111 – Nov. 22 Chapter 7 Software engineering Systems analysis Commitment –Please read Section 7.4 (only pp ), Sections –Homework #2.
Scientific Communication
Documentation and Programming Style Appendix A © 2015 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Lecture 2: Introduction to C Programming. OBJECTIVES In this lecture you will learn:  To use simple input and output statements.  The fundamental data.
Programming Principles Spreadsheet-Based Decision Support Systems Chapter 24: Aslı Sencer MIS 463.
CSC 212 – Data Structures Prof. Matthew Hertz WTC 207D /
ITM © Port, Kazman 1 ITM 352 How to Think Like a Programmer.
Program Style Chapter 22 IB103 Week 12 (part 2). Modularity: the ability to reuse code Encapsulation: hide data access directly but may use methods (the.
CPS120: Introduction to Computer Science Introduction to C++
Written Presentations of Technical Subject Writing Guide vs. Term paper Writing style: specifics Editing Refereeing.
Efficient SAS programming with Large Data Aidan McDermott Computing Group, March 2007.
Chapter 1 Introduction. Components of a Computer CPU (central processing unit) Executing instructions –Carrying out arithmetic and logical operations.
Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved. 1 Chapter 1 Introduction to Computers, Programs,
Python Lesson 2.
ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Feb 10th, 2009 Introduction to Programming.
Introducing Java Chapter 3 Review. Why Program in Java? Java, is an object-oriented programming language. OOP languages evolved out of the need to better.
Principles of Programming. Achieving an Object-Oriented Design  Abstraction and Information Hiding  Object-Oriented Design  Functional Decomposition.
Introduction to 1. What is Java ? Sun Microsystems Java is a programming language and computing platform first released by Sun Microsystems in The.
Kruse/Ryba Ch011 Object Oriented Data Structures Programming Principles Introduction Programming Style Coding, Testing, Further Refinement Program Maintenance.
More on the Selection Structure
Chapter 1 Introduction to Computers, Programs, and Java
Chapter 2, Part I Introduction to C Programming
Lecture 3- Decision Structures
Statement atoms The 'atomic' components of a statement are: delimiters (indents, semicolons, etc.); keywords (built into the language); identifiers (names.
Introduction Java Chapter 3.
TRANSLATORS AND IDEs Key Revision Points.
Programming Vocabulary.
String Output ICS 111: Introduction to Computer Science I
VISUAL BASIC – CHAPTER ONE NOTES An Introduction to Visual Basic
Hands-On Ethical Hacking and Network Defense
PROGRAMMING What is it?.
Comp1202: Building Better Programs
CMSC 202 Java Primer 2.
My Style Designs Insert name here.
Unit 6 Assignment 2 Chris Boardley.
My Style Designs Insert name here.
Learning Intention I will learn about evaluating a program.
Formatting Your Compositions Correctly and Consistently
Beginning Style 27-Feb-19.
ICT Programming Lesson 1:
Spreadsheet-Based Decision Support Systems
Spreadsheet-Based Decision Support Systems
Business Communication and Report Writing
Creating Maintainable code
© A+ Computer Science - Basic Java © A+ Computer Science -
How to allow the program to know when to stop a loop.
Lecture 3: Communicate in Writing
Creating readable code
Presentation transcript:

Introduction to Programming COMP SCI 1MD3 Introduction to Programming Sanzheng Qiao http://www.cas.mcmaster.ca/~qiao

A long journey begins with a single step Understand how computers work Utilize computers’ enormous power First step Basics of programming

What matters Logic: Know exactly what your program is supposed to do Discipline: Consistent style, format Documentation Spacing, indentations Line breaks Positions of curly braces { }

Why bother? Who cares what a program looks like if it works? Doesn’t it take too much time to make it pretty? A well-written code is easier to read and to understand, almost surely has fewer errors. In the rush to get programs out the door to meet some deadline, it’s easy to push style aside, to worry about it later. This can be a costly decision.

Emphasis Basics of programming, rather than Java specifics. Writing better code from the beginning and improving it as it evolves. Principles of programming style, clear, simple, straightforward logic, meaningful names, neat formatting, helpful comments, and consistency.