2012-07-28 20:45:45 UTC
60 Points (20 points each)
1) Write a program using various procedures to perform the operations listed below. Call these procedures using delegates. Make sure to document your program and have the program print descriptive text along with the numbers in b. and c.
a) Print a text string in reverse word order.
b) Print the number of characters in the string.
c) Print number of words in the string.
2) Write a program that has a class shapes. SquareArea() and RectangleArea() are the two methods that calculates the area of a square and rectangle respectively. Create a delegate named Area, invoke the methods with the help of delegates and add the results produced by both the methods.
3) Write a program using various procedures listed below to perform the operations listed below. Call these procedures using delegates.
a) Print 1 to N odd numbers
b) Print 1 to N even numbers
c) Print 1 to N prime numbers
d) Print 1 to N even numbers which are exactly divisible by 4
Any help with this would be appreciated =]