Assignment for Thursday, December 10, 2009
Next 5 Primes
Write a VB program that will display the next 5 prime numbers after the number you enter. Use the long data type. Use the format function to display your answers separated appropriately by commas.
Assignment for Wednesday, December 2, 2009
Complete the Phases of the Moon Animation
Assignment for Monday, November 30, 2009
25 coins = $2.00
Write a computer program which will determine every way in which exactly 25 coins equals exactly $2.00.
Our algorithm will use a series of nested loops which generates every possible combination of dollar coins (e.g., Susan B. Anthony Dollars), half dollars, quarters, dimes, nickels, and pennies that has any chance of being the answer and then filters all these combinations through an If-Then statement that will display only the combinations that add up to 25 coins and have 2 dollars in value.
Make sure that the output is easy to understand. Print words of explanation. For example:
25 coins = $2.00
1 dollar coin
1 half dollar
0 quarter
3 dimes
0 nickels
20 pennies