CST1620 C# / C++
Programming
Lab Week 3
Exercises |
||||||||||||||||||||||||||||
Exercise 4.12 (10
points) Write a C# application that uses looping to print the following table of values:
Write this as a windows application. Put the column data into a ListBox control. Hint: You will need something like this Result (Save to your local machine and run) Note: Extra credit if you create both 32x32 and 16x16 pixel custom icons for your program. (4 points) |
||||||||||||||||||||||||||||
Exercise 4.14 (10
points) A palindrome is a number or a text phrase that reads the same backwards as forwards. For example, each of the following five-digit integers are palindromes: 12321, 55555, 45554, and 11611. Write an application that reads in a five-digit integer and determines whether it is a palindrome. If the number is not five digits, display an error message dialog indicating the problem to the user. When the user dismisses the error dialog, allow the user to enter a new value. Result (Save to your local machine and run) Note: Extra credit if you are able to add the OK button to the message box and also have an icon on the message box. (2 points) Extra credit if you clear the previous palindrome message as soon as you begin entering in a new number. (2 points) |