Creating an Inventory of Java Fundamentals. Copyright 2012, Oracle. All rights reserved.

Similar documents
3 Improving the Crab more sophisticated programming

Wilson Area School District Planned Course Guide

The first program: Little Crab

2 The first program: Little Crab

Fundamentals of Java Programming

Lecture 2 Notes: Flow of Control

Fundamentals of Programming and Software Development Lesson Objectives

Teaching Pre-Algebra in PowerPoint

Install Java Development Kit (JDK) 1.8

Chapter 13: Program Development and Programming Languages

Name: Class: Date: 9. The compiler ignores all comments they are there strictly for the convenience of anyone reading the program.

Summit Public Schools Summit, New Jersey Grade Level / Content Area: Mathematics Length of Course: 1 Academic Year Curriculum: AP Computer Science A

Two-way selection. Branching and Looping

Moving from CS 61A Scheme to CS 61B Java

Algorithm & Flowchart & Pseudo code. Staff Incharge: S.Sasirekha

Introduction to Java Applications Pearson Education, Inc. All rights reserved.

Translating to Java. Translation. Input. Many Level Translations. read, get, input, ask, request. Requirements Design Algorithm Java Machine Language

COMPUTER SCIENCE (5651) Test at a Glance

2 Programming in Alice: Program Design and Implementation

First Java Programs. V. Paúl Pauca. CSC 111D Fall, Department of Computer Science Wake Forest University. Introduction to Computer Science

Interactive Game Design with Greenfoot YEAR 1 Greenfoot Single-player Interactive Game

Scoping (Readings 7.1,7.4,7.6) Parameter passing methods (7.5) Building symbol tables (7.6)

Java Application Developer Certificate Program Competencies

Perl in a nutshell. First CGI Script and Perl. Creating a Link to a Script. print Function. Parsing Data 4/27/2009. First CGI Script and Perl

COURSE TITLE. Computer Programming 1 LENGTH. One Semester Grades 9-12 DEPARTMENT. Computer Department Barbara O Donnell, Supervisor SCHOOL

Management Information Systems 260 Web Programming Fall 2006 (CRN: 42459)

Sequence Diagrams. Massimo Felici. Massimo Felici Sequence Diagrams c

Information Technology Career Field Pathways and Course Structure

JAVA - QUICK GUIDE. Java SE is freely available from the link Download Java. So you download a version based on your operating system.

WA2099 Introduction to Java using RAD 8.0 EVALUATION ONLY. Student Labs. Web Age Solutions Inc.

13 Classes & Objects with Constructors/Destructors

1 of 1 24/05/ :23 AM

EMC Publishing. Ontario Curriculum Computer and Information Science Grade 11

Kids College Computer Game Programming Exploring Small Basic and Procedural Programming

KS3 Computing Group 1 Programme of Study hours per week

1 Introduction. 2 Overview of the Tool. Program Visualization Tool for Educational Code Analysis

PHP Debugging. Draft: March 19, Christopher Vickery

This loop prints out the numbers from 1 through 10 on separate lines. How does it work? Output:

RARITAN VALLEY COMMUNITY COLLEGE ACADEMIC COURSE OUTLINE. CISY 105 Foundations of Computer Science

Designing with Exceptions. CSE219, Computer Science III Stony Brook University

CS 106 Introduction to Computer Science I

Creating a 2D Game Engine for Android OS. Introduction

Grade descriptions Computer Science Stage 1

JavaScript: Control Statements I

6. Control Structures

1 Introduction. 2 An Interpreter. 2.1 Handling Source Code

Programming and Software Development (PSD)

Triggers & Actions 10

River Dell Regional School District. Computer Programming with Python Curriculum

Code Kingdoms Learning a Language

Topics. Introduction. Java History CS 146. Introduction to Programming and Algorithms Module 1. Module Objectives

Introduction to Java

Mobile App Design Project #1 Java Boot Camp: Design Model for Chutes and Ladders Board Game

Acceptance Criteria. Software Engineering Group 6. 0/3/2012: Acceptance Criteria, v2.0 March Second Deliverable

JavaScript. JavaScript: fundamentals, concepts, object model. Document Object Model. The Web Page. The window object (1/2) The document object

Lab Manual: Using Rational Rose

Course Title: Software Development

GCE APPLIED ICT A2 COURSEWORK TIPS

CS 141: Introduction to (Java) Programming: Exam 1 Jenny Orr Willamette University Fall 2013

Computer Programming I & II*

Software Engineering Techniques

