Structured Programming and UML Introduction Session 2 LBSC 790 / INFM 718B Building the Human-Computer Interface.

Slides:



Advertisements
Similar presentations
Foundations of Programming and Problem Solving Introduction.
Advertisements

George Blank University Lecturer. CS 602 Java and the Web Object Oriented Software Development Using Java Chapter 4.
Slides prepared by Rose Williams, Binghamton University Chapter 1 Getting Started 1.1 Introduction to Java.
How to Create a Java program CS115 Fall George Koutsogiannakis.
Web Infrastructure Week 3 INFM 603. The Key Ideas Questions Structured Programming Modular Programming Data Structures Object-Oriented Programming.
Datalogi A 1: 8/9. Book: Cay Horstmann: Big Java or Java Consepts.
01 Introduction1June Introduction CE : Fundamental Programming Techniques.
Structured Programming and UML Overview Session 2 LBSC 790 / INFM 718B Building the Human-Computer Interface.
Chapter 8: Introduction to High-level Language Programming Invitation to Computer Science, C++ Version, Third Edition.
Where are we? Programming in Java consists of creating source code in an editor. Source code is compiled to bytecode by the Java compiler – javac The bytecode.
Modular Programming and Use Case Models Session 3 LBSC 790 / INFM 718B Building the Human-Computer Interface.
Software Development Process and Introduction to Java Session 1 LBSC 790 / INFM 718B Building the Human-Computer Interface.
Fundamental Programming Structures in Java: Comments, Data Types, Variables, Assignments, Operators.
CS 153: Concepts of Compiler Design August 25 Class Meeting Department of Computer Science San Jose State University Fall 2014 Instructor: Ron Mak
Guide To UNIX Using Linux Third Edition
Chapter 8: Introduction to High-level Language Programming Invitation to Computer Science, C++ Version, Third Edition.
CMSC 341 Introduction to Java Based on tutorial by Rebecca Hasti at
Data Structures Session 8 LBSC 790 / INFM 718B Building the Human-Computer Interface.
Introduction to Java Programming with JBuilder 4
Chapter 6Java: an Introduction to Computer Science & Programming - Walter Savitch 1 l Array Basics l Arrays in Classes and Methods l Programming with Arrays.
Introduction to Information and Computer Science Computer Programming Lecture c This material (Comp4_Unit5c), was developed by Oregon Health and Science.
High-Level Programming Languages: C++
Java Programming, 3e Concepts and Techniques Chapter 2 - Part 2 Creating a Java Application and Applet.
Software Development Process and Introduction to Java Session 1 LBSC 790 / INFM 718B Building the Human-Computer Interface.
DAT602 Database Application Development Lecture 5 JAVA Review.
Introduction to Information and Computer Science Computer Programming Lecture d This material (Comp4_Unit5d) was developed by Oregon Health and Science.
Welcome to the Lecture Series on “Introduction to Programming With Java”
Session One Introduction. Personal Introduction Role of programmers Robot Examination HUD & HID Uploading Code.
1 Module Objective & Outline Module Objective: After completing this Module, you will be able to, appreciate java as a programming language, write java.
Advanced Programming Collage of Information Technology University of Palestine, Gaza Prepared by: Mahmoud Rafeek Alfarra Lecture 2: Major Concepts of Programming.
CS 11 java track: lecture 1 Administrivia need a CS cluster account cgi-bin/sysadmin/account_request.cgi need to know UNIX
Board Activity Find your seat on the seating chart Login – Remember your login is your first initial your last name and the last three numbers of your.
Week 1 - Friday.  What did we talk about last time?  Our first Java program.
Java means Coffee Java Coffee Beans The name “JAVA” was taken from a cup of coffee.
CS591x A very brief introduction to Java. Java Developed by Sun Microsystems was intended a language for embedded applications became a general purpose.
Java SE 8 for Programmers, Third Edition
Component 4: Introduction to Information and Computer Science Unit 5: Overview of Programming Languages, Including Basic Programming Concepts Lecture 4.
Programming for Beginners Martin Nelson Elizabeth FitzGerald Lecture 6: Object-Oriented Programming.
Final Exam Review Session 14 LBSC 790 / INFM 718B Building the Human-Computer Interface.
UML Use Case Models and Modular Programming Session 3 LBSC 790 / INFM 718B Building the Human-Computer Interface.
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
Lecture 6: Midterm Review Tami Meredith. Programming Process How do we fill in the yellow box? Text Editor Compiler (javac) Interpreter (JVM: java) User.
CS7 Recitation Cem Akkaya. Outline  Homework-0 in detail  Useful links and tools  Setting up your java environment.
CSI 3125, Preliminaries, page 1 Compiling the Program.
Introduction to programming Carl Smith National Certificate Year 2 – Unit 4.
Component 4: Introduction to Information and Computer Science Unit 5: Overview of Programming Languages, Including Basic Programming Concepts Lecture 3.
By Mr. Muhammad Pervez Akhtar
Programmeren 1 6 september 2010 HOORCOLLEGE 2: INTERACTIE EN CONDITIES PROGRAMMEREN 1 6 SEPTEMBER 2009 Software Systems - Programming - Week.
Spring 2009 Programming Fundamentals I Java Programming XuanTung Hoang Lecture No. 8.
CPRG 215 Introduction to Object-Oriented Programming with Java Module 1-Introduction to Java Topic 1.3 Write Your First Java Program Produced by Harvey.
3/5/2002e-business and Information Systems1 Java Java Java Virtual Machine (JVM) Java Application Program Interface (API) HW Kernel API Application Programs.
CS 177 Recitation Week 1 – Intro to Java. Questions?
ITP 109 Week 2 Trina Gregory Introduction to Java.
JAVA Programming (Session 2) “When you are willing to make sacrifices for a great cause, you will never be alone.” Instructor: รัฐภูมิ เถื่อนถนอม
Programming Session 6 LBSC 690 Information Technology.
Execution ways of program References: www. en.wikipedia.org/wiki/Integrated_development_environment  You can execute or run a simple java program with.
Introduction to programming in java Lecture 22 Arrays – Part 2 and Assignment No. 3.
PRG 420 Entire Course FOR MORE CLASSES VISIT PRG 420 Week 1 Individual Assignment Hello world PRG 420 Week 2 Individual Assignment.
UFCFY5-30-1Multimedia Studio Coding for Interactive Media Fundamental Concepts.
CS 201 Lecture 1 (b) Using an IDE Tarik Booker CS 201: Introduction to Programming California State University, Los Angeles.
Java Programming Language Lecture27- An Introduction.
Introduction to java (class and object). Programming languages: –Easier to understand than CPU instructions –Needs to be translated for the CPU to understand.
Introduction to Object Oriented
CS210 Intermediate Computing with Data Structures (Java)
The need for Programming Languages
Computer Programming Methodology Introduction to Java
Software Programming J. Holvikivi 2014.
LRobot Game.
An Introduction to Java – Part I, language basics
Chap 4. Programming Fundamentals
Presentation transcript:

