SWTJC STEM Chapter 1-1 cg 1 Welcome to ENGR 2304/COSC 1336 Engineering Programming Want to be a “Lean, mean programming machine...”

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
In Review JAVA C++ GUIs - Windows Webopedia.com.
INTRODUCTION Chapter 1 1. Java CPSC 1100 University of Tennessee at Chattanooga 2  Difference between Visual Logic & Java  Lots  Visual Logic Flowcharts.
Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Introduction to Java Programming, 4E
Introduction to Computer Programming CSC 1401: Introduction to Programming with Java Lecture 2 Wanda M. Kunkle.
© Prentice Hall CHAPTER 3 Computer Software.
Programming Software Applications Week 1 Dr. Xiaohong Gao Trent Park – B107, ext. 2252
L EC. 01: J AVA FUNDAMENTALS Fall Java Programming.
01 Introduction to Java Technology. 2 Contents History of Java What is Java? Java Platforms Java Virtual Machine (JVM) Java Development Kit (JDK) Benefits.
LESSON 1 INTRODUCTION Compiled By: Edwin O. Okech [Tutor, Amoud University] JAVA PROGRAMMING.
Sadegh Aliakbary Sharif University of Technology Fall 2011.
Advanced OOP MCS-3 OOP BSCS-3 Lecture # 1
Introduction to Java Programming. Contents 1. Java, etc. 2. Java's Advantages 3. Java's Disadvantages 4. Types of Java Code 5. Java Bytecodes 6. Steps.
CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]
Chapter 1 Coding Introduction.
Introduction to Java Programming with JBuilder 4
CS413: Java Programming language Applications Applets
Java Workshop for Teachers May 6, 2005 A Brief Look at the Java Programming Language.
Lecturer PEN PHIROM Tel : Web site: Lecturer PEN PHIROM Tel :
16-1 The World Wide Web The Web An infrastructure of distributed information combined with software that uses networks as a vehicle to exchange that information.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
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.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Programming Languages Machine.
Java Lecture 16: Dolores Zage. WWW n Was a method for distributing passive information n added forms and image maps n interaction was only a new way to.
Sadegh Aliakbary Sharif University of Technology Fall 2012.
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.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to.
© 2012 Pearson Education, Inc. All rights reserved. 1-1 Why Java? Needed program portability – Program written in a language that would run on various.
POS 406 Java Technology And Beginning Java Code
Java Programming, Second Edition Chapter One Creating Your First Java Program.
Programming Concept Chapter I Introduction to Java Programming.
Introduction to Java Programming with Forte Y. Daniel Liang.
1 Programming Fundamentals AITI-GP. 2 Introduction to Programming.
The Joy of Programming (also known as) Introduction to Object-Oriented Programming.
CS 3131 Introduction to Programming in Java Rich Maclin Computer Science Department.
Discovering Computers 2009 Chapter 13 Programming Languages and Program Development.
Introduction to Java Programming. Introduction Course Objectives Organization of the Book.
What Is Java? According to Sun in a white paper: Java: A simple, object-oriented, network-savvy, interpreted, robust, secure, architecture-neutral, portable,
Mini University July, 2005 A Little Taste of Java (but don’t tell your folks) (they might think there’s caffeine involved)
J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program Design, Second Edition Second Edition D.S. Malik D.S. Malik.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Lecture 1. Introduction to Programming and Java MIT- AITI 2003.
Application Architecture Using Java Hong Li. Introduction Developed by a team led by James Gosling at Sun Microsystem. Originally called Oak, designed.
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
Lecture1 Instructor: Amal Hussain ALshardy. Introduce students to the basics of writing software programs including variables, types, arrays, control.
ITP 109 Week 2 Trina Gregory Introduction to Java.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to Computers,
BlueJ X ICSE Syllabus. Board Pattern THEORY (100 marks) PRACTICAL (100 marks) PROJECT (50 marks) ASSIGNMENTS (50 marks)
Introduction to JAVA Programming
Introduction to Java Programming, 4E Y. Daniel Liang.
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
Chapter 1 Coding Introduction.
Lecture 1b- Introduction
Done By: Ashlee Lizarraga Ricky Usher Jacinto Roches Eli Gomez
Chapter 1 Introduction to Computers, Programs, and Java
Chapter No. : 1 Introduction to Java.
Introduction Enosis Learning.
Introduction Enosis Learning.
Chapter 1 Coding Introduction.
Advanced Programming Fall 2017.
(Computer fundamental Lab)
Tonga Institute of Higher Education IT 141: Information Systems
CSC 142 Introduction to Java [Reading: chapters 1 & 2]
Tonga Institute of Higher Education IT 141: Information Systems
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:

SWTJC STEM Chapter 1-1 cg 1 Welcome to ENGR 2304/COSC 1336 Engineering Programming Want to be a “Lean, mean programming machine...”

SWTJC STEM Chapter 1-1 cg 1 Welcome to ENGR 2304/COSC 1336 Engineering Programming My name is Dick Whipple BSEE, MSEE from UH Designed and programmed computers for 25 years The course, ENGR 2304/COSC Is designed as a first programming course. Is widely accepted for transfer. Will use Java as the programming language. Will focus on engineering problem solving. Is WebCT enhanced with lab on Internet.

SWTJC STEM Chapter 1-1 cg 1 Very Important Information Objectives for Thursday Access course on my website Logon to WebCT & this class Add both links to your favorites! Review the syllabus Start Assignment 1 Read Chapter 1-1 of the text, Java Software Solutions by Lewis and Loftus Install JBuilder from CD-ROM

SWTJC STEM Chapter 1-1 cg 1 Class Attendance Attend class regularly Class begins promptly At 8:00 AM Class WebCT enhanced including... Access to study materials Lecture PowerPoints Videos Other readings Complete/submit lab assignments

