Introduction to Computer Science

Slides:



Advertisements
Similar presentations
In Review JAVA C++ GUIs - Windows Webopedia.com.
Advertisements

DAP teaching computer architecture at Berkeley since 1977
Dr. Ken Hoganson, © August 2014 Programming in R COURSE NOTES 2 Hoganson Language Translation.
 Suppose for a moment that you were asked to perform a task and were given the following list of instructions to perform:
IT253: Computer Organization Lecture 6: Assembly Language and MIPS: Programming Tonga Institute of Higher Education.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
Introduction to Computers and Programming. Some definitions Algorithm: –A procedure for solving a problem –A sequence of discrete steps that defines such.
1 Programming Languages Translation  Lecture Objectives:  Be able to list and explain five features of the Java programming language.  Be able to explain.
1.2 Language Processing Activities The fundamental language processing activities divided into two parts. 1. Program generation activities 2. Program execution.
Introduction to Computers and Programming. Some definitions Algorithm: Algorithm: A procedure for solving a problem A procedure for solving a problem.
Course: Introduction to Computers
Activity 1 - WBs 5 mins Go online and spend a moment trying to find out the difference between: HIGH LEVEL programming languages and LOW LEVEL programming.
1 Chapter-01 Introduction to Computers and C++ Programming.
CSC 110 A 1 CSC 110 Introduction to Python [Reading: chapter 1]
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
Introduction to Programming Language CS105 Programming Language First-generation: Machine language Second-generation: Assembly language Third-generation:
1 Intro to Computer Science I Chapter 1 Introduction to Computation Algorithms, Processors, and Programs.
High-level Languages.
Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved. 1 Chapter 1 Introduction to Computer Science.
General Computer Science for Engineers CISC 106 Lecture 02 Dr. John Cavazos Computer and Information Sciences 09/03/2010.
Introduction to Programming Peggy Batchelor.
Introduction to Programming. When you program, you are programming the instruction set of the CPU (machine language). Intel 8080 CPU.
Introduction to the Java Virtual Machine 井民全. JVM (Java Virtual Machine) the environment in which the java programs execute The specification define an.
August 29, 2005ICP: Chapter 1: Introduction to Python Programming 1 Introduction to Computer Programming Chapter 1: Introduction to Python Programming.
3/5/2009Computer software1 Introduction Computer System Hardware Software HW Kernel/OS API Application Programs SW.
The Central Processing Unit (CPU) and the Machine Cycle.
1 Text Reference: Warford. 2 Computer Architecture: The design of those aspects of a computer which are visible to the programmer. Architecture Organization.
Component 4: Introduction to Information and Computer Science Unit 5: Overview of Programming Languages, Including Basic Programming Concepts Lecture 2.
FOUNDATION IN INFORMATION TECHNOLOGY (CS-T-101) TOPIC : INFORMATION SYSTEM – SOFTWARE.
Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.
1.4 Representation of data in computer systems Instructions.
A compiler is a computer program that translate written code (source code) into another computer language Associated with high level languages A well.
By: Cheryl Mok & Sarah Tan. Java is partially interpreted. 1. Programmer writes a program in textual form 2. Runs the compiler, which converts the textual.
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
A Python Tour: Just a Brief Introduction "The only way to learn a new programming language is by writing programs in it." -- B. Kernighan and D. Ritchie.
Lecture1 Instructor: Amal Hussain ALshardy. Introduce students to the basics of writing software programs including variables, types, arrays, control.
Compilers and Interpreters
Representation of Data - Instructions Start of the lesson: Open this PowerPoint from the A451 page – Representation of Data/ Instructions How confident.
What’s a Computer?. The Basics A computer is a machine that manipulates data based on a list of instructions called a program.
Machine Language Computer languages cannot be directly interpreted by the computer – they are not in binary. All commands need to be translated into binary.
Introduction to computer software. Programming the computer Program, is a sequence of instructions, written to perform a specified task on a computer.
Software Development Environment
Basic Concepts: computer, program, programming …
Why don’t programmers have to program in machine code?
Lecture 1b- Introduction
CMIT100 Chapter 14 - Programming.
A Python Tour: Just a Brief Introduction
Introduction to programming
CSCI-235 Micro-Computer Applications
Introduction
Microprocessor and Assembly Language
Programming Concepts and Languages
TRANSLATORS AND IDEs Key Revision Points.
Teaching Computing to GCSE
Assembler, Compiler, Interpreter
Do you know this browser?...
Mobile Development Workshop
Computer Programming Machine and Assembly.
High Level Programming Languages
PROGRAMMING What is it?.
Introduction to Algorithm Design
CS105 Introduction to Computer Concepts Intro to programming
Assembler, Compiler, Interpreter
MARIE: An Introduction to a Simple Computer
THE REAL WORLD APPLICATIONS OF PYTHON. INTRODUCTION Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum.
ICT Programming Lesson 1:
What is Programming Language
1.3.7 High- and low-level languages and their translators
Computer Programming (CS101) Lecture-02
Algoritmos y Programacion
Presentation transcript:

Introduction to Computer Science

What is Computer Science? The study of processes that transform information Related Fields: Computer Engineering Information Technology

Programming Languages Machine Language Assembly Language High-Level Language Machine language is written using binary code. Computer's native language. Consists of a fixed set of simple instructions that manipulate memory and machine registers. Machine language is also called object code. Assembly language is machine language in human-readable form. Think of it as 'decoded' machine language. Same set of instructions. A program called an assembler performs the simple translation to machine language. High-level languages like Basic, C#, and Java contain powerful instructions called source code that typically translate to several machine instructions. A compiler program performs the translation to machine language.

Executing Programs CPU does not understand high-level programming languages Programs in high-level languages must be either Translated to machine language using a ______________ Interpreted "on the fly" using an ______________ What are the benefits / tradeoffs?

Python Invented by Guido van Rossum in 1990’s Popular Cross Platform Used for: Scripting and System Administration Scientific computing Web applications Powers many Google apps

Python Programs Stored in files with a ______ extension Executed using Python interpreter

Let’s Program! Meet the Turtle

A Complete Python Program # Make the turtle move import turtle size = 100 turtle.forward(size) turtle.right(90) turtle.forward(size * 10)

Python Programs Python programs consist of Comments Statements # A comment starts with a hash mark # Comments are notes for the programmer, and are ignored by the Python interpreter Statements import turtle turtle.forward(size)