PDA

View Full Version : how to


styling
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?

fourbros
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