Presented by Lee Zenke 2015 Java Programming PT. 1.

Slides:



Advertisements
Similar presentations
AP Computer Science Anthony Keen. Computer 101 What happens when you turn a computer on? –BIOS tries to start a system loader –A system loader tries to.
Advertisements

STRING AN EXAMPLE OF REFERENCE DATA TYPE. 2 Primitive Data Types  The eight Java primitive data types are:  byte  short  int  long  float  double.
Air Force Institute of Technology Electrical and Computer Engineering
IntroductionIntroduction  Computer program: an ordered sequence of statements whose objective is to accomplish a task.  Programming: process of planning.
Conditionals with Strings The comparison operators we’ve seen so far (==, !=, >=, > etc.) all apply to numbers ( ints floats doubles etc.) and return either.
Variables Pepper. Variable A variable –box –holds a certain type of value –value inside the box can change Example –A = 2B+1 –Slope = change in y / change.
Bellevue University CIS 205: Introduction to Programming Using C++ Lecture 3: Primitive Data Types.
1 Data types, operations, and expressions Overview l Primitive Data Types l Variable declaration l Arithmetical Operations l Expressions.
Some basic I/O.
Switch Statement switch (month) { case 9: case 4: case 6: case 11: days = 30; break; case 2: days = 28; if (year % 4 == 0) days = 29; break; default: days.
CS 2511 Fall  Windows:  Start->Specialized Academic Software- >Programming Languages->NetBeans->NetBeans IDE x.y.z  where x.y.z is a version.
Integers: Multiplication & Division
Day 4 Objectives Constructors Wrapper Classes Operators Java Control Statements Practice the language.
Presented by Lee Zenke 2015 Java Programming PT. 2.
PERFORMING CALCULATIONS IN SCIENTIFIC NOTATION
Java Primitives The Smallest Building Blocks of the Language (corresponds with Chapter 2)
2440: 211 Interactive Web Programming Expressions & Operators.
Object-Oriented Programming Using C++ Third Edition Chapter 2 Evaluating C++ Expressions.
Java Data Types. Primitive Data Types Java has 8 primitive data types: – char: used to store a single character eg. G – boolean: used to store true or.
LESSON 6 – Arithmetic Operators
Introduction to Java Applications Part II. In this chapter you will learn:  Different data types( Primitive data types).  How to declare variables?
CH2 – Using Data. Constant Something which cannot be changed Data Type Format and size of a data item Intrinsic Data Types Pg. 47 – Table 2-1 Basic ones.
CSCI 1100/1202 January 28, The switch Statement The switch statement provides another means to decide which statement to execute next The switch.
( ) 1 ISYE 7210—Fall 2005 Design of Real-Time Interactive Simulations (in Java) Initial Notes Christine M. Mitchell Director & Professor Center for.
SCIENTIFIC NOTATION What is it? And How it works?.
 JAVA Compilation and Interpretation  JAVA Platform Independence  Building First JAVA Program  Escapes Sequences  Display text with printf  Data.
BUILDING JAVA PROGRAMS CHAPTER 2 PRIMITIVE DATA TYPES AND OPERATIONS.
Damian Tamayo Tutorial DTM Data Generator Fall 2008 CIS 764.
CHAPTER 4 GC 101 Data types. DATA TYPES  For all data, assign a name (identifier) and a data type  Data type tells compiler:  How much memory to allocate.
How to set up groups in Outlook Web Apps. Locate the Contacts Tab on lower left side of window Click on it to open it up the Contacts Window Select New.
Switch Statements Comparing Exact Values. The Switch Statement: Syntax The switch statement provides another way to decide which statement to execute.
Conditions CSCI 201L Jeffrey Miller, Ph.D. HTTP :// WWW - SCF. USC. EDU /~ CSCI 201 USC CSCI 201L.
Primitive Variables.
Getting Started Java Fundamentals CSC207 – Software Design Summer 2011 – University of Toronto – Department of Computer Science.
GUJARAT KNOWLEDGE VILLAGE Faculty Name:- Prof H.M.Patel Students Name:- SONI VISHAL THAKKER BHAVIN ZALA JAYDIP ZALA.
Programming in Java (COP 2250) Lecture 4 Chengyong Yang Fall, 2005.
The Robot and the Wall Introduction to Pseudocode Your Name Goes Here.
CompSci Primitive Types  Primitive Types (base types)  Built-in data types; native to most hardware  Note: not objects (will use mostly first.
Adding, Subtracting, Multiplying, and Diving Integers!!!
1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was.
Control statements Mostafa Abdallah
Introduction to Java Applications Part II. In this chapter you will learn:  Different data types( Primitive data types).  How to declare variables?
ICS102 Lecture 1 : Expressions and Assignment King Fahd University of Petroleum & Minerals College of Computer Science & Engineering Information & Computer.
What is 10-5? Correct! Click on the picture below to answer another question!
PERFORMING CALCULATIONS IN SCIENTIFIC NOTATION ADDITION AND SUBTRACTION.
Lesson 4 : Exponent Laws I Check it out... Can you see a short cut rule?
 Scientific notation is simply a method for expressing, and working with, very large or very small numbers. It is a short hand method for writing numbers,
Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)
Lecture 3: More Java Basics Michael Hsu CSULA. Recall From Lecture Two  Write a basic program in Java  The process of writing, compiling, and running.
Installing Analysis Tool Pak
PERFORMING CALCULATIONS IN SCIENTIFIC NOTATION
Chapter 4 Assignment Statement
Java Variables and Types
2.0 FUNDAMENTALS OF JAVA PROGRAMMING LANGUAGE
Assignment and Arithmetic expressions
Trainings 11/4 Intro to Java.
Unit-2 Objects and Classes
The Integer Song.
You will be given the answer. You must give the correct question.
Installing Analysis Tool Pak
Java Lessons 5 – 8 Mr. Kalmes.
Expressions and Assignment
INC 161 , CPE 100 Computer Programming
Robotics Programming Using Shaft Encoders
Operators In Java Programming By Rajanikanth B.
PERFORMING CALCULATIONS IN SCIENTIFIC NOTATION
PERFORMING CALCULATIONS IN SCIENTIFIC NOTATION
Review of Integers and Solving Equations
DATA TYPES There are four basic data types associated with variables:
Primitive Data Types and Operators
Presentation transcript:

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

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

Click tools > plugins Click the settings tab and then click Add and enter the info below and click OK Lesson 1: Configure NetBeans

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

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

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

String Integer Double Float Long Boolean Char Short byte Lesson 3: Primitive Data Types

== 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