Chapter 13 Computer Programs and Programming Languages. Discovering Computers Your Interactive Guide to the Digital World

Java (12 Weeks) Introduction to Java Programming Language

Course Overview and Approximate Time Allotments. First Semester

Introduction to Automated Testing

Repetition Using the End of File Condition

Classes and Objects in Java Constructors. In creating objects of the type Fraction, we have used statements similar to the following:

The different kinds of variables in a Java program

Chapter 13: Program Development and Programming Languages

Sequence Diagram Tutorial. From: UML Distilled, Third Edition, Chapter 4 M. Fowler

Generating Automated Test Scripts for AltioLive using QF Test

6.1. Example: A Tip Calculator 6-1

Orange Unified School District Video Game Design II Year Course

Chapter 6: Programming Languages

AP Computer Science A - Syllabus Overview of AP Computer Science A Computer Facilities

CASCADING IF-ELSE. Cascading if-else Semantics. What the computer executes: What is the truth value 1? 3. Execute path 1 What is the truth value 2?

How To Teach Students To Program A Virtual World

MATLAB Programming. Problem 1: Sequential

VB.NET Programming Fundamentals

Sources: On the Web: Slides will be available on:

Test Specification. Introduction

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Computer Programming Tutorial

#820 Computer Programming 1A

Pemrograman Dasar. Basic Elements Of Java

Windows Live Movie Maker

C++ INTERVIEW QUESTIONS

Outline. hardware components programming environments. installing Python executing Python code. decimal and binary notations running Sage

KITES TECHNOLOGY COURSE MODULE (C, C++, DS)

Object Oriented Software Design

Programming and Software Development CTAG Alignments

J a v a Quiz (Unit 3, Test 0 Practice)

A UML Introduction Tutorial

Case studies: Outline. Requirement Engineering. Case Study: Automated Banking System. UML and Case Studies ITNP090 - Object Oriented Software Design

Q&As: Microsoft Excel 2013: Chapter 2

The Java Series. Java Essentials I What is Java? Basic Language Constructs. Java Essentials I. What is Java?. Basic Language Constructs Slide 1

Lab Experience 17. Programming Language Translation

Object-Oriented Design Lecture 4 CSU 370 Fall 2007 (Pucella) Tuesday, Sep 18, 2007

VHDL Test Bench Tutorial

2667A - Introduction to Programming

Transcription:

Creating an Inventory of Java Fundamentals

What Will I Learn? Objectives List and define Java Programming terminology Recognize and label Java programming constructs Identify incorrect Java programming syntax List programming tasks to design and implement a game using Java List five variations to include in programming Q/A tests 2

Why Learn It? Purpose Think about the first time you played a video game. You had to learn how to use the controller and what moves to make to participate in the game. Once you learned those concepts, you could then apply that knowledge to additional games or use that knowledge as a base for learning more games. This lesson reinforces what you know up to this point and prepares you to build upon that knowledge. 3

Programming Concepts and Terms A computer program is: A sequence of instructions Tells a computer what to do Learning to program is: Thinking about and capturing a sequence of instructions Breaking down a problem into smaller tasks Writing comments to inform other programmers 4

Alice 3 Concepts and Terms In Alice 3: Animation of 3D objects take place in a virtual world Galleries contain 3D objects that move in 6 directions An Object has an orientation A scenario describes an overall animation A storyboard can be visual or textual A program consists of lines of code Program code is structured in blocks (Do together) Functions provide properties of an object Functions can be used to compute a value Boolean functions return true or false 5

Alice 3 Concepts and Terms In Alice 3: Conditional control structures: Use relational operators to compare boolean expressions Are used to make a decision Repetition control structures: Repeat a section of code based on a true boolean expression Are referred to as loops 6

Greenfoot Concepts and Terms In Greenfoot: Scenarios consist of a set of classes Objects are created from a class Objects placed in a world are known as actors Objects have methods Method return types specify what a method will return Void return types return nothing Parameters are used to pass data to a method Parameters have types (int, boolean) Signatures are a specification of a method A subclass is a specialization of a class Every class is defined by source code 7

Greenfoot Concepts and Terms In Greenfoot: Source code must be compiled Dot notation is used to call a static method in another class Methods belonging to classes use the static keyword in their signature Methods can be defined for a new action New methods are called after they are defined Comments are ignored by the computer Constructors are a special kind of method Fields (instance variables) are used to store information The double equal symbol = = is used to test equality if/else execution is based on a given condition 8

