Introduction to Programming using Java

Slides:



Advertisements
Similar presentations
Daily Routine wake up get up have a shower comb your hair get dressed
Advertisements

DAILY ROUTINES What do you do every day? 1.
2/18/2008ITK 1681 Feb. 20, Wed. 8:00 – 9:30 pm STV Closed book, notes, and no computer is allowed. 2.Everyone is allowed to bring a self- prepared.
UNIT SONG “I WAKE UP”. I wake up I wash my face.
Action Verbs Used in the Home The purpose of this presentation is to teach and quiz adult ESL students the application of some action verbs that can be.
Introduction to Programming Writing Java Beginning Java Programs.
T HE F INCH R OBOT AND THE W HILE L OOP Pepper. T HE R OBOT Developed by Carnegie Mellon students to teach CS Supports many compilers, including Java.
CS 106 Introduction to Computer Science I 03 / 19 / 2007 Instructor: Michael Eckmann.
Copyright © Curt Hill Turtles The beginning of media computation.
I WAKE UP IN THE MORNING 5 POINTS I BRUSH MY TEETH 3 POINTS.
Get up He gets up at 6am. Get up He gets up at 6am.
He gets up at.... He gets up at... He has a shower at ...
Introduction to Algorithms Engineering 1D04, Teaching Session 1.
Introduction to Programming Writing Java Beginning Java Programs.
WAKE UP GET UP WASH UP GET DRESSED BRUSH MY HAIR.
Seminar for Participants An Introduction on Robocode.
WHAT DOES KAREN DO EVERY DAY?.
WHAT IS PROGRAMMING ?. A program is a recipe telling the computer what to do Without a program, the computer does absolutely nothing. A program must tell.
STAGE 10: DICE RACE What do you remember from the last class? What was your favorite part? What do you wish we had had time to do?
(1) Introduction to Robocode Philip Johnson Collaborative Software Development Laboratory Information and Computer Sciences University of Hawaii Honolulu.
Introduction to Programming using Java
Java Methods and Applications CSIS 3701: Advanced Object Oriented Programming.
Introduction to Object-oriented Programming
3 Introduction to Classes and Objects.
University of Central Florida COP 3330 Object Oriented Programming
Welcome to Health Class
Winning Strategy in Programming Game Robocode
School Year Horizon Academy at Marion Oaks 3rd Period.
University of Central Florida COP 3330 Object Oriented Programming
Essential Study Skills
Past simple Welcome to our first lesson
Lesson Plan Our Demonstration Lesson Plan
Getting Ready for School
Its all about what people do and what happens regularly
CS 240 – Lecture 11 Pseudocode.
Classroom Procedures Mrs. Robyn Russell.
The Finch Robot and the While Loop
Organization Top 10 Ways to be organized
Conditional Statements
Routines.
Morning Activities ESL Lesson Beginning Level
DAILY ROUTINES.
What do you think the word consistent means?
نجاح وفشل المنشآت الصغيرة
An Introduction to VEX IQ Programming with Modkit
Barb Ericson Georgia Institute of Technology Oct 2005
FRIEND.
Transitions Words.
Algorithms.
Routines.
Find the slope between the following points. Use (y2 – y1)/(x2 – x1)
Vocabulary 1 wake up.
Daily routine.
DAILY ROUTINE COOK HAVE A SHOWER GO TO BED BRUSH WAKE UP WATCH TV
Find the slope between the following points. Use (y2 – y1)/(x2 – x1)
IDE (Integrated Development Environment)
Lesson 8 Always Brush Your Teeth!
My daily routine What I do every day.
A Day in the life Of Mrs. Clayton.
AP Bio Day 5.
Problem Solving with Time Intervals
Get ready... Are you next? Brush your teeth.
So early in the morning On a cold and frosty morning
What were you doing yesterday at 6 pm?
Daily Routines..
The beginning of media computation Followed by a demo
When do we get up ? o’clock / half past 2B:Unit 5.
My Day 刘美 May.
Presentation transcript:

Introduction to Programming using Java Day 7 and 8 Review Robocode Robots!

Review Classes and Objects What 2 things an object has data methods public and private methods have return types one object may inherit from another

Instantiating an Object 2 ways String bob = “this is a string”; String bob = new String(“this is a string”); Pig wilbur; Pig wilbur = new Pig();

New Concepts packages imports

Robocode let's take a look at some java code

The Java API http://docs.oracle.com/javase/6/docs/api/

Robocode API http://robocode.sourceforge.net/docs/robocode/index.html?robocode/Robot.html

Task 7 Start the Robocode IDE Create your own Robocode Robot set the color of its bullets set the color of its body start a battle

Day 8 Review import package Robocode and API:

Robocode API http://robocode.sourceforge.net/docs/robocode/index.html?robocode/Robot.html

New Concepts Jar files Algorithms an algorithm is a step-by-step procedure for doing something

The “Getting Ready for School” Algorithm 1. wake up 2. get dressed 3. eat breakfast 4. brush teeth 5. assemble school items like lunch, homework, etc 6. leave for school

“Drive in a square” algorithm 1. drive 100 units 2. turn right 90 degrees 3. drive 100 units 4. turn right 90 degrees 5. drive 100 units 6. turn right 90 degrees 7. drive 100 units

Task 8 Part 1: make your robocode robot drive in a square Part 2: make up your own algorithm to have your robocode robot “do nothing” until it is hit 5 times by a bullet Part 3: write the program for Part 2!