Computer Science Reaching Wider Summer School 2012.

Slides:



Advertisements
Similar presentations
Coding and Debugging. Requirements and Specification Recall the four steps of problem solving: Orient, Plan, Execute, Test Before you start the implementation.
Advertisements

JAVA BASICS SYNTAX, ERRORS, AND DEBUGGING. OBJECTIVES FOR THIS UNIT Upon completion of this unit, you should be able to: Explain the Java virtual machine.
JAVA BASICS SYNTAX, ERRORS, AND DEBUGGING. GCOC – A.P. Computer Science A College Board Computer Science A Topics Covered Program Design - Read and understand.
Software. What Is Software? software –Also called Computer programs –Are a list of instructions –Instructions are called code –CPU performs the instructions.
How do we make our Welcome.java program do something? The java in our Welcome.java file won’t do anything by itself. We need to tell the computer to execute.
How do we make our HelloTester.java program do something? The java in our HelloTester.java file won’t do anything by itself. We need to tell the computer.
Aalborg Media Lab 21-Jun-15 Software Design Lecture 1 “ Introduction to Java and OOP”
How do we make our Welcome.java program do something? The java in our Welcome.java file won’t do anything by itself. We need to tell the computer to execute.
CS 101 Problem Solving and Structured Programming in C Sami Rollins Spring 2003.
1 SD1042: Introduction to Software Development SD1042 Introduction to Software Development SCHOOL OF COMPUTING AND TECHNOLOGY Getting Started MODULE TEAM.
Concept of Computer Programming November 2, 2011.
CSE 131 Computer Science 1 Module 1: (basics of Java)
Activity 1 - WBs 5 mins Go online and spend a moment trying to find out the difference between: HIGH LEVEL programming languages and LOW LEVEL programming.
ITP © Ron Poet Lecture 1 1 IT Programming Introduction.
Peter Andreae Computer Science Victoria University of Wellington Copyright: Peter Andreae, Victoria University of Wellington Java Programs COMP 102 #3.
 3D graphics environment  Focuses on Object Oriented Programming  Provides immediate feedback through program visualizations  Contains a drag-and-drop.
