Welcome Back!
New seats and a new semester! How to succeed in Moble Apps Semester 2
Login Information - setup your home page - slant.seq.org/~cdodge
Quick review of Logo Part 1 - what were the limitations of this program? What new procedures did you use to make your programs more abstract? What can be done to make those procedures more abstract, more general?
Unit 5.1 - Algorithms and Procedural Abstraction Introduction
Copy and paste the vocab to your vocabulary page.
Anatomy of a URL
Quick review of Logo Part 1 - what were the limitations of this program? What new procedures did you use to make your programs more abstract? What can be done to make those procedures more abstract, more general?
Unit 5.2 - Logo Part 2 but first a review of the Logo Program 4.4 - open your logo app.
What were the commands this program provided?
What were the problems with those commands?
Introducing Parameters (or arguments)
Sequence - most code is called line by line in the sequence you write it.
Selection - allows the program to choose between two or more different options (steps) based on a condition. - Conditionals - if, while...
Repetition - perform a series of steps for a given number of times - Loops - for, while...
Free Computers - not working but all the parts are there. Great starter if you wanted to play around with Linux.
Unit 5.2 - Logo Part 2 - Adding Parameters - making procedures more flexible, more generalized.
forward( distance ); - this command accepts a parameter which is a variable called distance that tells the command how far to move forward. When the command is called a distance value (an argument) is provided: forward(20);
NOTE: A parameter is the variable used by a procedure or function and an argument is the actual value passed to the procedure or function. In this case distance is the parameter and 20 is the argument.
Another way to make your procedures more abstract is to place repetitive statements into a loop. In the following exercises you will make use of a for loop or a for each block in this case. Anytime you see repeating lines of code consider using a loop to improve your code.
Begin Logo Part 2 - using procedures with parameters and loops.
Pair Programming! You will be working in pairs, with the person next to you to complete these exercises. Who is going to be the driver and who will be the navigator? After step 4 switch roles.
HINT: To draw a square the Android had to turn 4 times each by 90 degrees meaning it turned a total of 360 degrees.
You may also want to create variables for the number of sides and the length and then create text boxes that allow the user to enter these values.
Your draw program will then use the values the user enters. This step is optional but will save you time. Get your first couple of programs to work first then add this option if you have time.
1. Square - should be able to draw a square of any size.
2. Triangle - should be able to draw a triangle of any size.
3. Pentagon - should be able to draw a pentagon of any size.
4. Polygon - should be able to draw a polygon of any number of sides and of any size.
Stop at Step 4 to get Teacher Check!
5. Circle
6. Flower
7. Partial Flower
8. Your own creative design.
Get Teacher Check!