View Full Version : A Little Help With Programming Homework
tbone4690
10-09-2007, 12:47 AM
I need some help with my programming, I have no clue what lines of code to use for a program I have to make, I have about half of it done, I just need the last few and don't have a clue on what to do to get it done.
stonyarc
10-09-2007, 10:01 AM
Can you describe the app, programming language, the functions you require
SoccerHooligan
10-09-2007, 07:26 PM
Tbone, by accepting Stony's help, you must realize that the simple application that is required will be turned into a code bohemoth that not only does the task but gives financial advice, reminds you of your dry cleaning, makes coffee and or lattes and does your taxes....
Be prepared if the professor copyrights your hw....
tbone4690
10-09-2007, 07:55 PM
it involves visual basic, i need to write loops to accomplish the following tasks:
Ouput the multiples of 5 that are less than 1428. Done.
Output the word Cherokee, 20 times. Done.
Will take an inputted word and give it back to me backwards in another text box.
Outputs the sum of the numbers 1 - 200.
Outputs the numbers that are odd starting at 97 and going down to 7.
tbone4690
10-09-2007, 07:56 PM
teacher was pissed, that is for sure, no one had it done. I had my reasons though, internet had been down since friday, so I couldn't get it done.
stonyarc
10-09-2007, 09:08 PM
Third one could be done by using
Function ReverseString(ByVal sText As String) As String
Dim lenText As Long, lPos As Long
If Len(sText) = 0 Then Exit Function
lenText = Len(sText)
ReverseString = Space(lenText)
For lPos = lenText To 1 Step -1
Mid$(ReverseString, lenText - lPos + 1, 1) = Mid$(sText, lPos, 1)
Next lPos
End Function
tbone4690
10-09-2007, 10:38 PM
thanks soo much stony.
stonyarc
10-10-2007, 01:34 PM
no problem glad I could help
tbone4690
10-10-2007, 11:12 PM
I guess I need some more help, lol. I need to wirte a program that outputs the figures below if I put in the number 5.
*
**
***
****
*****
*
**
***
****
*****
second one needs to be a pyramid. I had the code to start out with this, but its at school and he decided we should finish this for homework, when I don't have the time to upload it, and make my next class.
tbone4690
10-11-2007, 08:09 PM
nvm seems everyong had no clue what to do, lol. He had no problem with that no one did it this time. The next one is actually pretty hard for us since we have till next tuesday to do it, I have pretty much already figured out how im going to do it. pretty much I have to make a program to check to see if a word i enter is a palidrome, i can just use the code stony game me, and set it up to say if the output is equal to the input then output weather that is true or not.
stonyarc
10-11-2007, 08:14 PM
The pyramid can also be solved like that
tbone4690
10-12-2007, 12:54 AM
yeah he went through the steps with us today, no one was able to get it to output right, only two people.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.