Math 3310 Discrete Mathematics

Coins Assignment

  • Write code that calculates for all the change values between 1 and 100 the number of English coins needed to make that change. Print the average number of coins needed, as a double. Use these coin values: 1, 5, 10, 25, 50, 100.
  • Repeat the above for binary coins: 1, 2, 4, 8, 16, 32, 64
  • Try to avoid repeating code
  • Turn in a hard copy of your code, with the two double numbers written on it.