Results 1 to 7 of 7

Thread: Help with a project

  1. #1
    Join Date
    Sep 2010
    Location
    Northern Kentuckeh
    Posts
    759
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Help with a project

    So I'm working on my mid term for my intro to programming class. My teacher has admitted he doesn't know any of the things he is teaching very well. The book hasn't really explained the material I need to know to complete this. I'm just starting out learning this stuff so if anyone could help me it would be much appreciated.

    That being said, what I'm trying to do is make an application where the user inputs a variable that is multiplied by each element in a one-dimensional array(8 elements) and then displays each elements individual total and add those totals up for a grand total. The part I am stuck on is multiplying the variable by each element in the array. Everything else I feel like I can figure out. Would anyone be willing to lend me some of their knowledge?
    Quote Originally Posted by h_king1998 View Post
    how come it does not bank in al-kharid when i do mine 1 drop 1

  2. #2
    Join Date
    Jun 2006
    Posts
    694
    Mentioned
    0 Post(s)
    Quoted
    31 Post(s)

    Default

    Complain to your principal that he's an idiot.

  3. #3
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Here is a simple code example that should help you get started off. Let me know if you need help.

    Code:
    Sub Main()
    	Dim arrList As New ArrayList
    
    	arrList.Add(1)
    	arrList.Add(2)
            ...
            arrList.Add(8)
    
    	MultiplyValue(arrList)
    End Sub
    
    Private Sub MultiplyValue(ByVal list As ArrayList)
    	Dim num As Integer
    
    	For Each num In list
    	    Console.WriteLine(num * CInt(Me.txtInputValue.Text))
    	Next
    End Sub
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  4. #4
    Join Date
    Sep 2010
    Location
    Northern Kentuckeh
    Posts
    759
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Camo Developer View Post
    Here is a simple code example that should help you get started off. Let me know if you need help.

    Code:
    Sub Main()
    	Dim arrList As New ArrayList
    
    	arrList.Add(1)
    	arrList.Add(2)
            ...
            arrList.Add(8)
    
    	MultiplyValue(arrList)
    End Sub
    
    Private Sub MultiplyValue(ByVal list As ArrayList)
    	Dim num As Integer
    
    	For Each num In list
    	    Console.WriteLine(num * CInt(Me.txtInputValue.Text))
    	Next
    End Sub
    If there is anyway you can message me on MSN or Skype that would be super helpful. In the mean time I'll mess around with what you gave me and see if I can make it work
    Quote Originally Posted by h_king1998 View Post
    how come it does not bank in al-kharid when i do mine 1 drop 1

  5. #5
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    I don't have any chat programs on this computer and really don't feel like downloading some. If you could hop on IRC, I'd be more than happy to help.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  6. #6
    Join Date
    Sep 2010
    Location
    Northern Kentuckeh
    Posts
    759
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I'll download an irc program now. Which channel are you in?
    Quote Originally Posted by h_king1998 View Post
    how come it does not bank in al-kharid when i do mine 1 drop 1

  7. #7
    Join Date
    Jun 2006
    Posts
    694
    Mentioned
    0 Post(s)
    Quoted
    31 Post(s)

    Default

    Quote Originally Posted by doublex8 View Post
    I'll download an irc program now. Which channel are you in?
    #srl on Rizon network.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •