Thread: Convert to another script

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    2

    Convert to another script

    How do I convert this script to VBScript to be put into NotePad and run as Windows Script.

    start

    declare variables
    char elementCnt
    char newMember
    num testTotal equals 0
    num i equals 0
    num grades[]

    input “Enter the number of Tests” into elementCnt

    for i = 0 to (elementCnt - 1)
    grades[i] = 0
    input "Enter Score >> “ into grades [i]
    testTotal equals testTotal plus grades [i]
    i equals 0
    for i = 0 to (elementCnt - 1)
    print “Test Score “ plus i plus “ equals “ plus grades [i]
    print "Total >> " plus testTotal
    print "Average >> " plus (testTotal / elementCnt)
    3 - This
    end

  2. #2
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    639
    Quote Originally Posted by davewillis View Post
    How do I convert this script to VBScript to be put into NotePad and run as Windows Script.
    You pay attention in class.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. deallocating a struct containing arrays
    By maxtothemax in forum C Programming
    Replies: 5
    Last Post: 09-28-2009, 07:09 PM
  2. Script in games
    By Shakti in forum Game Programming
    Replies: 7
    Last Post: 09-27-2006, 12:27 AM
  3. In a game Engine...
    By Shamino in forum Game Programming
    Replies: 28
    Last Post: 02-19-2006, 11:30 AM
  4. Passing arguments to script.....
    By suwie in forum C Programming
    Replies: 5
    Last Post: 09-25-2004, 11:10 PM
  5. Game structure, any thoughts?
    By Vorok in forum Game Programming
    Replies: 2
    Last Post: 06-07-2003, 01:47 PM