Computer Science Canada

Program advice Please, thnks.

Author:  koolkid98 [ Mon May 22, 2006 3:18 pm ]
Post subject:  Program advice Please, thnks.

Hey, so i finaly got the bloody program to run. But now i cant seem to ask another question, i was wondering where i go about to add a second question onto the program? i dont know how to add a second question onto it.... thnks heres my program


code:
var music : string
var point : int
var song : int
var chars : array char of boolean
put "This is a two players Trivia game followed by a point system, person who answers the most questions correctly wins."
put "The buzzer buttons are z for player 1 and m for player2"
put "what song is currently playing? (press your buzzer key if you know"
put "1)Bitter Sweet Sympthony: by the Verve"
put "2)Into the Sea: by Dj Dean"
put "3)Mind Made up: by Tupac"
put "4)Sweet Day: by orangville"
loop
    Input.KeyDown (chars)
    if chars ('z') then
        put "what song is currently playing,player 1 (1,2,3 or 4)"
        song := 1
        get song
        if song = 1 then
            put "you got it right"
        end if
    elsif chars ('m') then
        song := 1
        put "what song is currently playing,player 2 (1,2,3 or 4)"
        get song
        if song = 1 then
            put " you got it correct"
        end if
    end if
end loop

Author:  LegendsEnd [ Mon May 22, 2006 4:16 pm ]
Post subject: 

There is a lot of stuff you should probably learn but it would take awhile for me to post so i'll just answer your question. At the end of your program, put "cls" which clears the screen and then ask your next question and copy your answering code.[/code]

Author:  LegendsEnd [ Mon May 22, 2006 4:17 pm ]
Post subject: 

Er, ignore that [/code] at the end of my last post lol, I was going to post the code for you but got lazy.


: