Watch remaining video of
Greatest Inventions will Bill Nye: Communication
Greatest Inventions will Bill Nye: Communication
learningvariables.sb | |
File Size: | 603 kb |
File Type: | sb |
Chase Teaching:
· control a sprite with the arrow keys left or right (repeat until ...touching edge)
· Create a chase game
· Forever loop... if touching bad guy send out broadcast
Set up a timer to determine score.
Ask and Wait command
Variables and Broadcast
Download the file and finish the code, so the following occurs:
The person is asked how many throws. She will respond that she will make X throws and then she completes X throws.
Scratch Store Assignment
Your goal is to create an e-commerce type website using Scratch.
You will need the following stage backgrounds drawn/created by you:
You will need the following variable(s):
How the site will work:
Lastly:
· control a sprite with the arrow keys left or right (repeat until ...touching edge)
· Create a chase game
· Forever loop... if touching bad guy send out broadcast
Set up a timer to determine score.
Ask and Wait command
Variables and Broadcast
Download the file and finish the code, so the following occurs:
The person is asked how many throws. She will respond that she will make X throws and then she completes X throws.
Scratch Store Assignment
Your goal is to create an e-commerce type website using Scratch.
You will need the following stage backgrounds drawn/created by you:
- A page or two to hold the items for sale
- A checkout page
- 4-8 items you are selling, each with their own price (each separate sprites). You can use ready-made or found sprites but you will need to ‘draw’ the price on each.
- A Checkout button (for moving to the checkout page)
- A Cashier sprite who will give the customer an updated total whenever they click on an item and will complete the checkout.
The Cashier can stay on the screen at all times if you wish.
You will need the following variable(s):
- total
- more as you see fit.
How the site will work:
- When a product is clicked on the Cashier should thank them for the purchase
- You should add its price to the total variable.
- This works for ALL products
- You will be sent to new page/background with a picture of a cash register (or something appropriate). This should be accomplished with a broadcast that hides all the appropriate sprites and switches the stage to the appropriate
background. - All sprites except the Cashier should be hidden.
- The cashier will read out the current total. It will then tell the customer the total amount of tax (calculated as 0.05*total) and finally, give the final total after taxes.
- You should figure out a way to end the program appropriately.
Lastly:
- Have a Welcome Page of some kind. Then include a new sprite that includes some sort of ENTER button. This button switches to the main store page and the rest of the program begins as before.
- Add a new variable called ProductName. As each product is clicked on, the ProductName variable is changed to match the
product clicked. Then, change the cashier’s words from ‘Thank you for your purchase’ to something like ‘Thank you for buying Nike Shoes’.
- When you reach the checkout stage and the final total is spoken, a Discount button should pop up.
- When the button is clicked, the user should be asked for a password. You will need to figure out how to use the ASK and
WAIT script. Hint: the ASK will store what the user types in a built-in variable called ‘answer’. - If the answer matches a code word that you have stored in a variable, they get 50% off.
- Restate their final total (even if it is not changed)