Assignment for Tuesday, December 22, 2009
Unicode Converter
Write a program that will convert a number into its Unicode Character and convert a character into its Unicode Number. ChrW(65) = "A", AscW("A") = 65
Write code into the textbox's keypress event so that the conversion will take place when the user presses the enter key.
Refer to page 143 in the textbook for more information.
Page 156 Exercise 5 - Monogram Use a large size font which is appropriate for a monogram. You may use a textbox to enter the name. Allow the use to enter the name in uppercase, lowercase or mixed case but the output will be displayed in a label as lowercase first initial, uppercase last initial, lowercase middle initial.
Page 156 Exercise 4 - Initials Use an Input Box to enter the data (not a textbox). Assignment for Monday, December 14, 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.
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:
1 dollar coin
1 half dollar
0 quarter
3 dimes
0 nickels
20 pennies