Nobody downloaded yet

Programming with Alice - Assignment Example

Comments (0) Cite this document
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…
Download full paperFile format: .doc, available for editing
GRAB THE BEST PAPER94% of users find it useful
Programming with Alice
Read TextPreview

Extract of sample "Programming with Alice"

Download file to see previous pages 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 ...Download file to see next pagesRead More
Cite this document
  • APA
  • MLA
  • CHICAGO
(“Programming with Alice Assignment Example | Topics and Well Written Essays - 750 words”, n.d.)
Programming with Alice Assignment Example | Topics and Well Written Essays - 750 words. Retrieved from https://studentshare.org/logic-programming/1679943-programming-with-alice
(Programming With Alice Assignment Example | Topics and Well Written Essays - 750 Words)
Programming With Alice Assignment Example | Topics and Well Written Essays - 750 Words. https://studentshare.org/logic-programming/1679943-programming-with-alice.
“Programming With Alice Assignment Example | Topics and Well Written Essays - 750 Words”, n.d. https://studentshare.org/logic-programming/1679943-programming-with-alice.
  • Cited: 0 times
Comments (0)
Click to create a comment or rate a document

CHECK THESE SAMPLES OF Programming with Alice

Television Programming

...? Television Programming Task Television, found in most homes all over the world, has an enormous impact on the everyday life of people. It has an enormous influence on people’s culture. It is in light of the impact that the television has on the people lives that we would want to know how much of the American culture is advanced through programming and advertising and how the said culture is perceived. Introduction Advertising and programming fall under commercial television. Advertising and programming does not only promote the advertisements or the programme that one is watching they also contribute widely in changing ones beliefs mood and attitude about a particular thing or a particular activity. Everyone is responsible... for what they...
6 Pages(1500 words)Essay

Alice A 3D Graphical Programming environmet to teach algorithm development and control structures

...21 November 2007 Alice, a 3D Graphical Environment to Teach C++ Programming (I Introduction Learning to program offers many challenges to students, especially the ones with weak mathematical backgrounds. C++, an oriented programming (OOP) language, offers challenges to students to understand objects and related concepts such as inheritance and polymorphism and also memory management. Understanding memory management requires the ability visualize the use of the heap (or free store) by a running program. Use of graphics has become an effective means of teaching students how to program. As observed by Cooper et al "many students have...
3 Pages(750 words)Essay

Alice Walker

...Alice Walker Today, Alice Walker is one of the best-known and most highly respected in the US, but in order to better understand her creative work, one is to know the biography of the writer: Walker’s characters and images are inseparable from her own experiences. Alice was born in Eatonton, Georgia, the eighth and last child of Willie Lee and Minnie Lou Grant Walker. Her parents were sharecroppers, and money was not always available as needed. At the tender age of eight, Walker accidentally lost sight of one eye. Walker felt like she was no longer a little girl because of the traumatic experience she had undergone, and she was filled with shame because she thought she was unpleasant to...
9 Pages(2250 words)Essay

Game Programming

...it in ordered list OPEN list. Create a list CLOSED. This is initially an empty list. Each node 'n' maintains the following: g(n) = the cost of getting from the natal node to 'n' h(n) = the estimate, according to the heuristic function, of the cost of getting from n to the goal node. f(n) = g(n) + h(n); intuitively, this is the estimate of the best solution that goes through n. If OPEN is empty, exit with failure in algorithm. Select first node on OPEN. Remove it from OPEN and put it on CLOSED. This is node 'n'. If 'n' is goal node, exit the program. The solution is obtained by treating a path backwards along arcs in the tree from the node to n. Expand node n. This will generate successors. Read the list OPEN...
10 Pages(2500 words)Assignment

Programming

... in the program. b) void Time::setTime (int hh, int mm, int ss); { hour = (hh>=0 && hh<24) h :0; mnute = (mm>=0 && mm<=60) m : 0; second = (ss>=0 && ss <60 ) s : 0; } Time::Time() { hh=mm=ss=0; } c) Int Time::timesAreEqual (Time &tl, Time &t2); { if ( t1.hour= t2.hour && t1.minute == t2.minute && t1.second == t2.second ); return 1; else return 0; } Question 28 a) A pointer is a variable that holds some memory address. b) An array in C++ is a variable that holds subsequent memory locations up to the number declared by the user. The first element in the array has the index 0. d) when the statements q1 = &x; and q2 = &y; are executed pointer q1 get the value of x and q2 gets the value of y. x 78 y 96 x=78 y=96... Question 29 a) Dynamic data structures can grow or shrink according to the wish of the programmer. Static values do not hold this property; once declared they remain fixed to the defined length. b) After the assignment chPtr = new char[10]; chPtr content will be the memory location where char[10] is stored. Question 30 a) Encapsulation in object oriented programming is a technique that integrates data and operations to make an object. The benefits of encapsulation are abstraction and security. Abstraction in the sense that the operations and properties of an object are hidden from the outside world who is not...
9 Pages(2250 words)Research Paper