Java Programming Terms Programming Terms: Algorithm Argument Boolean value Bug Comment Condition Conditional execution Control structure Count Decision Design Event Expression Function If/Else instruction Implement Instruction Loop Method Nesting Property Pseudocode Relational operator Repetition Runtime Scenario Storyboard Syntax Test 9

Recognize Java Program Constructs Name the constructs in this Alice 3 example. 1 2 3 10

Recognize Java Program Constructs Name the constructs in this Greenfoot example. 1 2 3 11

Recognize Java Program Constructs Name the constructs in this Java code. 1 2 3 12

Recognizing Java Syntax Errors Keys to recognizing Java program syntax errors: Learn the parts of a method signature. Recognize when symbols such as quotes and semicolons are missing. For every opening parenthesis there must be a closing parenthesis. For every opening curly brace there must be a closing curly brace. Inspect capitalization and spelling of variables. Look again! 13

Tasks for Designing a Game Create a game to solve a problem. The game could have a simple concept, such as being the first player to journey through a path of obstacles successfully. Problem Solving Process Step 1: Define the Problem Step 2: Design and Develop a Solution Step 3: Program and Implement the Solution Step 4: Run, Test and Revise the Solution 14

Define the Problem Game Element Scenario Scene Objects in the Scene Player's Actions Description Be the first player to reach the end of the trail cluttered by obstacles. Pathway with obstacle images impeding the path. Pathway, fallen trees, rock slides, flowing rivers, herd of buffalo, snow slides, stuck trucks Travel along pathway Reach an obstacle Select tool from bag to resolve the obstacle Resolve the obstacle Put tool back into bag and continue on path 15

Add Interesting Features As you define the game, think about the details that will make the challenge interesting: Multiple scenes, actions and objects Interactivity controlled by keyboard or mouse Tracking scores 16

Design and Develop Design the: Scenario Actors Obstacles Methods Conditions Repetitions Score keeping Keyboard interactions Develop the: Solution Sample data Messaging Documentation 17

Use a Project Plan to Track Progress Project Plan Component Define the Problem Design the Game Additional Details Scenario, actors, obstacles Methods, conditions, repetitions Score-keeping, keyboard interaction Develop and Implement the Game Execute the program Perform Quality Assurance Testing and Revisions Present the Problem and Solution Scenario, actors, obstacles Methods and variables for score keeping Quality Assurance Testing can be defined as a systematic process of checking to see whether a product being developed is meeting specified requirements. 18

Project Plan Components Project plans should include: Task list Task duration (start and end dates) Task resources Task dependencies Task Start End Resource Dependency Design Actors 15-Nov-2011 30-Dec-2011 Caron Scenario design 19

Quality Assurance (Q/A) Stages Software testing activities or stages include: Requirement analysis Test planning Test case development Environment setup Test execution Test cycle closure 20

Quality Assurance Tasks Quality assurance tasks in each stage: Software Testing Stage Requirements Analysis Tasks Listing the type of tests to perform Prioritizing and focusing tests Automation feasibility Test Planning Test Case Development Writing test plan strategy Selecting test tools Estimating time required for testing Training Creating tests Identifying test data and baseline data Requirement analysis defined as a process for determining user expectations. Test case can be defined as a set of conditions or variables with which a test engineer will determine if a software program is working correctly. 21

Quality Assurance Tasks Quality assurance tasks in each stage: Software Testing Stage Environment Setup Tasks Set up hardware and software environment Test Execution Test Cycle Closure Execute test plans Document results Retest fixes Qualitative and quantitative customer reporting Test execution is defined as the execution of the same test against many parts of a software program (interface, business logic, web layer, etc.) A test cycle is a set of defined start and stop points in a quality assurance program. 22

Examples of Software Testing Variations Software Testing Variations Change the environment Tasks Change the operating system Change the browser Change the display settings Change the fonts Change the execution Change the keystrokes used Change the capitalization used Start, stop, and pause the execution Change the data Input numbers when characters are expected Input characters when numbers are expected Input symbols and varying amounts of data input 23

Terminology Key terms used in this lesson: Quality Assurance Testing Requirements Analysis Test case Test execution Test cycle 24

Summary In this lesson, you learned how to: List and define Java Programming terminology Recognize and label Java programming constructs Identify incorrect Java programming syntax List programming tasks to design and implement a game using Java List five variations to include in programming Q/A tests 25

Practice The exercises for this lesson cover the following topics: Matching Java Programming terms to a definition Recognizing Java programming constructs Identifying incorrect syntax Writing a project plan for designing a game Writing a Q/A test plan 26