6 September How Computers Work. Follow Ups VeriSign: https://lv0.net/Form/TechnoServe/YouCanHelp https://lv0.net/Form/TechnoServe/YouCanHelp 2001: A Space.

Slides:



Advertisements
Similar presentations
compilers and interpreters
Advertisements

ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Programming Types of Testing.
1 September Perception vs. Reality. Current Event: IPod Cellphone Mobile phone and music player Over-the-air music download Question: What should mobile.
How Computers Work Part 1 18 September Sometimes They Don’t Having a Bad Day Mouse Won’t Work.
1 CS 106, Winter 2009 Class 4, Section 4 Slides by: Dr. Cynthia A. Brown, Instructor section 4: Dr. Herbert G. Mayer,
1 PROJECT Web-based Database Applications Lecture 1: Basic Internet Concepts & Databases - the History.
8 February How Computers Work: Algorithms The Internet.
Chapter Chapter Goals Describe the layers of a computer system Describe the concept of abstraction and its relationship to computing Describe.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
CHAPTER 1 INTRODUCTION GOALS  To understand the activity of programming  To learn about the architecture of computers  To learn about machine code and.
1 February How Computers Work. Buying Bugs A 21st Century Entrepreneurship How do you find bugs in your software? Offer a bounty! How do malicious hackers.
8 November Computers in the Arts. Presentations Sarah: Medicine Tega: e-government.
1 Lab Session-I (A and B) CS-120 Fall 2000 Using Windows Using An Editor Using Visual C++ Using Compiler Writing and Running Programs Lab-1 DUE Fri September.
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
Russell Taylor Lecturer in Computing & Business Studies.
Chapter 1 Program Design
Chapter 6: An Introduction to System Software and Virtual Machines
Introduction Algorithms and Programming. Computer Programming  A form of problem solving  Or, more accurately, a way to solve problems  What we will.
Chapter 3 Software Two major types of software
Q.Nand HTML Hypertext Markup Language Lesson 1. Q.Nand Overview Introduction the World Wide Web Structure of the internet The Development of the World.
Introduction to Programming (in C++) Introduction Jordi Cortadella, Ricard Gavaldà, Fernando Orejas Dept. of Computer Science, UPC.
1 I.Introduction to Algorithm and Programming Algoritma dan Pemrograman – Teknik Informatika UK Petra 2009.
Chapter 01 Nell Dale & John Lewis.
 Using Microsoft Expression Web you can: › Create Web pages and Web sites › Set what you site will look like as you design it › Add text, images, multimedia.
TERMS TO KNOW. Programming Language A vocabulary and set of grammatical rules for instructing a computer to perform specific tasks. Each language has.
Javascript and Basic Programming Concepts. What is a Program? A program is a specific set of instructions written in a computer language to perform a.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
Word Processors, Databases, Spreadsheets, and Data Problems.
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
Created by, Author Name, School Name—State FLUENCY WITH INFORMATION TECNOLOGY Skills, Concepts, and Capabilities.
Chapter 1 The Big Picture.
Introduction to Arrays. definitions and things to consider… This presentation is designed to give a simple demonstration of array and object visualizations.
Just as there are many human languages, there are many computer programming languages that can be used to develop software. Some are named after people,
S2008Final_part1.ppt CS11 Introduction to Programming Final Exam Part 1 S A computer is a mechanical or electrical device which stores, retrieves,
Fundamental Programming: Fundamental Programming K.Chinnasarn, Ph.D.
Basic of Programming Language Skill Area Computer System Computer Program Programming Language Programmer Translators.
Introduction to Computer Application (IC) MH Room 517 Time : 7:00-9:30pm.
240-Current Research Easily Extensible Systems, Octave, Input Formats, SOA.
CHAPTER 1 INTRODUCTION 1 st semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
Introducing the World Wide Web Internet- a structure made up of millions of interconnected computers whose users communicate with each other and share.
Computer Basic Vocabulary
CS 127 Introduction to Computer Science. What is a computer?  “A machine that stores and manipulates information under the control of a changeable program”
Beginning Snapshots Chapter 0. C++ An Introduction to Computing, 3rd ed. 2 Objectives Give an overview of computer science Show its breadth Provide context.
 How a computer works  The Internet  Browsers  Web Pages.
