CMSC 150 INTRODUCTION TO COMPUTING CS 150: Wed 11 Jan 2012.

Slides:



Advertisements
Similar presentations
Using Java without BlueJ BlueJ projects A BlueJ project is stored in a directory on disk. A BlueJ package is stored in several different files.
Advertisements

Dr. Ken Hoganson, © August 2014 Programming in R COURSE NOTES 2 Hoganson Language Translation.
Introduction to Programming Lecture 2. Today’s Lecture Software Categories Software Categories System Software System Software Application Software Application.
CS201 – Makefile Tutorial. A Trivial Makefile # Trivial Makefile for puzzle1.c # Ray S. Babcock, CS201, MSU-Bozeman # 1/5/05 # puzzle1: puzzle1.c gcc.
Wednesday, 9/4/02, Slide #1 1 CS 106 Intro to CS 1 Wednesday, 9/4/02  Today: Introduction, course information, and basic ideas of computers and programming.
Lecture 1: Intro to Computers Yoni Fridman 6/28/01 6/28/01.
Lecture 2: Do you speak Java?. From Problem to Program Last Lecture we looked at modeling with objects! Steps to solving a business problem –Investigate.
Using Java without BlueJ Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling BlueJ projects A BlueJ.
Using Java without BlueJ
Introduction to Programming with Java, for Beginners Machine vs. Programming Language Intro to Java Edit-Compile-Run Program Process.
Introduction to Java.
CS 0008 Day 2 1. Today Hardware and Software How computers store data How a program works Operators, types, input Print function Running the debugger.
Using the Java programming language compiler. Review of relevant material from previous lectures From previous lectures: A computer can only execute machine.
Marlene Galea.  The JDK (Java Development Kit)  An IDE (Integrated Development Environment) ◦ Different IDEs include:  JCreator  NetBeans  BlueJ.
COMP Computer Basics Yi Hong May 13, 2015.
CS190/295 Programming in Python for Life Sciences: Lecture 1 Instructor: Xiaohui Xie University of California, Irvine.
IB Computer Science II Paul Bui
Peter Andreae Computer Science Victoria University of Wellington Copyright: Peter Andreae, Victoria University of Wellington Java Programs COMP 102 #3.
Introduction to Java Tonga Institute of Higher Education.
CMSC 150 INTRODUCTION TO COMPUTING CS 150: Mon 9 Jan 2012.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
CS 0004 –Lecture 1 Wednesday, Jan 5 th, 2011 Roxana Gheorghiu.
Computer Hardware and Software Chapter 1. Overview Brief History of Computers Hardware of a Computer Binary and Hexadecimal Numbers Compiling vs. Interpreting.
Basics Programming Concepts. Basics A computer program is a set of instructions to tell a computer what to do Machine language = circuit level language.
How Java Programs Work MIS 3023 Business Programming Concepts II The University of Tulsa Professor: Akhilesh Bajaj All slides in this presentation ©Akhilesh.
Integrated Development Environments (IDEs) CS 21a: Introduction to Computing I First Semester,
CS 106 Introduction to Computer Science I 01 / 25 / 2010 Instructor: Michael Eckmann.
UCSC All rights reserved. No part of this material may be reproduced and sold. 1 IT1202-Fundamentals Of Programming (Using JAVA) Interacting with.
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
Java Basics - Prashant Nagaraddi. Features of Java n Java syntax is similar to C/C++ but there are many differences too n Java is strongly typed like.
1 CSC204 – Programming I Lecture 2 Intro to OOP with Java.
COP 3330 Notes 1/12. Today's topics Downloading Java and Eclipse Hello World Basic control structures Basic I/O Strings.
David Streader Computer Science Victoria University of Wellington Copyright: David Streader, Victoria University of Wellington Java Programing Basics COMP.
Lecture 8 February 29, Topics Questions about Exercise 4, due Thursday? Object Based Programming (Chapter 8) –Basic Principles –Methods –Fields.
CS 178: Programming with Multimedia Objects Aditya P. Mathur Professor of Computer Sciences Purdue University, West Lafayette August 25, 2004 Last update:
12/4/20151 Introduction To Computer Science Bina Ramamurthy.
22-July-2002cse142-13B-Development © 2002 University of Washington1 Development Tools CSE 142, Summer 2002 Computer Programming 1
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.
CS 106 Introduction to Computer Science I 01 / 22 / 2007 Instructor: Michael Eckmann.
CS 178: Programming with Multimedia Objects Aditya P. Mathur Professor of Computer Sciences Purdue University, West Lafayette August 27, 2004 Last update:
Java FilesOops - Mistake Java lingoSyntax
Chapter 1 Introduction. Components of a Computer CPU (central processing unit) Executing instructions –Carrying out arithmetic and logical operations.
CS 1308 Exam 2 Review. Exam Format 110 Total Points 24 Points Short Answer 28 Points Fill in the Blank 16 Points T/F 36 Points Multiple Choice The above.
Ch 1 - Introduction to Computers and Programming Hardware Terminology Main Memory Auxiliary Memory Drives Writing Algorithms Using Pseudocode Programming.
Programming in the Context of a Typical Computer Computer Studies Created by Rex Woollard.
1. COMPUTERS AND PROGRAMS Rocky K. C. Chang September 6, 2015 (Adapted from John Zelle’s slides)
COMS W1004 Introduction to Computer Science June 2, 2008.
Compilers and Interpreters
© Peter Andreae Java Programs COMP 102 # T1 Peter Andreae Computer Science Victoria University of Wellington.
Computer Performance. Hard Drive - HDD Stores your files, programs, and information. If it gets full, you can’t save any more. Measured in bytes (KB,
Representation of Data Binary Representation of Instructions teachwithict.weebly.com.
Objects First With Java A Practical Introduction Using BlueJ Using Java without BlueJ 1.0.
Representation of Data - Instructions Start of the lesson: Open this PowerPoint from the A451 page – Representation of Data/ Instructions How confident.
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
Starting Out With Java 5 Control Structures to Objects By Tony Gaddis Copyright © 2005 Pearson Addison- Wesley. All rights reserved. Chapter 1 Slide #1.
CIS 234: Object-Oriented Programming with Java
Why don’t programmers have to program in machine code?
David Kauchak CS 52 – Spring 2017
Computational Thinking, Problem-solving and Programming: General Principals IB Computer Science.
hardware bits and bytes Java
Introduction
Computer Systems – Memory & the 3 box Model
CS190/295 Programming in Python for Life Sciences: Lecture 1
Computer Organization & Compilation Process
Virtualization Techniques
Introduction to Algorithm Design
LMC Little Man Computer What do you know about LMC?
IB Computer Science II Paul Bui
Computer Organization & Compilation Process
Programming language translators
Presentation transcript:

CMSC 150 INTRODUCTION TO COMPUTING CS 150: Wed 11 Jan 2012

Quote of the Day “A smartphone today has more computing power than all of NASA did when it put a man on the moon in 1969.” - Paul Otellini, Intel CEO Quoted from Michael J. Miller’s ForwardThinking blog

Homework, due Wednesday 1/18  p : 2, 3, 7, 9  p : 4, 6, 7, 8, 10, 11  p. 130: #4 and 5 (can be done on pencil and paper or as a BlueJ project - use project name hw1_ as your project name, and be sure to put your name in the comment at the top of the.java file if you do this in BlueJ)  Bonus problem: p. 128: #6

Compiling & Executing Compiler Java Program (Source) Java Program (Source) Java Program (Source) Java Program (Source) Java Program (Byte Code) Java Program (Byte Code) Java Program (Byte Code) Java Program (Byte Code) Java Virtual Machine Java Virtual Machine You write the.java source code into a text file using an IDE, e.g., BlueJ

Compiler The compiler is a program that converts source to binary; Included as part of Java Java Program (Source) Java Program (Source) Java Program (Source) Java Program (Source) Java Program (Byte Code) Java Program (Byte Code) Java Program (Byte Code) Java Program (Byte Code) Java Virtual Machine Java Virtual Machine Compiling & Executing

Compiler Java Program (Source) Java Program (Source) Java Program (Source) Java Program (Source) Java Program (Byte Code) Java Program (Byte Code) Java Program (Byte Code) Java Program (Byte Code) Java Virtual Machine Java Virtual Machine The.class byte code file (binary) can be executed Compiling & Executing

Compiler Java Program (Source) Java Program (Source) Java Program (Source) Java Program (Source) Java Program (Byte Code) Java Program (Byte Code) Java Program (Byte Code) Java Program (Byte Code) Java Virtual Machine Java Virtual Machine Java VM is a program that executes byte code instructions on the CPU Compiling & Executing

RAM vs. Hard Drive

Your Program’s State Your.java source code file is saved to disk

Your Program’s State When you compile, the.class binary file is also saved to disk

Your Program’s State When you run the program, the Java VM loads the binary version into RAM…

Your Program’s State so that the instructions can be executed on the CPU

Let’s Move Into BlueJ…