Structured Programming and UML Introduction Session 2 LBSC 790 / INFM 718B Building the Human-Computer Interface

Agenda Introductions Logistics Review & questions Working with Java UML introduction (time permitting) Team project

Software development process Development process models Requirements discovery Design specification Rapid prototyping

Rapid Prototyping + Waterfall Update Requirements Choose Functionality Build Prototype Initial Requirements Write Specification Create Software Write Test Plan

Rapid prototyping process Evaluate Refine Design Specification Identify needs/ establish requirements Build Prototype Final specification Exemplifies a user-centered design approach Start

Working with Java Source code & class files Statements Variables Expressions & operators Classes Arrays

Objectives Edit, compile and execute simple Java programs Use command line and Eclipse

Language Learning Learn some concepts & words Put words together in simple ways Examine to broaden understanding Create to deepen mastery Reflect to gain insight Repeat until fluent

The Big Picture ??

The Java Virtual Machine Java Compiler (javac) Java Virtual Machine (java) Java Source Code bytecode Keyboard Mouse Screen Speaker Network “compile time”“run time” Java Class File pseudo- english

Making Java Applications Start by defining a top-level class public class ExampleApplication { … } Create a main method in the top-level class public static void main(String[] args) { … } Put statements in the main method System.out.println(“Hello World!”); Add more methods to the class as needed Add more classes as needed

Getting the Java SDK to Work path –Where to look for javac, java, … classpath –Where to look for “.class” files Both can be set automatically –On WAM and Glue, “tap java” –On Windows: Control Panel->System->Advanced->Environment Variables

Statements in Java Sequential {…; …;…;} Semicolons are required at the end of every statement Conditional if (i==3) {…} else {…} Loop for (i=0;i<10;i++) {…} while (i<5) {…} Braces are optional around a single statement

Variables Hold a reference to an object –Or the value of a primitive data type Must be declared –Generally, done at the beginning of: Classes (“instance variables”) Methods (“local variables”) –Inline declarations are allowed Local variables must be initialized!

Operators in Java Arithmetic operators + - * / Logical operators = > && || ! String operator +

Arrays in Java A set of elements –For example, the number of days in each month Each element is assigned an index –A number used to refer to that element For example, x[4] is the fifth element - count from zero –Arrays and loops work naturally together

Team Project Designed for teams of three people –Larger or smaller is okay, working alone is not Form team, choose goal by week 6 –Plan on 6 hours per person per week after that –Choose one of sample project ideas, or invent your own –See:

Team Project Go through three prototype iterations –2 weeks each (=36 person-hours to design/code/test) Make a presentation during the final class session

Coming up Exercise 2 will be revised & posted Friday noon Start thinking about projects Next week: –Modular programming –UML use case models

Muddiest Point On a blank sheet of paper, write a single sentence that will convey to me what you found to be the most confusing thing that was discussed during today’s class.