SWTJC STEM Chapter 1-1 cg 2 Demonstrate Responsibility Read and follow instructions to the letter. Read and study all assigned “Text Readings”. Research the Internet as directed. Utilize WebCT as an enhancement to the course. Ask questions when you don’t understand. Complete work on time and without weak excuses. Take your first steps as a “Professional”!

SWTJC STEM Chapter 1-1 cg 3 Computers Are Not Magic "There is nothing magic about computers. Any answer that a computer can arrive at could also be arrived at by a human if he/she lived long enough, had enough pencils, etc. What's important to remember is that, regardless of the speed at which a computation is done, the process is a straightforward, one step at a time, matter." "That isn't to say that a person or persons can solve any problem a computer can. Sometimes temporal (time) problems are a part of the problem. The numbers which tell the rockets of a space ship what to do after the first stage lets go can't take six months for a human to compute with paper and pencil. If more than a second or so is required, a satellite may be falling down someone's chimney." Michael Kennedy and Martin B. Solomon

SWTJC STEM Chapter 1-1 cg 3 Communicating with Computers "A person who wants to use a computer must learn to be precise. One does not communicate with a computer by hand waving and mumbling. A computer can be of service only if it is instructed carefully and according to preset rules." Michael Kennedy and Martin B. Solomon As a student in ENGR 2304, I expect you to follow this admonition to the letter. If you are not willing to do so, this class may not be for you!

SWTJC STEM Chapter 1-1 cg 3 Purpose of a Programming Language The purpose of a programming language is to facilitate communication between humans and computers. Computers are very accurate and fast at following instructions, but understand only “bits and bytes”. Humans know what instructions to give, but cannot easily give them to computers in “bits and bytes”. Computer languages bridge the gap!

SWTJC STEM Chapter 1-1 cg 3 Examples of Programming Languages Java, Visual Basic, & C++ are multipurpose languages. Fortran & Aida are scientific languages. Cobol is a business language. Assembly languages create fast, compact code for 3D animation and gaming. Markup languages like HTML are Internet based. Scripting languages like JavaScript perform utility duty.

SWTJC STEM Chapter 1-1 cg 4 History of Java Developed at Sun Microsystems in early 1990’s. Development team led by James Gosling. Originally called Oak and used in embedded consumer electronic applications. In 1995 renamed Java and redesigned for Internet applications. Gained renown as a general purpose programming language.

SWTJC STEM Chapter 1-1 cg 5 Characteristics of Java Simple, modeled after C++ but easier to use Object oriented, not procedural. Distributed, adaptable to networking environments Interpreted, runs on almost all computers Robust & reliable; emphasizes error checking & good habits Secure, will not damage a computer Architecture neutral, platform independent Portable, runs without being recompiled Performance good though not the fastest Multithreaded, performs several tasks at once Dynamic, adapts to evolving environment

SWTJC STEM Chapter 1-1 cg 6 Java’s Relationship with World Wide Web HTML is the authoring language for WWW. Java programs run from browser. Java makes the web environment “smarter”. Java adds responsiveness and interactivity. Java uses modern GUI interface. Java enhances web graphics. Java allows the web page to respond to user events.

SWTJC STEM Chapter 1-1 cg 7 Java Development Environments Sun Microsystems provides JDK (Java Toolkit) JDK is basic and simple, but inefficient as design tool. Other environments are better NetBeans from Sun JBuilder from Borland (we will use this!) Visual Café from Webgain Visual Age from IBM Visual J++ from Microsoft

SWTJC STEM Chapter 1-1 cg 7 IDE NetBeans Easy to learn Simple to use Adaptable to user requirements Readily navigated to access... packages projects programs classes code elements NetBeans provides an IDE (Integrated Development Environment) that is...

SWTJC STEM Chapter 1-1 cg 8 Installing NetBeans Download NetBeans from: Run the “.exe” file You’ll be ready to “Run” your first program in not time!.

SWTJC STEM Chapter 1-1 cg 9 Elements of AppBrowser Window

SWTJC STEM Chapter 1-1 cg Types of Java Programs Application - A stand alone program written with a high level language such as Java. Executed from the computer by a Java interpreter Not subject to security restrictions Must contain a “main” method Applet - Special kind of Java program that runs from a web browser or applet viewer. Subject to security restrictions Cannot make changes to user’s system Cannot read or write files Cannot transmit computer viruses

SWTJC STEM Chapter 1-1 cg Java Program Components Java’s programming components: Packages - Collection of classes (Programs) Classes - Collections of data and methods that operate on data Methods - Collections of statements that operate on data Variables - Stores data Constants - Stores data that doesn’t change Literals - Explicitly given data Data {

SWTJC STEM Chapter 1-1 cg Java Programming Process 1.Create source code.  Programmer creates source.  Stores in filename.java. 2.Compile source.  Converts source code to bytecode.  Stores in filename.class. (Ready to execute.) 3.Execute bytecode in filename.class.

SWTJC STEM Chapter 1-1 cg Steps to Create a Program 1.Create a Java project. 2.Create a Java application program. 1)Create a new class. 2)Create the main method. 3.Compile and execute – “Run” the application.

SWTJC STEM Chapter 1-1 cg First Program with JBuilder /* My First Program */ public class HelloWorld { public static void main(String[] args) { // Declare variables // Input data // Process data // Output Results System.out.println("Hello World"); }

SWTJC STEM Chapter 1-1 cg What to do now? Click on “Online Classes” at SWTJC’s homepage. Click on “Class Schedule and find this class. Link to my homepage and click on ENGR Follow the instructions there for New Students. Complete Assignment 1 by Thursday, February 4, 2010.