|
-
Feb 16th, 2004, 07:31 PM
#1
Thread Starter
New Member
I need help with a few questions
How would I program these in MS Visual studio .net:
1) DivisibleBy: Receives two positive integers. The first integer must be greater than the second. Return a zero-length string if this is not the case or if the integers are less than zero. Otherwise, the procedure will return a string containing all the numbers between 0 and the first parameter that are divisible by the second parameter with each number separated by a comma. For instance, if the arguments are 20 and 3 then the return string would be "3,6,9,12,15,18".
and this...
2) NumberOfTimes: Receives two strings and returns an integer representing the number of times the first string appears inside the second string. You cannot use the split method of the string object; however, the SubString and IndexOf methods should be quite helpful.
-
Feb 16th, 2004, 07:37 PM
#2
Retired VBF Adm1nistrator
We do not do other people's homework on this site.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Feb 16th, 2004, 09:33 PM
#3
Thread Starter
New Member
why don't you guys help out? pleassssse??
-
Feb 16th, 2004, 09:57 PM
#4
Because...
Originally posted by plenderj
We do not do other people's homework on this site.
Try to accomplish it on your own (that's what homework is about ), then if you have a specific problem, fell free to ask.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|