Programming with Alice

...birthday. Scene-3 In this scene the news of Cleopatra’s kidnap by the mummy is received by the Pharaoh .Anubis also makes appearance in this scene .The Pharaoh agrees with Anubis’s deal of marrying to Cleopatra in lieu of saving her life. Scene-4 : This is the concluding scene where Anubis is shown married to Cleopatra and Anubis also tells how Ra’s prophecy about Cleopatra was indeed true, Cleopatra was taken by death with Anubis being the Lord of death as her wife . Objects : In Alice all the characters and scenes are represented as objects .Following is the list of objects 1. Pharaoh Osiris 2. Isis 3. Cleopatra 4. Ra 5. Anubis 6. Pyramid 7. Sphinx 8. Oasis 9. Messenger Problems encountered : Alice...
4 Pages(1000 words)Coursework

Computer Programming

...Computer Programming Assignment [Insert [Insert Grade [Insert Introduction Computer programming is art of developing computer software. The aim of programming is to create instructions that computers will use in order to perform specific operations. This report will state how the program was developed to help the Chinese packing company use an order system to streamline orders from their user. System Requirements While making an order, the system should allow the user to specify the following requirements: a) The size of the container (length, height, width and/or radius). b) The grade of the card. c) Colouring required; no colouring, one or two colours. d) Whether they need any reinforcement at the bottom. e) Whether... ...
4 Pages(1000 words)Coursework

System Programming

...System Programming By This research is aimed at proving a hypothesis “with the improvements in the tools provided with or available for modern operating systems, the need to write scripts to assist in administering or investigating computer systems has been significantly reduced or even eliminated”. In this paper, I would give arguments to prove that we still want new scripts and programming applications because the tools and applications provided by an operating system cannot be used to perform every kind of job. There are many tasks which require writing and running new scripts and codes. This paper discusses the arguments of various researchers to prove this hypothesis. Introduction Without a doubt, at...
8 Pages(2000 words)Essay

Programming

...Logic and Programming Programming A problem Analysis Chart Given information The information provided is that children below 18 Years of age should not be considered as customers for purchases. Required Results Processing required Solution Alternatives The only alternative is to use the “if” condition to test whether the age is greater than, equal to or less than 18. 2. A flowchart 3. A chart showing input, output, and processing Year of Birth YOB Year Today YT Age (YT-YOB) Status Accepted / Rejected 4. Algorithm (Pseudo code) using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace...
1 Pages(250 words)Essay

Still Alice

...Still Alice Introduction The movie that is d Still Alice tells a story of a renowned philologist who suffers from early onset familial Alzheimers disease. This film raises may important question regarding what it feels to struggle with this disease from the person as well as for one’s relatives. This paper will provide a detailed analysis of different scenes from the movie and show how they are related to the general message. First encounter during the lecture It would not be a mistake to suggest that the directors did not portray their character with Alzheimers disease from the very beginning. That is why for a certain amount of time the audience waits when the early signs of it will be visible. Thus,...
7 Pages(1750 words)Essay
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.

Let us find you another Assignment on topic Programming with Alice for FREE!

Contact Us