Date post: | 31-Dec-2015 |
Category: |
Documents |
Upload: | steel-monroe |
View: | 52 times |
Download: | 3 times |
1
A Programming Fundamentals, Autumn 2013
Jason Sultana, School of Computing, Engineering and Mathematics, UWS
2
A Programming Fundamentals, Autumn 2013
Jason Sultana, School of Computing, Engineering and Mathematics, UWS
Who am I?
Jason SultanaSchool of Computing, Engineering and Mathematics
e-mail: [email protected]: www.jasonsultana.com
Please use UWS e-mail for general communication.
3
A Programming Fundamentals, Autumn 2013
Jason Sultana, School of Computing, Engineering and Mathematics, UWS
4
A Programming Fundamentals, Autumn 2013
Jason Sultana, School of Computing, Engineering and Mathematics, UWS
Assessments
5
A Programming Fundamentals, Autumn 2013
Jason Sultana, School of Computing, Engineering and Mathematics, UWS
Recap…What are we doing?
1. What’s a program? What does it consist of?
2. What is Java? Why do we use it? How does a programwritten in Java differ from a typical program?
3. What is Greenfoot? Why are we using it?
6
A Programming Fundamentals, Autumn 2013
Jason Sultana, School of Computing, Engineering and Mathematics, UWS
Introducing Objects in GreenfootProblem 1 – Getting Started
1. What are some things Clara has?
2. What are some things Clara can do?
7
A Programming Fundamentals, Autumn 2013
Jason Sultana, School of Computing, Engineering and Mathematics, UWS
Methods / FunctionsProblems 2 to Bonus Question
move();putLeaf();stop();
turnLeft();turnRight();removeLeaf();putLeaf();
act( );
8
A Programming Fundamentals, Autumn 2013
Jason Sultana, School of Computing, Engineering and Mathematics, UWS
C Style constructs
What do the highlighted fields mean?
9
A Programming Fundamentals, Autumn 2013
Jason Sultana, School of Computing, Engineering and Mathematics, UWS
Conditionsif(condition) {
//do something}
Can we rewrite any of this weeks pracs using conditions? Try Prac 2 – place a leaf only when there is not a leaf behind us.
10
A Programming Fundamentals, Autumn 2013
Jason Sultana, School of Computing, Engineering and Mathematics, UWS
This week• Get used to using Greenfoot• Finish and submit prac 1
• Fun stuff: Look up “Lady Java” on youtube