Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Thread Tools Display Modes
how to
Junior Member
Status: Offline
Posts: 1
Join Date: Mar 2013
Location: new york
Default how to - 03-25-2013, 07:30 PM

Use Alice to create a change counting game that gets the user to enter the number of coins required to make exactly one dollar. the world should have a character that asks the user to enter number of pennies,nickels,dimes & quarters.If the the amount equals a dollar the character should congratulate the user,however if the amount is less than or greater than $1, the user should be told also.Help Anyone?
Reply With Quote
Senior Member
fourbros's Avatar
Status: Offline
Posts: 476
Join Date: Nov 2011
Location: Right Behind You...
Default 03-26-2013, 07:35 AM

Use variables. Pennies are 1, nickels are 5, etc. Every time you enter a coin, the variable goes up a certain amount (dependent on what type you enter). Make a method that when the variable equals 100 you win. I hope this helps

My avatar is from the anime "Hyouka".......

You've probably never seen it, much less heard of it.....

You should watch it........

print("Hello World")
This is python code.

Lakers > Clippers
Vikings > Packers
Cardinals > Brewers/Pirates/Cubs/Reds
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright ©2021, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.