Spanish Vocabulary
A common exercise is teaching someone a new language is to show the person familiar objects and ask for the word for that object. In this exercise, you are to write a simple vocabulary builder to help someone learn the Spanish word for cat.
The scene shows a cat sitting on the grass and three Spanish words (3D text) displayed in frontof the cat. The user is expected to click on the correct Spanish word for cat.
A click on any other object will not work and causes the cat to shake his head "left to right", "right to left" indicating that the choice was incorrect).
If the user clicks on "gato" the cat will say "Si Si" with no head shaking.
Write a function (isGato) that returns true if the word (a 3D text object) selected is "gato" and false otherwise.
Add a congratulation billboard afterthe correct word is chosen.
Change the opacity of the false word if they select it so that it is no longer visible.
The function will use one parameter (objectClicked) to send in the 3D text word clicked by the user. Include comments for each major instruction in your program.This assignment assesses objectives 1, 2, 3, and 4.