2-1 Hardware CPU Memory - 2 kinds Network Graphics Input and Output Devices.

Slides:



Advertisements
Similar presentations
What is a Computer Program? For a computer to be able to do anything (multiply, play a song, run a word processor), it must be given the instructions.
Advertisements

Designing a Program & the Java Programming Language
COMPUTER TECHNOLOGY Computers Are Your Future Chapter 1.
The Binary Machine Modern high-level programming languages are designed to make programming easier. On the other end, the low level, all modern digital.
Chapter 1: An Overview of Computers and Programming Languages J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
Introduction to Computer Programming CSC 1401: Introduction to Programming with Java Lecture 2 Wanda M. Kunkle.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
1 SD1042: Introduction to Software Development SD1042 Introduction to Software Development SCHOOL OF COMPUTING AND TECHNOLOGY Getting Started MODULE TEAM.
History of Computers & the Internet Emily 5th. Creation of Computers Invented in 1936 Konrad Zuse Z1-First freely programmable computer.
COMP Computer Basics Yi Hong May 13, 2015.
CSC 110 A 1 CSC 110 Introduction to Python [Reading: chapter 1]
History of Programming Languages
CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]
Introduction COMP104: Fundamentals and Methodology.
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
COMP 110 Spring Announcements Computers in class on Friday: Lab Office Hours: Monday 12-2 New students see me after class Administrative Changes.
COMP 110: Introduction to Programming Tyler Johnson January 14, 2009 MWF 11:00AM-12:15PM Sitterson 014.
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.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming 1.
COMPUTER ERA Click to add subtitle.
Computer system overview1 The Effects of Computers Pervasive in all professions How have computers affected my life? How have computers affected my life?
Generations Of Computer Copyright(c)2011 Presentation Point( om)
1.8History of Java Java –Based on C and C++ –Originally developed in early 1991 for intelligent consumer electronic devices Market did not develop, project.
CSCI 161: Introduction to Programming 1
Clement Allen, PhD Florida A&M University SUMMER 2006.
Ch 1. A Python Q&A Session Spring Why do people use Python? Software quality Developer productivity Program portability Support libraries Component.
An Introduction to Software Development Java Methods A & AB Object-Oriented Programming and Data Structures Maria Litvin ● Gary Litvin Copyright © 2006.
2-1 Hardware CPU Memory - 2 kinds Network Graphics Input and Output Devices.
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
Mrs. Ulshafer August, 2013 Java Programming Chapter 1.
School of Computer Science & Information Technology G6DICP Introduction to Computer Programming Milena Radenkovic.
Computer Programming 2 Why do we study Java….. Java is Simple It has none of the following: operator overloading, header files, pre- processor, pointer.
Creating Your First Computer Program in Java Margaret Yau.
ENIAC Electronic Numerical Integrator and Computer.
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,
CS 251 C Programming for Engineers Spring 2016 Instructor: Dick Lang.
Introduction to Computer and Programing Thanachat Thanomkulabut.
Computer Science A 1. Course plan Introduction to programming Basic concepts of typical programming languages. Tools: compiler, editor, integrated editor,
ITP 109 Week 2 Trina Gregory Introduction to Java.
CPU and Motherboard. Why are they called Digital Computers? Code systems - Morris code ? Data and Program Representation.
The Wonderful World of Computers Larry Holder The University of Tennessee at Martin.
Computer Programming Week 1: The Basics of CP 1 st semester 2012 School of Information Technology Website:
An Introduction to Software Development JavaMethods An Introduction to Object-Oriented Programming Maria Litvin Gary Litvin Copyright © 2003 by Maria Litvin,
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
BlueJ X ICSE Syllabus. Board Pattern THEORY (100 marks) PRACTICAL (100 marks) PROJECT (50 marks) ASSIGNMENTS (50 marks)
Introduction to Programming AP Computer Science. Computers What is a computer? –CPU –ALU –Memory –Hard Drive.
Introduction to Computers and Programming
Lecture 1b- Introduction
Computer Science 2 What’s this course all about?
Memory Parts of a computer
Computer System and Programming
About the Presentations
Computer Hardware Introduction.
The Wonderful World of Computers
Computer Science I CSC 135.
Computers & Programming Languages
Computers Are Your Future Chapter 1
An Introduction to Software Development
Programming Languages
Text by: Lambert and Osborne
CSC 142 Introduction to Java [Reading: chapters 1 & 2]
Computer Programming-1 CSC 111
COP2800 – Computer Programming Using JAVA
Presentation transcript:

2-1 Hardware CPU Memory - 2 kinds Network Graphics Input and Output Devices

Everything is Binary Eniac 1950 Eniac contained 17,468 vacuum tubes, 7,200 crystal diodes, 1,500 relays, 70,000 resistors, 10,000 capacitors and around 5 million hand- soldered joints. It weighed more than 30 short tons (27 t), was roughly 8 by 3 by 100 feet (2.4 m × 0.9 m × 30 m), took up 1800 square feet (167 m2), and consumed 150 kW of power 2-2

2-3 The First “Bug” “(moth) in relay” Mark II Aiken Relay Calculator (Harvard University, 1945)

Bits and Bytes KB MB GB TB PB HB? 1-4

Numbers and Letters Numbers are represented in base Keystrokes are represented with ASCII ‘A’ = 65 = ‘B’ = 66 ‘C’ = 67 ‘a’ = 97 ‘b’ =

1-6 Gates AND gateOR gateNOT gate

1-7 Example: XOR Circuit A AND (NOT B) OR (NOT A) AND B

2-8 Software Instructions to CPU / Hardware Binary Assembly Language High Level Languages

2-9

2-10 Programming Languages Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80 C# Logo Python

2-11 Software Development Emphasis on efficiency  fast algorithms  small program size  limited memory use Often cryptic code Not user-friendly Emphasis on  programmer’s productivity  team development  reusability of code  easier maintenance  portability Better documented User-friendly 's:Now:

Java and BlueJ Java is our programming language, currently owned by Oracle. We need to download the Java JDK (Java Development Kit) from their website BlueJ is our IDE (Integrated Development Environment) in which we will write our Java code. It is very simple, free, and works on both Mac and PC. It has an editor, compiler, and debugger. 1-12

2-13 Java’s Compiler + Interpreter Editor    Hello.java  Compiler  Hello.class   Interpreter Hello, World !   Interpreter

2-14 Why Bytecodes? Platform-independent Load from the Internet faster than source code Interpreter is faster and smaller than it would be for Java source Source code is not revealed to end users Interpreter performs additional security checks, screens out malicious code

2-15 // Mike Bollhorst // Aug 17, 2015 // Hello: my first program - prints hello world on screen public class Hello { public static void print() { System.out.println(“Hello world!”); }