presented by lee zenke 2015 java programming pt. 1

9
Presented by Lee Zenke 2015 Java Programming PT. 1

Upload: cornelius-phelps

Post on 19-Jan-2016

215 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Presented by Lee Zenke 2015 Java Programming PT. 1

Presented byLee Zenke

2015 Java Programming PT. 1

Page 2: Presented by Lee Zenke 2015 Java Programming PT. 1

• Lesson 1: Prep for use of Java with NetBeans and FRC▫Here we will learn how and were to download all needed programs and

install them on a PC.• Lesson 2: Logical, step by step thinking.▫Break down a large problem into its step by step solution

• Lesson 3: Data types and operands▫Understand variable types in java and operands.

Training Outline

Page 3: Presented by Lee Zenke 2015 Java Programming PT. 1

• Download NetBeans with JDK 8• Make sure to choose correct installer based off

of operating system• Simply Follow the installer instructions to

successfully install NetBeans

Lesson 1: Install NetBeans with JDK 8

Page 4: Presented by Lee Zenke 2015 Java Programming PT. 1

•Click tools > plugins•Click the settings tab and then click Add and enter the info below and

click OK

Lesson 1: Configure NetBeans

Page 5: Presented by Lee Zenke 2015 Java Programming PT. 1

•First click “Check for Newest” in the available plugins tab•The check every plugin in the FRC category• Lastly Install•Follow instructions to finish installing•Restart IDE

Lesson 1: Install Plugins

Page 6: Presented by Lee Zenke 2015 Java Programming PT. 1

•Tools > Options•Open Misc. Tab •Click on FRC Configuration tab• Leave all settings default Except the Team Number field•Enter in your specific team number•NetBeans is now Good to Go!

Lesson 1: Configure NetBeans

Page 7: Presented by Lee Zenke 2015 Java Programming PT. 1

•Example 1: The Robot Man as taught by Mr. Mahnke▫Rules:

You are only allowed the following commands: Turn left 90 degrees, Move one step forward, Decrement counter, Increment counter, stand up, sit down, raise arms, lower arms, and lastly sense if touching a wall.

▫Goal: Your goal is to use these commands to create a system allowing a robotic man

to stand up and walk any distance to a wall and touch it then come back and sit down with his arms down.

Lesson 2: Logical, Step by Step Thinking

Page 8: Presented by Lee Zenke 2015 Java Programming PT. 1

• String• Integer• Double• Float• Long• Boolean• Char• Short• byte

Lesson 3: Primitive Data Types

Page 9: Presented by Lee Zenke 2015 Java Programming PT. 1

• == logical equal too• = set a variable equal to• != logical not equal to• && logical and operator• ++ increment by 1• -- decrement by 1• > logical greater than• >= logical greater than or equal to• < logical less than• || logical or

Lesson 3: Operands

• * multiply• / divide by• % modular division• + add• - subtract