Introduction to Python Dr. Bernard Chen Ph.D. University of Central Arkansas July 9 th 2012
Week 4-5 Java Programming. Loops What is a loop? Loop is code that repeats itself a certain number of times There are two types of loops: For loop Used.
Ch 1. Introduction Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2012.
1 Please switch off your mobile phones. 2 Prolog: The Initiation ET: Hey Alice! What is this on your desk? Alice: That’s a digital computer. ET: Digital.
What is Computer Science? … and why should you care?
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
Basics Programming Concepts. Basics A computer program is a set of instructions to tell a computer what to do Machine language = circuit level language.
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
Instructor: Tina Tian. About me Office: RLC 203A Office Hours: Wednesday 1:30 - 4:30 PM or .
©Xiaoying Gao, Peter Andreae First Java Program COMP 102 #2 2014T2 Xiaoying Sharon Gao Computer Science Victoria University of Wellington.
Week 1 Introduction to Computer Science and Object-Oriented Programming COMP 111 George Basham.
©2000, John Wiley & Sons, Inc. Horstmann/Java Essentials, 2/e Chapter 1: Introduction 1 Chapter 1 Introduction.
Session One Introduction. Personal Introduction Role of programmers Robot Examination HUD & HID Uploading Code.
First Java Program COMP 102 #2 2015T2 Xiaoying Sharon Gao Computer Science Victoria University of Wellington.
JAVA BASICS: Variables and References SYNTAX, ERRORS, AND DEBUGGING.
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.
Programming Concept Chapter I Introduction to Java Programming.
1 Please switch off your mobile phones. 2 WELCOME To ESC101N: Fundamentals of Computing Instructor: Mainak Chaudhuri
Problem of the Day  Why are manhole covers round?
Problem Solving using the Science of Computing MSE 2400 EaLiCaRA Spring 2015 Dr. Tom Way.
Lecture.1: Getting Started With Java Jiang (Jen) ZHENG May 9 th, 2005.
Programming for Beginners Martin Nelson Elizabeth FitzGerald Lecture 6: Object-Oriented Programming.
Chapter 1: Introducing JAVA. 2 Introduction Why JAVA Applets and web applications Very rich GUI libraries Portability (machine independence) A real Object.
22-July-2002cse142-13B-Development © 2002 University of Washington1 Development Tools CSE 142, Summer 2002 Computer Programming 1
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
CS101: Introduction to Computer Science Slides adapted from Sedgewick and Wayne Copyright © Your First Java.
1 WELCOME TO CIS 1068! Instructor: Alexander Yates.
Compilers and Interpreters. HARDWARE Machine LanguageAssembly Language High Level Language C++ Visual Basic JAVA Humans.
Ch 1. A Python Q&A Session. Why do people use Python? Software Quality Developer productivity Program portability Support Libraries Component integration.
CPS120: Introduction to Computer Science Compiling a C++ Program From The Command Line.
Java FilesOops - Mistake Java lingoSyntax
Peter Andreae Computer Science Victoria University of Wellington Copyright: Peter Andreae, Victoria University of Wellington Java Programs COMP 102 #3.
The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on.
Lecture1 Instructor: Amal Hussain ALshardy. Introduce students to the basics of writing software programs including variables, types, arrays, control.
Getting ready. Why C? Design Features – Efficiency (C programs tend to be compact and to run quickly.) – Portability (C programs written on one system.
Computer Science A 1. Course plan Introduction to programming Basic concepts of typical programming languages. Tools: compiler, editor, integrated editor,
Compilers and Interpreters
CS 177 Recitation Week 1 – Intro to Java. Questions?
© Peter Andreae Java Programs COMP 102 # T1 Peter Andreae Computer Science Victoria University of Wellington.
Programming for Interactivity Professor Bill Tomlinson Tuesday & Wednesday 6:00-7:50pm Fall 2005.
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 Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
C++ Programming Basics C++ Lecture 1 Stacy MacAllister.
Introduction to Computer Science What is Computer Science? Getting Started Programming.
Introduction to Object Oriented
Lecture 1b- Introduction
Comp Sci 200 Programming I Jim Williams, PhD.
Lecturer: Mukhtar Mohamed Ali “Hakaale”
Writing Methods.
String Output ICS 111: Introduction to Computer Science I
Intro to digital technology
Tonga Institute of Higher Education IT 141: Information Systems
Tonga Institute of Higher Education IT 141: Information Systems
IS 135 Business Programming
Presentation transcript:

Computer Science Reaching Wider Summer School 2012

Welcome Your Hosts- – Me (Andy Ryan) PhD Student visual computing – Tom Owen PhD Student Future Interactions Technology (FIT) lab

Aim Turn you into expert programmers in two weeks – Lol, jk. We’re going to be just getting started. Inspire you, motivate you and draw you into the world of computer science. Produce a simple game in Java incorporating core Computer Science concepts

Plan Today – Introduction What is computer science. Your first program. Data structures – integral to efficient programming. Wednesday – Inheritance and polymorphism. Thursday – Algorithms, the blueprints of computer programming Friday – File Input/Output, Storyboarding

Coursework That’s right. COURSEWORK! Fun coursework – Go play some games. iOS, Android, Sony, anything. Get ideas, get inspiration. Next Monday – A brain storming session. Get your game designs ready, present it to the group bounce ideas around. Next week – making your own game in Java

What is computing? What does the word computing mean to you. What impact does computing have on your lives.

How? Computers are very STUPID! We have to tell them how to do everything But how can we do that when they’re so stupid. PROGRAMMING!

Programming Pipeline Compile Test Debug Design Write

Programming Pipeline Compile Test Debug Design Write Algorithms are our blueprints. Good design = Good Programs Test things before we’ve even implemented them

Programming Pipeline Compile Test Debug Design Write Precise accurate instructions In a language the computer can understand Errors are common, don’t be put off.

Programming Pipeline Compile Test Debug Design Write The computer translates your code into machine code, BINARY Checks for SYNTAX errors. Won’t compile unless all syntax is correct

Programming Pipeline Compile Test Debug Design Write Try out your program Does it do what you really want it to do? Does it crash in certain conditions Is any maths correct

Programming Pipeline Compile Test Debug Design Write Revisit your code. Look for errors (beware the curse of copy- paste) Is you’re logic correct Does your program follow the design.

Java Object Orientated programming language Highly portable. Runs on pretty much anything. – What can you think of?

Classes and objects Object Orientated programming language Class Car String make String model Int topSpeed Int numPassengers Object Car1 make: ford model: Escort topSpeed: 120 numPassengers: 4 Object Car2 make: Mazda model: RX8 topSpeed numPassengers:1

An example Class MyFirstJavaProg { public static void main(String [] args) { System.out.println("Hello World!"); } What does it do? What patterns can you see.

Tools Programming is hard – Can simply use notepad. Not very fun. Tools make it easier Integrated Development Environments (IDEs) remove some of the hard work for us. – Tracks variable names – Colour codes text – Shows error locations We will be using an IDE called Greenfoot

Greenfoot Notice the compile button Class structure Interface

The Greenfoot Library Details on all the methods and classes included in Greenfoot. If your stuck. This is the first place for you to look.