Concept of Computer Programming November 2, 2011.

Slides:



Advertisements
Similar presentations
Designing a Program & the Java Programming Language
Advertisements

AP Computer Science Anthony Keen. Computer 101 What happens when you turn a computer on? –BIOS tries to start a system loader –A system loader tries to.
Procedural programming in Java
IT253: Computer Organization Lecture 6: Assembly Language and MIPS: Programming Tonga Institute of Higher Education.
Copyright © 2002 W. A. Tucker1 Chapter 1 Lecture Notes Bill Tucker Austin Community College COSC 1315.
Introduction to Computer Programming I CSE 113
From: From:
This set of slides is provided by the author of the textbook1 Introductory Topics l Computer Programming l Programming Life-Cycle Phases l Creating an.
Introduction to Primitives. Overview Today we will discuss: –The eight primitive types, especially int and double –Declaring the types of variables –Operations.
Lecture 1: Intro to Computers Yoni Fridman 6/28/01 6/28/01.
Chapter 1 Introduction to Object- Oriented Programming and Problem Solving.
B-1 Lecture 2: Problems, Algorithms, and Programs © 2000 UW CSE University of Washington Computer Programming I.
1 Key Concepts:  Why C?  Life Cycle Of a C program,  What is a computer program?  A program statement?  Basic parts of a C program,  Printf() function?
Chapter 16 Programming and Languages: Telling the Computer What to Do.
1 Programming & Programming Languages Overview l Machine operations and machine language. l Example of machine language. l Different types of processor.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Adrian Ilie COMP 14 Introduction to Programming Adrian Ilie June 27, 2005.
1 Programming & Programming Languages Overview l Machine operations and machine language. l Example of machine language. l Different types of processor.
Lecture Notes 8/30/05 Program Design & Intro to Algorithms.
Introduction to Computers and Programming. Some definitions Algorithm: Algorithm: A procedure for solving a problem A procedure for solving a problem.
COMP 14: Intro. to Intro. to Programming May 23, 2000 Nick Vallidis.
Computer Science 101 Introduction to Programming.
CS102 Introduction to Computer Programming
DCT 1123 PROBLEM SOLVING & ALGORITHMS INTRODUCTION TO PROGRAMMING.
Introducing Java.
Lecture 1 Introduction to Java MIT- AITI 2004 What is a Computer Program? For a computer to be able to do anything (multiply, play a song, run a word.
Software Concepts. Software & Hardware? Computer Instructions or data, anything that can be stored electronically is Software. Hardware is one that is.
Basics Programming Concepts. Basics A computer program is a set of instructions to tell a computer what to do Machine language = circuit level language.
Programming Translators.
An intro to programming. The purpose of writing a program is to solve a problem or take advantage of an opportunity Consists of multiple steps:  Understanding.
Hello World 2 What does all that mean?.
IT253: Computer Organization Lecture 4: Instruction Set Architecture Tonga Institute of Higher Education.
Goals of Course Introduction to the programming language C Learn how to program Learn ‘good’ programming practices.
UNIT - 1Topic - 3. Computer software is a program that tells a computer what to do. Computer software, or just software, is any set of machine-readable.
The string data type String. String (in general) A string is a sequence of characters enclosed between the double quotes "..." Example: Each character.
Programming Lifecycle
Lecture 1 Introduction to Java MIT-AITI Ethiopia 2004.
Program Development Life Cycle (PDLC)
Programming With C.
Chapter 1 Introduction to Computers and C++ Programming Goals: To introduce the fundamental hardware and software components of a computer system To introduce.
Computer Science 101 Introduction to Programming.
Overview of Programming and Problem Solving Textbook Chapter 1 1.
Programming for Beginners Martin Nelson Elizabeth FitzGerald Lecture 5: Software Design & Testing; Revision Session.
What does a computer program look like: a general overview.
Programming Fundamentals. Today’s Lecture Why do we need Object Oriented Language C++ and C Basics of a typical C++ Environment Basic Program Construction.
Problem Solving using the Science of Computing MSE 2400 EaLiCaRA Spring 2015 Dr. Tom Way.
An Object-Oriented Approach to Programming Logic and Design Chapter 1 An Overview of Computers and Logic.
C++ Basics C++ is a high-level, general purpose, object-oriented programming language.
Lecture 11: 10/1/2002CS149D Fall CS149D Elements of Computer Science Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture.
BEGINNING PROGRAMMING.  Literally – giving instructions to a computer so that it does what you want  Practically – using a programming language (such.
Intro to Programming Web Design ½ Shade Adetoro. Programming Slangs IDE - Integrated Development Environment – the software in which you develop an application.
Software Development. Software Development Loop Design  Programmers need a solid foundation before they start coding anything  Understand the task.
CS001 Introduction to Programming Day 2 Sujana Jyothi
Lecture 2 Programming life cycle. computer piano analogy Piano + player - computer hardware Musical score/notes - software or program Composer - programmer.
CS 106 Introduction to Computer Science I 09 / 10 / 2007 Instructor: Michael Eckmann.
Introduction to Computer Programming using Fortran 77.
1 Types of Programming Language (1) Three types of programming languages 1.Machine languages Strings of numbers giving machine specific instructions Example:
PROGRAMMING FUNDAMENTALS INTRODUCTION TO PROGRAMMING. Computer Programming Concepts. Flowchart. Structured Programming Design. Implementation Documentation.
Software Engineering Algorithms, Compilers, & Lifecycle.
Software Development.
Ashima Wadhwa Assistant Professor(giBS)
CSCI-235 Micro-Computer Applications
Lecture 2: Static Methods Expressions reading: 1.4 – 2.1
Lecture 2 Introduction to Programming
Unit# 8: Introduction to Computer Programming
TRANSLATORS AND IDEs Key Revision Points.
Hello World 2 What does all that mean?.
Writing Methods.
Programming Languages
Building Java Programs
Programming Language Basics
Presentation transcript:

Concept of Computer Programming November 2, 2011

For Today: What is a computer program? Computer Buzz words! Following Directions Quiz Drawing Pictures Activity

What is a Computer Program? Computer programs are collections of instructions that tell a computer how to interact with the user, and how to interact with the computer hardware and process data.

Example of Java class myexample { public static void main (String args []) { int age; double salary; String middle_initial; age = 21; salary = ; middle_initial = "K"; System.out.println ("I am " + age + " years old "); System.out.println ("I make " + salary + " per year"); System.out.println ("My middle initial is " + middle_initial); } }

How? Higher level languages such as "C", C++, Pascal, Cobol, Fortran, ADA and Java are called "compiled languages". In a compiled language, the programmer writes more general instructions and a compiler (a special piece of software) automatically translates these high level instructions into machine language. The machine language is then executed by the computer. A large portion of software in use today is programmed in this fashion.

Computer Buzz Words that you should know! The following terms are essential knowledge to anyone who wants to become skilled in computer programming. These concepts are present in the majority of computer programming languages and/or are a fundamental part of the programming process.

Algorithm A set of steps for carrying out a task. Used to arrive at a solution for a problem. The process of creating an algorithm involves documenting all the necessary steps needed to arrive at the solution and how to perform each step. A real world example would be a recipe. The instructions of a typical recipe (add ingredients, mix, stir, etc.) are an algorithm.

Source code The actual text used to write the instructions for a computer program. This text is then translated into something meaningful the computer can understand. Example: a = b + c; If a = 10 then divide by 2;

Compiler A software tool that translates source code into data that the computer can understand. A compiler is used to turn source code into object code. The object code is then passed through a program called a linker which turns it into an executable program.

Data type The classification of pieces of information in a program. The data types varies between languages. Typically, there are data types for integers (whole numbers), floating-point numbers (numbers with a decimal part), and single characters. Example: char name;

Loop A segment of code that executes repeatedly based on a certain condition. Loops are used to perform tasks repeatedly a certain amount of times. For example, if you needed to print the numbers 1 to 10. You can use a loop for this task instead of manually printing all the numbers.

Syntax Refers to the spelling and grammar of a programming language. Computers are inflexible machines that understand what you type only if you type it in the exact form that the computer expects.

So, What is a Computer Program?

Following Directions Quiz! When I say ‘Turn your paper over’ do so! Read the instructions. You have 5 minutes to complete the quiz.

Did you complete the quiz correctly? Take a look at your paper. A perfect paper is one which has only the word ‘December’ written in the top left corner! Remember: The directions said to read all parts of the test before doing anything and step 14 says to only complete step #3.

Drawing Pictures Activity When I say ‘Turn your paper over’ do so! You have 10 minutes to complete.

Drawing Pictures Activity Is there anyone who would like to show their pictures? Volunteers?

The End! Homework: Test next week! Take a look at the powerpoints from the Tomorrow we will continue with computer programming and review!