 Define a problem  Prepare sequence of instructions for the computer to execute  Verify that the program works as expected.

Slides:



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

Object Oriented Programming in Java George Mason University Fall 2011
Chapter 1: Introduction
Client Side Programming Using Java Applet Outcomes: You will be expected to know: – Java Applets and HTML file; –bytecode and platform independent programs;
Slides prepared by Rose Williams, Binghamton University Chapter 1 Getting Started 1.1 Introduction to Java.
Aalborg Media Lab 21-Jun-15 Software Design Lecture 1 “ Introduction to Java and OOP”
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
CS 101 Problem Solving and Structured Programming in C Sami Rollins Spring 2003.
SOFTWARE SYSTEMS SOFTWARE APPLICATIONS SOFTWARE PROGRAMMING LANGUAGES.
1. 2 Chapter 1 Introduction to Computers, Programs, and Java.
1 Programming Languages Examples: C, Java, HTML, Haskell, Prolog, SAS Also known as formal languages Completely described and rigidly governed by formal.
Getting Started with Java
1 Building Java Programs Chapter 1: Introduction to Java Programming These lecture notes are copyright (C) Marty Stepp and Stuart Reges, They may.
CS 415: Programming Languages Chapter 1 Aaron Bloomfield Fall 2005.
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
CCSA 221 Programming in C CHAPTER 2 SOME FUNDAMENTALS 1 ALHANOUF ALAMR.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
Introduction to Python Dr. Bernard Chen Ph.D. University of Central Arkansas July 9 th 2012
© The McGraw-Hill Companies, 2006 Chapter 1 The first step.
BIT Presentation 6. Contents GENERATIONS OF LANGUAGES COMPILERS AND INTERPRETERS VIRTUAL MACHINES OBJECT-ORIENTED PROGRAMMING SCRIPTING LANGUAGES.
Chapter Lead Black Slide Powered by DeSiaMore Powered by DeSiaMore.
Programming Languages
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
UNIVERSITI TENAGA NASIONAL “Generates Professionals” CHAPTER 4 : Part 2 INTRODUCTION TO SOFTWARE DEVELOPMENT: PROGRAMMING & LANGUAGES.
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
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.
Algorithm development. The invention of the computer  Programming language developments: 1. Machine code 2. Assembler  easier to write, debug, and update.
Chapter 1: A First Program Using C#. Programming Computer program – A set of instructions that tells a computer what to do – Also called software Software.
Computing with C# and the.NET Framework Chapter 1 An Introduction to Computing with C# ©2003, 2011 Art Gittleman.
1 Agenda Administration Background Our first C program Working environment Exercise Memory and Variables.
Computer Programming 12 Mr. Jean March 19 th, 2013.
Programming for Beginners Martin Nelson Elizabeth FitzGerald Lecture 13: An Introduction to C++
CS 11 java track: lecture 1 Administrivia need a CS cluster account cgi-bin/sysadmin/account_request.cgi need to know UNIX
© 2012 Pearson Education, Inc. All rights reserved. 1-1 Why Java? Needed program portability – Program written in a language that would run on various.
Chapter 1: Introduction to Programs, and Java 1. Objectives To review programs (§ ). To understand the relationship between Java and the World Wide.
Visual C++ Programming: Concepts and Projects
The Teacher Computing Computer Languages [Computing]
Computer Programs and Programming Languages What are low-level languages and high-level languages? High-level language Low-level language Machine-dependent.
Lead Black Slide. © 2001 Business & Information Systems 2/e2 Chapter 5 Information System Software.
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
Lecture 1 Introduction Figures from Lewis, “C# Software Solutions”, Addison Wesley Richard Gesick.
Object-Oriented Program Development Using Java: A Class-Centered Approach, Enhanced Edition.
Introduction to PHP Advanced Database System Lab no.1.
Liang, Introduction to C++ Programming, (c) Chapter 1 Introduction to Computers, Programs, and C++
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
CS Computer Science I. BCPL was developed in 1967 as a language for writing operating systems and software compilers In 1970, the creators of the.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
CSC1200 INTRODUCTION TO PROGRAMMING Dr. Maureen Markel
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
First appeared Features Popular uses Assembly 1949 For code that must directly interact with the hardware (drivers), embedded processors, processor specific.
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
©2016 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. CSC 110 – INTRO TO COMPUTING - PROGRAMMING Overview of Programming.
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
Invent Your Own Computer Games with Python
Chapter 11  Getting ready to program  Hardware Model  Software Model  Programming Languages  Facts about C++  Program Development Process  The Hello-world.
ITP 109 Week 2 Trina Gregory Introduction to Java.
Chapter 1: Introduction to Computers and Programming.
Software Engineering Algorithms, Compilers, & Lifecycle.
First appeared Features Popular uses Basic This language emphasises on ease of use, allowing general purpose programming to those with a small amount of.
First appeared Features Popular uses Basic general-purpose, high-level programming languages small business owners, professionals, hobbyists, and consultants.
Website Source Code Free Download.
Computer Languages [Computing] Computing.
The language focusses on ease of use
Programming what is C++
CMIT100 Chapter 14 - Programming.
GC101 Introduction to computer and program
CSCI-235 Micro-Computer Applications
C# and the .NET Framework
Tonga Institute of Higher Education IT 141: Information Systems
Tonga Institute of Higher Education IT 141: Information Systems
Presentation transcript:

 Define a problem  Prepare sequence of instructions for the computer to execute  Verify that the program works as expected

 The only way a program can be expressed  Any program that runs on a computer must be expressed in machine language  In memory a program looks just like numbers  Number can be manipulated!! AddressContents

 Realizing that a program is data was a huge insight  It is possible to write programs that write programs  Ushered in programming languages

 Existed almost since the beginning of computers  Low-level language  Virtually machine language  Associate a symbolic name to the machine language instructions.model small.stack.data message db "Hello world!!!", "$".code main proc mov ax,seg message mov ds,ax mov ah,09 lea dx,message int 21h mov ax,4c00h int 21h main endp end main

 FORmula TRANslator  Developed by John Backus as an alternative to assembly language  Dedicated to mathematical calculations  Still in use today PROGRAM HELLO PRINT *, 'Hello, World!' END

 LISt Processing  Invented by John McCarthy at MIT  Commonly used in Artificial Intelligence (write-line "Hello World!")

 ALGOrithmic Language  First machine independent language  Developed by an international committee and had a standard  Introduced block structured programming BEGIN print("Hello World!") print(newline) END

 COmmon Business Oriented Language  Used in business, finance, and administrative systems  Very wordy – tried to be natural  Lots of legacy programs exist in COBOL IDENTIFICATION DIVISION. PROGRAM-ID. HELLO-WORLD. ENVIRONMENT DIVISION. DATA DIVISION. PROCEDURE DIVISION. DISPLAY "Hello, World!". STOP RUN.

 Beginner’s All-purpose Symbolic Instruction Code  Was designed to be easy to learn.  This is the language Gates and Allen implemented for the Altair 10 PRINT "Hello, World!" 20 END

 Why the name C? Because it came after B!!  Designed as a language to write system software  Was used to write the first Unix implementations #include /* Hello */ int main(void){ printf("Hello, World!"); return 0; }

 Standard Query Language  Query language for relational databases  I would not call this a general purpose programming language CREATE TABLE message (text char(15)); INSERT INTO message (text) VALUES ('Hello, World!'); SELECT text FROM message; DROP TABLE message;

 One step better than C!!  Object-oriented version of C.  Commonly used in industry #include int main(){ std::cout << "Hello, World!\n"; }

 HyperText Markup Language  Again not really a programming language  Describes how a page should be displayed Hello HTML Hello World!

 Not named for the snake. Can you guess?  Popular scripting language print "Hello, World!"

 Originally Oak marketing wanted Java  Portable language – write once run anywhere  Became very popular because of the Internet public class HelloWorld { public static void main(String[] args) { System.out.println( "Hello, World!" ); }

 Scripting language used to embed code into web pages  Shares the syntax of C or Java but is not Java  Interpreted by the web browser document.write( 'Hello, World!' );

 In music a sharp indicates a higher pitch  Developed by Microsoft  Intended to be a simple, modern, general- purpose, object-oriented programming language.  We will be using C# in class using System; class HelloWorld{ static void Main() { System.Console.WriteLine( "Hello, World!“ ); }

Program/ApplicationLines of Code Open Solaris9.7 million Linux million Windows million Mac OS X million Boeing million Space Shuttle420K (shuttle) 1.4 million ground Space Station40 million Mozilla2 million

 Good article on the history of languages:  t/9509/sec7/art19.htm  Neat Language Poster from O’Reilly:  news/graphics/prog_lan g_poster.pdf

 Evolution  Computer Science is still young  When I went to school…  Special Purpose  Many new problem domains  Animation  Personal Preference

 Declarative  Describe a problem rather than defining a solution  Imperative  Describes how to solve a problem  Scripting  A list of commands that can be executed without user interaction. Typically intepreted.  Object Oriented  Programs consist of interacting objects  Functional  Define programs as mathematical functions

 The only language that a computers understands is machine language  A program, written in a programming language other than machine language, must be translated into machine language in order for it to run on a computer  Programs are typically either compiled or interpreted

Compiler Target Program Source Program InputOutput

Compiler Source Program Assembler Assembly Language Machine Language

Interpreter Source Program Input Output

 Subject/predicate: All sentences are about something or someone. The something or someone that the sentence is about is called the subject of the sentence. In the following sentences the subjects are shown in red. Note how the subject is often, but not always, the first thing in the sentence.  John often comes late to class.  My friend and I both have a dog named Spot.  On Saturdays I never get up before 9 o'clock.  Before giving a test the teacher should make sure that the students are well-prepared.  Lying on the sofa watching old films is my favorite hobby.

 John often is my favorite hobby.  On Saturdays I never get up before 9 o'clock.  Before giving a test the teacher have a dog named Spot.  Lying on the sofa watching old films is often late to class.

 When using a programming language you must understand both the syntax and the semantics of the language  Syntax refers to the rules you must follow to form valid statements in the language ▪ What a program should look like  Semantics describe the meaning of a statement in a language ▪ What a program means