Complete any number of the problems below (submission instructions at the end). Correct completion of each problem is worth the point values they are listed under. You may submit more than worth of problems, but the maximum grade you can receive is 10.
Move a character x steps: Ask the user to supply a number under 100. Move the character by that number of steps.
Display an error message if the user inputs a number greater than 100.Age calculator: Create a project that asks for the user’s birth year and calculates their age based on this number, displaying the value to the screen.Sprite movement: Make a sprite that moves up and down based on the arrow keys. Whenever the sprite is in the top 25% of the screen, it says “I like it up here.”
Draw a star – Have a sprite draw a star pattern
Collision detector: Include 2 or mores sprites. Cause each to move based on a trigger. When they collide, they say “Excuse me” or “pardon me”.
Add to a list: Create a list of colours. Ask the user what their favourite colour is; add the colour to the list if it isn’t already there.
Magic 8 ball – Create a sprite that says one of the following 5 phrases (using a list) randomly when clicked. It remains to be seen.
• Chances are looking good
• Absolutely.
• Concentrate and ask again.
• Never.
Ask the user to pick a number between 1 and 5. Display the phrase that corresponds to that list number.
Counting sprite – Create a sprite that counts starting at 0 and counts to 100, displaying the count at each step.
Play the meow (or another) sound whenever an odd number is reached. Hint: learn what all the operators do
The post CMPT 104 Computer Science appeared first on My Assignment Online.