Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

2010 Homework #02 - Coins

Name: Anonymous 2010-01-10 4:35

How many ways can one make a single US dollar from exactly 10 coins? Write a program that calculates the answer to this. For bonus points, write one that can calculate the answer for any amount of money and any amount of coins.

50 cent pieces, quarters, dimes, nickels, and pennies are allowed.

The answer to the problem is 6. ENTERPRISE C SOLUTION in the next post.

Name: Anonymous 2010-01-15 23:29

>>40
rt 90 fd 10
repeat 4 [lt 45 fd 5]
repeat 4 [rt 45 fd 5]
fd 5

pu
fd 5
pd

rt 90 fd 22
lt 45 fd 5
lt 45 fd 10
lt 45 fd 5
lt 45 fd 22

pu
rt 90 fd 5
rt 90 fd 25
pd

lt 90 fd 10
repeat 4 [lt 45 fd 5]
repeat 4 [rt 45 fd 5]
fd 5

pu
fd 5
rt 90
fd 25
lt 90
pd

fd 10
repeat 4 [lt 45 fd 5]
repeat 4 [rt 45 fd 5]
fd 5

pu
fd 5 rt 90 fd 25
pd

lt 180 fd 25
rt 135 fd 10
lt 90 fd 10
rt 135 fd 25

pu
lt 90 fd 5 lt 75
pd

fd 26 rt 150 fd 26

pu
lt 75 fd 5 lt 90
pd

fd 25 rt 135 fd 20 lt 135
pu
fd 14
pd
lt 180 fd 25

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List