Programming with Alice - Assignment Example

Only on StudentShare

Extract of sample
Programming with Alice

Alice does not have primitive methods to perform front left leg up and front left leg down. It is therefore required that the code for this movement be designed. Elegant design requires that methods are kept from being too large. To maintain a small size for the methods, additional methods are added to do the small tasks. The following is done
A loop is implemented at the point where the mouse takes a step ahead of the mouse. This loop ensures that whenever the mouse takes a step the cat takes another step of the same magnitude so that the mouse is always one step ahead of the cat.
The next step is transforming the storyboard into program code. The first action of the storyboard is the mouse turns to see the cat. The first method is therefore turn to face. We use the turn to face to make the mouse turn to look in the direction of the cat. The next step is the cat taking one step away from the cat. We use the move away method.
Alice contains control statements that are vital in controlling movements. In the cat chase program the cat moves away from the cat while the cat moves towards the mouse. The control statement Do in order is used to tell Alice to first make the cat look at the mouse and the mouse move away from the cat.
Other actions must be done together. When the front right leg is up for example, the front left leg must be held down. To achieve this functionality Alice is told to Do this actions together through the DO together control statement.
To implement this program into Alice a scene must first be created. The initial scene is a room (Farooq, 2012). The intention of the cat is to catch the mouse. It should follow it while the mouse should always be one step ahead of the cat. We select the room scene and then a cat and a mouse.
The next stage is in the program code editor. The code that makes the program is written. In Alice the program code editor is at the bottom right of the main window. The instructions are edited in the area ...Show more

Summary

Alice is a 3D interactive animation environment that offers visual representation of a program state in an animated small world to support new programmers in constructing and debugging programs. This paper explains the process of developing an animation of a cat chasing a…
Author : rosalee68
Programming with Alice essay example
Read Text Preview
Save Your Time for More Important Things
Let us write or edit the assignment on your topic
"Programming with Alice"
with a personal 20% discount.
Grab the best paper

Related Essays

Dynamic Programming: Resource Allocation
The technique has been used extensively by business managers around the world to solve complex problems. Because of its simplicity, the technique has been gaining popularity. This report analyses the benefits and limitations of dynamic programming and at the same time it explains the technique with the help of an example.
3 pages (750 words) Assignment
Game Programming
Similarly, pick a node front of queue; if unvisited, we visit the node and again place its neighbors in the queue. Contrary to BFS, DFS involves following the path in the graph as deep as possible. If there are no unvisited, adjacent nodes, then we backtrack to the previous level and start traversal again.
10 pages (2500 words) Assignment
Systems Programming
Print out the document when completed and hand it in by the end of TUESDAY of week 11. Marks will be deducted for poor presentation. Extensions will only be given in exceptional circumstances (such as those that would constitute Anglia mitigation) and will not be given for bad time management on your part.
4 pages (1000 words) Assignment
Alice Walker: A Voice of the Oppressed
African American experience involves many lingual, racial class issues that have always pricked the socio-political consciousness of the American Society. Alice favors the cause of those who are doubly oppressed: the black women. She articulates concerns about heritage and the role in American society of African American women and women of color.
4 pages (1000 words) Assignment
PROGRAMMING METHODOLOGIES II
ii. prints the sum of the numbers from 0 up to and including the number input. However, you only add the number to the sum if and only if that number is either even (evenly divisible by 2) or evenly divisible by three  // This condition
3 pages (750 words) Assignment
Linear Programming
The model has been solved using excel solver and the optimal solution is obtained. Further, a sensitivity analysis has been used to consider the impact of capacity increase on profitability. The
5 pages (1250 words) Assignment
Programming III ( Advanced )
Basically, the serialization mechanism involves creation of bytes sequence that contains the objects data together with information about the type of data being stored in the object and the objects’ data. The process of
3 pages (750 words) Assignment
Discussion 2 Week 8 Linear Programming Approach
As such, whether the problem-solver uses the graphical approach, the computer-based approach, or even sensitivity analysis, the same characteristics need to be clearly and accurately identified. The only disparity is discerning and deciding which LP solving approach would be
1 pages (250 words) Assignment
Individual Assignment
The animals are facing the same direction. The spacing between the two animals is one mouse step because they are separated by the stand of the table. In the next scene the cat turns right to face the
3 pages (750 words) Assignment
Programming and culture in architecture
For instance, the smell of vehicle exhaust fumes meant that there was a road or highway nearby. The sense of touch especially in the public square and park gave details of texture. From the
1 pages (250 words) Assignment
Get a custom paper written
by a pro under your requirements!
Win a special DISCOUNT!
Put in your e-mail and click the button with your lucky finger
Your email
YOUR PRIZE:
Apply my DISCOUNT