Hudson Valley Community College CISS-110 – Programming & Logic I David Goldschmidt, Ph.D.

Slides:



Advertisements
Similar presentations
Continuation of chapter 6…. Nested while loop A while loop used within another while loop is called nested while loop. Q. An illustration to generate.
Advertisements

Assembly Language for Intel-Based Computers, 4 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify and.
Chapter 1 Chapter 2 Chapter 3 Code Gone Wrong Random 5 pt 5 pt 5 pt
4/23/2015Engineering Problem Solving with C++ second edition, J. ingber 1 Engineering Problem Solving with C++, Etter/Ingber Chapter 1.
 2005 Pearson Education, Inc. All rights reserved Introduction.
Assembly Language for Intel-Based Computers, 4th Edition
CMSC 341 Introduction to Java Based on tutorial by Rebecca Hasti at
Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.
Chapter 1 Introduction to Programming and the Java Language.
The College of Saint Rose CIS 433 – Programming Languages David Goldschmidt, Ph.D. from Concepts of Programming Languages, 9th edition by Robert W. Sebesta,
Basics Programming Concepts. Basics A computer program is a set of instructions to tell a computer what to do Machine language = circuit level language.
CSU0014 Assembly Languages Homepage: Textbook: Kip R. Irvine, Assembly Language for Intel-Based Computers,
Summer 2014 Chapter 1: Basic Concepts. Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Chapter Overview Welcome to Assembly Language.
Assembly Language for x86 Processors 7th Edition
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
Comp Sci 251 Intro 1 Computer organization and assembly language Wing Huen.
Assembly Language for x86 Processors 7 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify and copy this.
Chapter 1: Introducing JAVA. 2 Introduction Why JAVA Applets and Server Side Programming Very rich GUI libraries Portability (machine independence) A.
Introduction to Programming David Goldschmidt, Ph.D. Computer Science The College of Saint Rose Java Fundamentals (Comments, Variables, etc.)
Introduction to Computer Systems and the Java Programming Language.
Introduction to C++ Programming Language
Intro and Review Welcome to Java. Introduction Java application programming Use tools from the JDK to compile and run programs. Videos at
Java means Coffee Java Coffee Beans The name “JAVA” was taken from a cup of coffee.
CHAPTER 3 GC Java Fundamentals. 2 BASICS OF JAVA ENVIRONMENT  The environment  The language  Java applications programming Interface API  Various.
Lecture #5 Introduction to C++
Converting From decimal to Binary & Hexadecimal to Binary
Introduction to Programming David Goldschmidt, Ph.D. Computer Science The College of Saint Rose Java Fundamentals (Variables, Arithmetic, etc.)
Java Programming: From Problem Analysis to Program Design, 4e Chapter 2 Basic Elements of Java.
Chapter 19 Number Systems. Irvine, Kip R. Assembly Language for Intel-Based Computers, Translating Languages English: Display the sum of A times.
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.
Chapter 2 Number Systems: Decimal, Binary, and Hex.
Introduction to Programming
© 2004 Pearson Addison-Wesley. All rights reserved ComS 207: Programming I Instructor: Alexander Stoytchev
BEGINNING PROGRAMMING.  Literally – giving instructions to a computer so that it does what you want  Practically – using a programming language (such.
Chapter 1: Introducing JAVA. 2 Introduction Why JAVA Applets and web applications Very rich GUI libraries Portability (machine independence) A real Object.
Lecture 1: 8/27/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Overview of Java CSCI 392 Day One. Running C code vs Java code C Source Code C Compiler Object File (machine code) Library Files Linker Executable File.
Computer Science I CSCI Summer 2009 David E. Goldschmidt, Ph.D.
By Mr. Muhammad Pervez Akhtar
The College of Saint Rose CSC 202 – Introduction to Programming David Goldschmidt, Ph.D.
Java FilesOops - Mistake Java lingoSyntax
Chapter 1 Introduction. Components of a Computer CPU (central processing unit) Executing instructions –Carrying out arithmetic and logical operations.
Getting Started With Java September 22, Java Bytecode  Bytecode : is a highly optimized set of instructions designed to be executed by the Java.
COP 2551 Introduction to Object Oriented Programming with Java Topics –Introduction to the Java language –Code Commenting –Java Program Structure –Identifiers.
Digital Electronics Principles & Applications Fifth Edition Chapter 2 Numbers We Use in Digital Electronics ©1999 Glencoe/McGraw-Hill Roger L. Tokheim.
What is Binary Code? Computers use a special code of their own to express the digital information they process. It's called the binary code because it.
The Hexadecimal System is base 16. It is a shorthand method for representing the 8-bit bytes that are stored in the computer system. This system was chosen.
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.
The College of Saint Rose CIS 433 – Programming Languages David Goldschmidt, Ph.D. from Concepts of Programming Languages, 9th edition by Robert W. Sebesta,
Coding Part 2. Weight of the Digit 3672 Thousands (10 3 )Hundreds (10 2 )Tens (10 1 )Units (1) = Weights Decimal Example (3672) 10 Binary.
 Human language : commonly used to express feeling and understand what other people expression.  Computer language : are a languages by which a user.
Console Output, Variables, Literals, and Introduction to Type
Computer programming {weeks 01 and 02}
Internet and Java Foundations, Programming and Practice
Data types and variables
COUNTING IN BINARY Binary weightings 0 x x x x 8
Java Programming: From Problem Analysis to Program Design, 4e
Mobile Development Workshop
Binary Lesson 3 Hexadecimal
Chapter 11 Introduction to Programming in C
Binary Lesson 3 Hexadecimal
Binary Lesson 3 Hexadecimal
Chapter 11 Introduction to Programming in C
Binary Lesson 4 Hexadecimal and Binary Practice
COUNTING IN BINARY Binary weightings 0 x x x x 8
Binary Lesson 4 Hexadecimal and Binary Practice
CS Week 2 Jim Williams, PhD.
Lecture 36 – Unit 6 – Under the Hood Binary Encoding – Part 2
Section 6 Primitive Data Types
Presentation transcript:

Hudson Valley Community College CISS-110 – Programming & Logic I David Goldschmidt, Ph.D.

 Hardware consists of five key subsystems: from Fluency with Information Technology, 4th edition by Lawrence Snyder, Addison-Wesley, 2010, ISBN

 Each instruction goes through this cycle: from Fluency with Information Technology, 4th edition by Lawrence Snyder, Addison-Wesley, 2010, ISBN

 We use ten symbols to count  Digits:  Computers use two symbols to count  Digits: 0 1 (why?)  What is the exact mechanism for counting?  How do we count from 1 to 20?

 The powers of 2 give us the decimal weights  Convert from binary to decimal:  in decimal is = 153 powers of decimal weights binary digits

 Hexadecimal is base 16  It uses 16 digits: A B C D E F  Why use hex?  Binary numbers are too long  What’s 2BAD in decimal? decimalbinaryhexadecimal A B C D E F

 Represent printable and special characters  What about Unicode? from Fluency with Information Technology, 4th edition by Lawrence Snyder, Addison-Wesley, 2010, ISBN

public static void main( String[] args ) { float x; System.out. println( "... Java source code 7A F FE F D 4E intermediate code (byte code) translation program (compiler) virtual machine (JVM) A F AB AE F DA 44 intermediate code of precompiled libraries (java.util.Scanner byte code) program execution

 Read and study Chapter 1  Get Textpad up and running  Do Project #1:  Given a 3-digit number:  Generate output that shows each digit: int num = 582; The number is 582 The hundreds column is 5 The tens column is 8 The ones column is 2