CSC 1010 Programming for All Lecture 1 Some material courtesy of Python for Informatics: Exploring Information (
Georgia Institute of Technology Speed part 1 Barb Ericson Georgia Institute of Technology May 2006.
JavaScript Introduction and Background. 2 Web languages Three formal languages HTML JavaScript CSS Three different tasks Document description Client-side.
HTML HyperText Markup Language Victoria E. Kozlek.
Program Design. Simple Program Design, Fourth Edition Chapter 1 2 Objectives In this chapter you will be able to: Describe the steps in the program development.
INTRODUCTION TO COMPUTER PROGRAMMING(IT-303) Basics.
Software Development Languages and Environments. Computer Languages Just as there are many human languages, there are many computer programming languages.
Installing Java on a Home machine
Topic: Programming Languages and their Evolution + Intro to Scratch
Programming Languages
Introduction to programming
Computer 4 JEOPARDY Bobbie, Sandy, Trudy.
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Assembler, Compiler, Interpreter
Installing Java on a Home machine
Chapter 10 Programming Fundamentals with JavaScript
Learn… Create… Program
Learn… Create… Program
Assembler, Compiler, Interpreter
Tonga Institute of Higher Education IT 141: Information Systems
Tonga Institute of Higher Education IT 141: Information Systems
Learn… Create… Program
Learn… Create… Program
Chapter 4: Writing and Designing a Complete Program
Presentation transcript:

6 September How Computers Work

Follow Ups VeriSign: : A Space Odyssey Produced in 1968 as science fiction Intel founded Sony introduces Trinitron technology Keyboard, mouse & windows demonstrated First “artificial intelligence” program Apollo Guidance Computer Tentacle Arm

Computer in the Arts About the work When was the work written or produced? What’s the genre? The role of computers A character or a tool? Central to the plot or peripheral? How computers are portrayed Intelligent or simplistic? Threatening, helpful or neutral?

Current Event: Hurricane Images Google Earth: gives people a view of the world Google Earth "I am trying to get a current overlay for the area around 2203 Curcor Court in Gulfport, Miss." grass-roots effort identified scores of post-hurricane images from NOAA determined landmarks to integrate into Google Earth posted them By Saturday, Google, NASA, CMU formalized Power of the Internet: everyone can contribute This is a great use of Google Earth Are there bad ones? NY Times, Sept 5

To Understand … How your web page works How does a computer work? How do web pages work? How you share your web page What is a network? What is the Internet?

How Does a Computer Work? It is actually a very simple machine It executes exactly what it is told to do Forrest Gump “Run, Forrest, run” Forrest Computers execute algorithms

What is an algorithm? A detailed sequence of actions to perform to accomplish some task Named after an Iranian mathematician, Al-Khawarizmi 813 – 833 C.E. Mathematician: algebra, trigonometry, geometry Astronomy and geography as well

Examples of Algorithms Mapquest directions Assembly instructions User’s manual Software program Other examples?

A simple algorithm Using a calculator, how do you find the average of three numbers? Assume no average function Assume that the calculator is already on Solution Enter the first number; enter + Enter the second number; enter + Enter the third number; enter / 3 =

A bigger example Using a calculator, how do you find the average of 100 numbers? No longer want to list one by one Introduces loops Solution For each number, Enter the number; enter + Enter / 100 =

A more complex algorithm Take the absolute value of a number Introduces decision making Solution If the number is less than 0 The answer is –number Else The answer is number

Exercise Break into 3 groups Devise an algorithm to order a group of people from shortest to tallest We will then execute it on another group

Homework Assignment A triangle is a 3-sided figure. The sum of any 2 sides must be longer than the third side. Write an algorithm to check if three numbers could constitute the sides of a triangle. It produces a result of “yes” or “no”. (This is also a dry run to make sure that blackboard is working properly.)

Simplified Model of a Computer processor instructionsdata the information that it works on defines an algorithm retrieves the instruction directs data movement

Data A computer doesn’t work on actual numbers, but locations (called variables ) Does action to whatever value is in that location Variables that have values that never change are constants Demonstration How would you swap two numbers? Why do computers work like this?

Data Types All data is stored as a series of zeroes and ones Computer doesn’t know if it is numeric or text or what format it is Computer assumes that the instructions know the format of the data

Programming Languages Ways to describe algorithms Lots of ways to describe, but a machine has only one way to execute A program translates the language the person writes into something the computer understands Compilers translate once, interpreters translate every time Later in the semester we’ll look at what the computer understands

Web Pages Web pages are defined in a language called HTML (HyperText Markup Language) Hypertext: text that has different paths that can be taken Markup Language: the text that is to be presented and instructions (markups) on how to present it

Hypertext Proposed by Vannevar Bush in 1945 We do not think or learn linearly We need to understand many concepts and how they come together People have different knowledge and learning skills We want to go off and further explore ideas In literature, we may want to explore alternative outcomes

Markup Language Source does not appear the way that it will eventually look Contrast: WYSIWYG -- What You See Is What You Get Advantage: easy to edit Disadvantage: hard to visualize

Editting HTML files Two options Edit HTML Use a WYSIWYG Why learn HTML? Tool to understand computers Why use HTML? Control Simple changes