Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Exercises and Projects 159 Questions 1. In what ways) is an interactive animatio

ID: 3873628 • Letter: E

Question

Exercises and Projects 159 Questions 1. In what ways) is an interactive animation program different from a non-interactive (movie) animation program? 2. How is an event created at runtime? 3. List five different kinds of events that are available in the Alice system 4. What part of the Alice system is used to link an event to an event handling method? 5. What is the advantage of using one or more parameters in an event handling method? 6. Why should you test an event handling method that has a parameter several times, call- ing it with different parameters? 7. What is the advantage of using incremental development when creating an interactive program? 8. Why are events considered to be world-level in Alice? 9. How is it possible to make one event handling method respond to more than one event? 10. Suppose an Alice program has the event "When the world starts". How many times will this event occur when the program is run? 11. For exercise 8 below, (a) Create a textual storyboard (b) Sketch a flowchart Exercises and Projects

Explanation / Answer

1) In Interactive animation, the data and model can be changed at any time with the behavior of the model then observed. An interactive animation would be something like games or PowerPoint were an action from the user will trigger an activity.

In Non-Interactive program, the user cannot change data or model while the animation is in processing. The animation merely represents the playback of a movie. A non-interactive animation application would be like a movie because whatever you do, it won't deter Dracula from swooping over that little boy.

2) To create an event at runtime, we need to create an event handler. This can be done as follows;

i) Open the form in the code editor that you want to add and event handler to.

ii) Add method to your form with the method signature for the event that you want to handle.

iii) Add code to the event handler as appropriate to your application.

iv) Determine which form or control you want to create an event handler for.

v) In a method within your form's class, add code that specifies the event handler to handle the event.

3) i) When the world starts.

ii) While the world is running.

iii) When a key is typed

iv) When a key is pressed.

v) When the mouse is pressed on something.

vi) While something is true.

4) i) The event must be captured by the program, i.e. must be linked to some method.

ii) Once captured, the method should carry out some kind of response to the event.

8) When a class object is added, it reponds to the world.That is why events in alice are considered to be world level.

As per the chegg guidelines, I've answered first 4 parts and any other part.

THANK YOU.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote