1 / 22

Welcome to ENGR 2304/COSC 1336 Engineering Programming

SWTJC STEM . Welcome to ENGR 2304/COSC 1336 Engineering Programming. Want to be a “Lean, mean programming machine . . .”. Chapter 1-1 cg 1. SWTJC STEM . Welcome to ENGR 2304/COSC 1336 Engineering Programming. My name is Dick Whipple BSEE, MSEE from UH

nairi
Download Presentation

Welcome to ENGR 2304/COSC 1336 Engineering Programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

  2. SWTJC STEM 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 1336 . . . • 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. Chapter 1-1 cg 1

  3. SWTJC STEM • Objectives for Thursday • Access course on my websitehttp://tech.swtjc.net/whipple_online/ • Logon to WebCT & this class http://70.241.209.12/webct/public/home.pl • 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 Very Important Information Chapter 1-1 cg 1

  4. SWTJC STEM • 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 Class Attendance Chapter 1-1 cg 1

  5. SWTJC STEM • 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”! Demonstrate Responsibility Chapter 1-1 cg 2

  6. SWTJC STEM "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." Computers Are Not Magic "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 Chapter 1-1 cg 3

  7. SWTJC STEM "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 Communicating with Computers • 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! Chapter 1-1 cg 3

  8. SWTJC STEM 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! Chapter 1-1 cg 3

  9. SWTJC STEM 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. Chapter 1-1 cg 3

  10. SWTJC STEM 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. Chapter 1-1 cg 4

  11. SWTJC STEM • 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 Characteristics of Java Chapter 1-1 cg 5

  12. SWTJC STEM 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. Chapter 1-1 cg 6

  13. SWTJC STEM 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 Chapter 1-1 cg 7

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

  15. SWTJC STEM • Download NetBeans from:http://java.sun.com/javase/downloads/netbeans.html • Run the “.exe” file • You’ll be ready to “Run” your first program in not time!. Installing NetBeans Chapter 1-1 cg 8

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

  17. SWTJC STEM • 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 Types of Java Programs Chapter 1-1 cg 10-14

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

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

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

  21. SWTJC STEM /* 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"); } } First Program with JBuilder Chapter 1-1 cg 10-14

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

More Related