Parts of a Computer Why Use Binary Numbers? Source Code - Assembly - Machine Code.

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

JAVA Programming Environment © Juhani Välimäki 2003.
Chapter 2 First Java Programs
Object Orientated Programming
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.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
1 Fall 2008ACS-1903 Chapter 1 Topics Java History Java Programs Why Program? Computer Systems: Hardware and Software Programming Languages What Is a Program.
CENG 161 Introduction to Computer Science Instructor: Dr. Nurdan SARAN Lab Assistant: Arzu Burçak Sönmez.
1 Programming Languages Translation  Lecture Objectives:  Be able to list and explain five features of the Java programming language.  Be able to explain.
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
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.
Introduction to Programming with Java, for Beginners Machine vs. Programming Language Intro to Java Edit-Compile-Run Program Process.
Java How to Program, 9/e Instructor: José M. Reyes Álamo © by Pearson Education, Inc. All Rights Reserved.
CS0007: Introduction to Computer Programming Setting Up Java.
LESSON 1 INTRODUCTION Compiled By: Edwin O. Okech [Tutor, Amoud University] JAVA PROGRAMMING.
Marlene Galea.  The JDK (Java Development Kit)  An IDE (Integrated Development Environment) ◦ Different IDEs include:  JCreator  NetBeans  BlueJ.
The Basic Java Tools A text editor to write Java program source code. A compiler to translate source code into bytecode. An interpreter to translate.
Java PAL.  Contains the development kit and the runtime environment ( aka the Java Virtual Machine )  Download Link:
Advanced OOP MCS-3 OOP BSCS-3 Lecture # 1
Introduction to Java Tonga Institute of Higher Education.
Introducing Java.
Introduction to Java CSIS 3701: Advanced Object Oriented Programming.
CS110/CS119 Introduction to Computing (Java)
Topics Introduction Hardware and Software How Computers Store Data
(C) 2010 Pearson Education, Inc. All rights reserved.  Java programs normally go through five phases  edit  compile  load  verify  execute.
CMSC 202 Computer Science II for Majors Object-Oriented Programming.
Chapter 1.4 Programming languages Homework Due: Monday, August 11, 2014.
111 © 2002, Cisco Systems, Inc. All rights reserved.
Slide 1/8Jack IDE Tutorial, Index This program is part of the software suite that accompanies the book The Elements of Computing.
1 Chapter 2 First Java Programs Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Computer Programming 12 Mr. Jean March 19 th, 2013.
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 Environment CSCI 201L Jeffrey Miller, Ph.D. HTTP :// WWW - SCF. USC. EDU /~ CSCI 201 USC CSCI 201L.
BIT115 Downloading & Installing the BIT115 Software & Programs.
© 2012 Pearson Education, Inc. All rights reserved. 1-1 Why Java? Needed program portability – Program written in a language that would run on various.
Mrs. Ulshafer August, 2013 Java Programming Chapter 1.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
4-Nov-15 Air Force Institute of Technology Electrical and Computer Engineering Object-Oriented Programming Design Topic 1: The Java Environment Maj Joel.
Getting started with Programming using IDE. JAVA JAVA IS A PROGRAMMING LANGUAGE AND A PLATFORM. IT CAN BE USED TO DELIVER AND RUN HIGHLY INTERACTIVE DYNAMIC.
Computing System Fundamentals 3.1 Language Translators.
How to Install the JDK (Java Development Kit) Click hereClick here to download the JDK.
A compiler is a computer program that translate written code (source code) into another computer language Associated with high level languages A well.
Using This PowerPoint This PowerPoint presentation assumes your Computer Science teacher has provided you with the InstallingJava folder, which contains.
 Programming - the process of creating computer programs.
© 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.
Installing Java on a Home machine For Windows Users: Download/Install: Go to downloads html.
Java How to Program, 9/e Presented by: José M. Reyes Álamo © by Pearson Education, Inc. All Rights Reserved.
ITP 109 Week 2 Trina Gregory Introduction to Java.
BlueJ X ICSE Syllabus. Board Pattern THEORY (100 marks) PRACTICAL (100 marks) PROJECT (50 marks) ASSIGNMENTS (50 marks)
1 Sections Java Virtual Machine and Byte Code Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Starting Out With Java 5 Control Structures to Objects By Tony Gaddis Copyright © 2005 Pearson Addison- Wesley. All rights reserved. Chapter 1 Slide #1.
CS 201 Lecture 1 (b) Using an IDE Tarik Booker CS 201: Introduction to Programming California State University, Los Angeles.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
CIS 234: Object-Oriented Programming with Java
Downloading & Installing the BIT115 Software & Programs
Basic Concepts: computer, program, programming …
Installing Java on a Home machine
Lecture 1b- Introduction
Before You Begin Nahla Abuel-ola /WIT.
Topics Introduction Hardware and Software How Computers Store Data
Chapter 1 Introduction to Computers, Programs, and Java
1. Environment Setting Minhaeng Lee.
Chapter 2 First Java Programs
Java programming lecture one
Installing Java on a Home machine
Topics Introduction Hardware and Software How Computers Store Data
Review of Previous Lesson
Outcome of the Lecture Upon completion of this lecture you will be able to understand Fundamentals and Characteristics of Java Language Basic Terminology.
Presentation transcript:

Parts of a Computer

Why Use Binary Numbers?

Source Code - Assembly - Machine Code

Why Java? Safety The safety features of the Java language make it possible to run Java programs in a browser without fear that they might attack your computer. As an added benefit, these features also help you to learn the language faster. When you make an error that results in unsafe behavior, you receive an accurate error report. Portability The other benefit of Java is portability. The same Java program will run, without change, on Windows, UNIX, Linux, or Macintosh. In order to achieve portability, the Java compiler does not translate Java programs directly into CPU instructions. Instead, compiled Java programs contain instructions for the Java virtual machine, a program that simulates a real CPU. Portability is another benefit for the beginning student. You do not have to learn how to write programs for different platforms.

Java Versions

every Java program has a class the program must have a main method A Java Program

programming languages use reserve words that have special meaning and cannot be used for other purposes the programmer names the program and decides what it should do this line tells the computer where to display the message later, we will learn some other options for displaying messages

Another Java Program line numbers are used in book to help with descriptions of programs book uses a different style to define program blocks

Another Java Program

Computers can "Do the Math"

Steps in the Development of a Java Program

JVM 1 JVM 2 JVM 3 JVM n : One Bytecode, Many JVM's Java Source Code Text Editor File Access Program I/O - Compiler Messages jGrasp Integrated Development Environment (IDE) There is a different configuration of the Java Virtual Machine (JVM) for every platform (type of computer) and Operating System (OS) this computer that computer mobile device the other computer

Installing NetBeans The NetBeans Integrated Development Environment (IDE) is available at the NetBeans Web site: If the Java Development Kit (JDK) is not already installed on your computer, you will need to download and install it as well. The JDK is available on the Oracle Web site: The Standard Edition (SE) is preferred for both NetBeans and the JDK.

don't forget to accept the license agreement For Windows OS bit computers use x86 version 64-bit computers use x64 version

NetBeans IDE 7.4

New Project

Project Name

Writing the Source Code

Installing jGrasp

Starting jGrasp

Quick Start Open - Compile - Run

A New Editor Window in jGrasp

Creating and Saving a Java Program

The Encode / Debug Cycle

Summary A Textbook for Two Courses Parts of a Computer Why Computers use binary numbers. Source Code, Assembly, and Machine Code Structure of a Java Program Java Program Development Bytecode and the JVM Installing and Using jGrasp Encoding and Debugging