Mobile Development Workshop

Slides:



Advertisements
Similar presentations
Dr. Ken Hoganson, © August 2014 Programming in R COURSE NOTES 2 Hoganson Language Translation.
Advertisements

CS0007: Introduction to Computer Programming Console Output, Variables, Literals, and Introduction to Type.
CS0004: Introduction to Programming Introduction to Programming.
CSCE 145: Algorithmic Design I Chapter 1 Intro to Computers and Java Muhammad Nazmus Sakib.
Introduction to Computers and Java Module 1. Objectives overview computer hardware and software introduce program design and object-oriented programming.
Chapter 1: An Overview of Computers and Programming Languages J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program.
Slides prepared by Rose Williams, Binghamton University Chapter 1 Getting Started 1.1 Introduction to Java.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
JAVA: An Introduction to Problem Solving & Programming, 5 th Ed. By Walter Savitch and Frank M. Carrano. ISBN © 2009 Pearson Education, Inc.,
Computer Concepts 5th Edition Parsons/Oja Page 546 CHAPTER 11 Software Engineering Section A PARSONS/OJA Computer Programming.
Lecture 1: Intro to Computers Yoni Fridman 6/28/01 6/28/01.
Low-Level Programming Languages
JAVA: An Introduction to Problem Solving & Programming, 5 th Ed. By Walter Savitch and Frank M. Carrano. ISBN © 2007 Pearson Education, Inc.,
Java An introduction. Example 1 public class Example1 { public static void main (String [] args) { System.out.println (“This is the first example”); int.
Chapter 7 Low-Level Programming Languages Nell Dale John Lewis.
1 Programming & Programming Languages Overview l Machine operations and machine language. l Example of machine language. l Different types of processor.
Chapter 6: An Introduction to System Software and Virtual Machines
Introduction to Computers and Programming. Some definitions Algorithm: Algorithm: A procedure for solving a problem A procedure for solving a problem.
JAVA: An Introduction to Problem Solving & Programming, 6 th Ed. By Walter Savitch ISBN © 2012 Pearson Education, Inc., Upper Saddle River,
Types of Computer/Programming Languages Machine Language Symbolic Languages There Are Two Types Of Symbolic Languages Low level Language » Low level language.
Assembly & Machine Languages
COMP Computer Basics Yi Hong May 13, 2015.
1 Chapter-01 Introduction to Computers and C++ Programming.
An Introduction Chapter Chapter 1 Introduction2 Computer Systems  Programmable machines  Hardware + Software (program) HardwareProgram.
CPS120: Introduction to Computer Science
Madiha Liaqat Lecturer, UET, Taxila Programming Fundamentals.
COMP 110: Introduction to Programming Tyler Johnson January 14, 2009 MWF 11:00AM-12:15PM Sitterson 014.
COP1220/CGS2423 Introduction to C++/ C for Engineers Professor: Dr. Miguel Alonso Jr. Fall 2008.
JAVA: An Introduction to Problem Solving & Programming, 5 th Ed. By Walter Savitch and Frank M. Carrano. ISBN © 2007 Pearson Education, Inc.,
Computing with C# and the.NET Framework Chapter 1 An Introduction to Computing with C# ©2003, 2011 Art Gittleman.
JAVA: An Introduction to Problem Solving & Programming, 7 th Ed. By Walter Savitch ISBN © 2015 Pearson Education, Inc., Upper Saddle River,
Introduction to Computers and Java Chapter 1.3. A Sip of Java: Outline History of the Java Language Applets A First Java Program Compiling a Java Program.
Chapter 11 Introduction to Computers and Java Chapter 1.
CHAPTER 3 GC Java Fundamentals. 2 BASICS OF JAVA ENVIRONMENT  The environment  The language  Java applications programming Interface API  Various.
Chapter 1 Section 1.1 Introduction to Java Slides prepared by Rose Williams, Binghamton University Kenrick Mock, University of Alaska Anchorage.
Introduction to Computers and Java Module 1. Objectives overview computer hardware and software introduce program design and object-oriented programming.
Computer Operations A computer is a programmable electronic device that can store, retrieve, and process data Data and instructions to manipulate the data.
Tolo-e-aftab higher education 1 th semester Bcs 1/2/1392 MINISTRY OF HIGHER EDUCATION.
Component 4: Introduction to Information and Computer Science Unit 5: Overview of Programming Languages, Including Basic Programming Concepts Lecture 2.
Intro to Programming Web Design ½ Shade Adetoro. Programming Slangs IDE - Integrated Development Environment – the software in which you develop an application.
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.
Chapter 4 Software. Chapter 4: Software Generations of Languages Each computer is wired to perform certain operations in response to an instruction. An.
Lecture 2 Programming life cycle. computer piano analogy Piano + player - computer hardware Musical score/notes - software or program Composer - programmer.
JAVA: An Introduction to Problem Solving & Programming, 7 th Ed. By Walter Savitch ISBN © 2015 Pearson Education, Inc., Upper Saddle River,
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
JAVA: An Introduction to Problem Solving & Programming, 7 th Ed. By Walter Savitch ISBN © 2015 Pearson Education, Inc., Upper Saddle River,
JAVA: An Introduction to Problem Solving & Programming, 7 th Ed. By Walter Savitch ISBN © 2015 Pearson Education, Inc., Upper Saddle River,
Chapter 1 An Overview of Computers and Programming Languages.
Review A program is… a set of instructions that tell a computer what to do. Programs can also be called… software. Hardware refers to… the physical components.
JAVA: An Introduction to Problem Solving & Programming, 6 th Ed. By Walter Savitch ISBN © 2012 Pearson Education, Inc., Upper Saddle River,
Why don’t programmers have to program in machine code?
Mobile Development Workshop
Introduction to programming
Programming Language Hierarchy, Phases of a Java Program
Console Output, Variables, Literals, and Introduction to Type
Introduction
C# and the .NET Framework
Data types and variables
Introduction to Computers and Java
Introduction to Computers and Java
Introduction to Computer Software
ICT Programming Lesson 1:
Welcome to AP Computer Science A!
Welcome to AP Computer Science A!
Programming language translators
 Is a machine that is able to take information (input), do some work on (process), and to make new information (output) COMPUTER.
Presentation transcript:

Mobile Development Workshop Introduction to Java

Overview Computer hardware, software, and programming languages The Java programming language Simple Java statements Data, variables, and types Classes, objects, and methods Control flow Conditional statements Loops Graphical User Interfaces

Hardware and Software Computer systems consist of hardware and software. Hardware includes the tangible parts of computer systems. Software includes programs - sets of instructions for the computer to follow. Familiarity with hardware basics helps us understand software.

Memory Memory holds Two kinds of memory programs data for the computer to process the results of intermediate processing. Two kinds of memory main memory auxiliary memory

Bits, Bytes, and Addresses A bit is a digit with a value of either 0 or 1. A byte consists of 8 bits. Each byte in main memory resides at a numbered location called its address.

Main Memory Figure 1.1

Programs A program is a set of instructions for a computer to follow. We use programs almost daily (email, word processors, video games, bank ATMs, etc.). Following the instructions is called running or executing the program.

Running a Program

Programming Languages High-level languages are relatively easy to use Java, C#, C++, Visual Basic, Python, Ruby. Unfortunately, computer hardware does not understand high-level languages. Therefore, a high-level language program must be translated into a low-level language.

Compilers A compiler translates a program from a high-level language to a low- level language the computer can run. You compile a program by running the compiler on the high-level- language version of the program called the source program. Compilers produce machine- or assembly-language programs called object programs.

Java Byte-Code The Java compiler does not translate a Java program into assembly language or machine language for a particular computer. Instead, it translates a Java program into byte-code. Byte-code is the machine language for a hypothetical computer (or interpreter) called the Java Virtual Machine.

Compiling and Running a Program

Writing our first Java Programs Write a program that operates like this: Sample screen output

Printing to the screen System.out is an object for sending output to the screen. println is a method to print whatever is in parentheses to the screen. System.out.println (“Whatever you want to print”);

Printing to the screen The object performs an action when you invoke or call one of its methods objectName.methodName(argumentsTheMethodNeeds);