Recent Changes

Thursday, December 20

  1. page Luck of the Draw edited ... Class Date: 12/20/12 What We learned ... it up. The syntax for the input box is InputBo…
    ...
    Class Date: 12/20/12
    What We learned
    ...
    it up. The syntax for the input box is InputBox("Message","Title Bar", "Default Vaule"). We had the focus go tot the first text box so that it saves time for the user and is more convenient. We had to add a new form for the second window. You had to go to Project then Add windows form. Arithmetic Operations produce an output. Thats what were doing with (lblCommissionResult.Text * 0.02) the computer has to calculate the answer for our input.
    Student Name: Griffin O'Connor
    Class Date: 12/6/12
    (view changes)
  2. page Luck of the Draw edited "Luck of the Draw" Wiki Page Student Name: Dalton Gamache Class Date: 12/20/12 What W…
    "Luck of the Draw" Wiki Page
    Student Name: Dalton Gamache
    Class Date: 12/20/12
    What We learned
    We learned how to make a label give us a result (lblCommissionResult.Text * 0.02). This gave us a 2% commission Result. if we would have put in 0.05 it would have gave us a 5% Commission result. Dim strName As String brings up a box that allows us to enter our name. In the Code it had Lynn Michaud as the automatic name. Whenever you type in strName you are calling upon the name that you typed in and typed in and it will bring it up.

    Student Name: Griffin O'Connor
    Class Date: 12/6/12
    (view changes)

Friday, December 14

  1. page Luck of the Draw edited "Luck of the Draw" Wiki Page Student Name: Griffin O'Connor Class Date: 12/6/12 What …
    "Luck of the Draw" Wiki Page
    Student Name: Griffin O'Connor
    Class Date: 12/6/12
    What Learning....
    Last class we learned about radio buttons, an odd circle-y thing use to select one option and one option alone. we also learned how to define a variable as an integer or decimal (dim int/dec-name as integer/decimal). Another thing we learned was message-box coding (MsgBox("MsgBox title", MsgboxStyle.button-types), and you can even have code effected by the option you choose (if MsgBoxResult.option then).

    Student Name: Derek Zhou
    Class Date: 11/27/12
    (view changes)
    9:59 am

Tuesday, November 27

  1. page Luck of the Draw edited ... 'Date: 11/26/12 'Purpose: Visual basic game that allows the programmer to experience the game…
    ...
    'Date: 11/26/12
    'Purpose: Visual basic game that allows the programmer to experience the game of guessing to find Dalton.
    'Programmer's name: Derek Zhou{Capture.PNG}
    'Objective: Programmer learns and experiences the use of variables to make the code run.
    Public Class Form1
    ...
    ' prepares the interface for a new game
    Dim randomGenerator As New Random (prepares the interface for a new game)
    ...
    through 5
    randomNumber = randomGenerator.Next(1, 6) (generates random number from 1-6.)
    ' display the "Is the mouse here?" image
    (view changes)
    9:44 am
  2. file Capture.PNG uploaded
    9:44 am
  3. page Luck of the Draw edited "Luck of the Draw" Wiki Page Student Name: Derek Zhou Class Date: 11/27/12 What we le…
    "Luck of the Draw" Wiki Page
    Student Name: Derek Zhou
    Class Date: 11/27/12
    What we learned:
    'Progam Name: Find the Wildcat
    'Date: 11/26/12
    'Purpose: Visual basic game that allows the programmer to experience the game of guessing to find Dalton.
    'Programmer's name: Derek Zhou
    'Objective: Programmer learns and experiences the use of variables to make the code run.
    Public Class Form1
    ' form-level variable for storing a random number
    Private randomNumber As Integer (describes comment code of 'form-level variable for storing a random number, code that tells program that its a number generator.)
    Private Sub pic1_Click(sender As System.Object, e As System.EventArgs) Handles pic1.Click
    ' displays either the mouse image or
    ' the "Not Here" image
    If randomNumber = 1 Then
    pic1.Image = picDalton.Image (randomly selects Dalton or not image)
    Else
    pic1.Image = picNot.Image
    End If
    End Sub
    Private Sub pic2_Click(sender As System.Object, e As System.EventArgs) Handles pic2.Click
    ' displays either the mouse image or
    ' the "Not Here" image
    If randomNumber = 2 Then
    pic2.Image = picDalton.Image
    (randomly selects Dalton or not image)
    Else
    pic2.Image = picNot.Image
    End If
    End Sub
    Private Sub pic3_Click(sender As System.Object, e As System.EventArgs) Handles pic3.Click
    ' displays either the mouse image or
    ' the "Not Here" image
    If randomNumber = 3 Then
    pic3.Image = picDalton.Image
    (randomly selects Dalton or not image)
    Else
    pic3.Image = picNot.Image
    End If
    End Sub
    Private Sub pic4_Click(sender As System.Object, e As System.EventArgs) Handles pic4.Click
    ' displays either the mouse image or
    ' the "Not Here" image
    If randomNumber = 4 Then
    pic4.Image = picDalton.Image
    (randomly selects Dalton or not image)
    Else
    pic4.Image = picNot.Image
    End If
    End Sub
    Private Sub pic5_Click(sender As System.Object, e As System.EventArgs) Handles pic5.Click
    ' displays either the mouse image or
    ' the "Not Here" image
    If randomNumber = 5 Then
    pic5.Image = picDalton.Image
    (randomly selects Dalton or not image)
    Else
    pic5.Image = picNot.Image
    End If
    End Sub
    Private Sub Btnstart_Click(sender As System.Object, e As System.EventArgs) Handles Btnstart.Click
    ' prepares the interface for a new game
    Dim randomGenerator As New Random (prepares the interface for a new game)
    ' generate random number from 1 through 5
    randomNumber = randomGenerator.Next(1, 6) (generates random number from 1-6.)
    ' display the "Is the mouse here?" image
    pic1.Image = picQuestion.Image (image code that selects the image to appear)
    pic2.Image = picQuestion.Image
    pic3.Image = picQuestion.Image
    pic4.Image = picQuestion.Image
    pic5.Image = picQuestion.Image
    End Sub
    Private Sub ExitToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles ExitToolStripMenuItem.Click
    Me.Close() (code that closes the game)
    End Sub
    End Class

    Student's Name: Griffin O'Connor
    Class Date: Thursday, November 1
    (view changes)
    9:39 am

Monday, November 19

  1. page Derek's and Dalton's Project edited Directions for css- 1. Open new NotePad and save as first.css 2. Type in the following code: b…
    Directions for css-
    1. Open new NotePad and save as first.css
    2. Type in the following code:
    body {
    background-color: #2C3FFF;
    color : #FFFFFF;
    }
    hr {
    color:sienna;
    width:80%;
    size:12 pt;
    #sidebar {
    width:50%; float:right;
    font-family:helvetica; font-size:13pt;
    font-weight:bold; text-align:justify;
    background:orange; color:black;
    border-style:outset; border-width:20px;
    border-color:silver;
    }
    h3
    {
    color:red;
    text-align:left;
    font-size:8pt;
    }
    a
    {
    color:red;
    }
    For css use only curly braces as tags are for html
    5. Empty body, paragraph, and header codes must be blank on html
    6. First type body {
    7. Next type background-color, followed by color code and semicolon ending the demand. Each line in CSS must end with a semicolon within each style tag.
    8. Color codes are hexadecimal notions of six-digit numeric codes
    9. After color code, type color: and any color you desire.
    10.close body tag by ending }
    11.Type h1 {. h1 stands for header 1
    12.After h1, type font-family;verdana
    font-size; 22px;
    color ; white;
    13. Open html website in Notepad
    14. On your HTML website, type the following code within the <head> </head> section at the top of your page: <link rel="stylesheet" type="text/css" href="first.css" />
    15. Save file as styles. css. You can name anything as long as it ends in .css. File save as. Save CSS in same folder as web page
    16. '''<link rel="stylesheet" type="text/css" href="styles.css" media="all">'' Insert this code between <head> tags on HTML file to link both sheets. href="styles.css"-shows the location of style sheet.

    Project
    (view changes)
  2. page Python edited Creating a "Basic" Python Code: RPSLSUD Link to 'Presentation'.' Step One: Download+I…
    Creating a "Basic" Python Code: RPSLSUD
    Link to 'Presentation'.'
    Step One: Download+Install Python
    Step Two: Code your code:
    ...
    Elif: Elif stands for Else If. Else if is used if an If/Then statement is false. An example code would be: If command = Rock Print ("No!")
    Elif command = Paper Print ("Yes!")
    ...
    is fufilled.
    Red Code: If the code is red, that means that it will not be included in the final running process.
    elif: If the red code is underlined and highlighted, that means you have an error!
    (view changes)
    10:31 am

Thursday, November 15

  1. page Python edited Creating a "Basic" Python Code: RPSLSUD Step One: Download+Install Python Step Two: Co…
    Creating a "Basic" Python Code: RPSLSUD
    Step One: Download+Install Python
    Step Two: Code your code:
    Definitions:
    Global: Global designates a variable that persists throughout the entirety of your code, including individual scenes/commands.
    Print: Print tells Python to say something on the screen for the user to read. It is, in a sense, the GUI. An example code would be:
    print ("I refuse to eat that cabbage.")
    Def: Def stands for Define. When def is used, it is used to define a variable. Very important. An example code would be: def Cabbage():
    If: If is a command that checks if something is correct. An example code would be: If a = b print ("Hello!")
    Then: Then works in conjunction with If. An example of code would be: If a = b Then c = d
    Elif: Elif stands for Else If. Else if is used if an If/Then statement is false. An example code would be: If command = Rock Print ("No!")
    Elif command = Paper Print ("Yes!")
    Prompt: Prompt activates if a specific requirement is fufilled.
    Red Code: If the code is red, that means that it will not be included in the final running process.
    elif: If the red code is underlined and highlighted, that means you have an error!
    The actual code:
    global h
    h = 0
    global a
    a = "Rock"
    global b
    b = "Paper"
    global c
    c = "Scissors"
    global score1
    score1 = 0
    global score2
    score2 = 0
    def start():
    print("YOUR WELCOME TEXT HERE")
    start2()
    def prompt():
    x = input("YOUR CHOICE TEXT HERE ")
    return x
    def prompt2():
    x = input("YOUR COMMAND TEXT HERE ")
    return x
    def prompt3():
    x = input("YOUR PLAY AGAIN TEXT HERE ")
    return x
    def rand():
    global h
    import random
    h=(random.choice([a,b,c]))
    print(h)
    def info():
    print("YOUR INFO TEXT HERE")
    start2()
    def play():
    global h
    global score1
    global score2
    command = prompt()
    if command == "Rock" or command == "rock":
    rand()
    if (h == a):
    print("Tie!")
    elif (h == b):
    print("You Lose!")
    score2 = score2 + 1
    elif (h == c):
    print("You Win!")
    score1 = score1 + 1
    else:
    print("Error something bad happened")
    play()
    elif command == "Paper" or command == "paper":
    rand()
    if (h == b):
    print("Tie!")
    elif (h == c):
    print("You Lose!")
    score2 = score2 + 1
    elif (h == a):
    print("You Win!")
    score1 = score1 + 1
    else:
    print("Error!")
    play()
    elif command == "Scissors" or command == "scizors" or command == "Scizors" or command == "scissors":
    rand()
    if (h == c):
    print("Tie!")
    elif (h == a):
    print("You Lose!")
    score2 = score2 + 1
    elif (h == b):
    print("You Win!")
    score1 = score1 + 1
    else:
    print("Error!")
    play()
    else:
    print("Error, unrecognised command")
    print("Choose either Rock, Paper, Scissors, Lizard, Spock, Dwarf, or Unicorn")
    print("Note: You can also type 'points' or 'score'")
    play()
    def start2():
    command = prompt2()
    if command == "info" or command == "help":
    info()
    elif command == "play" or command == "Play":
    play()
    elif command == "score" or command == "rock" or command == "Rock" or command == "paper" or command == "Paper" or command == "Scizors" or command == "scizors" or command == "Scissors" or command == "scissors":
    print("Command currently unavailable. Type 'play' first")
    start2()
    else:
    print("YOUR ERROR COMMAND HERE")
    start2()
    start()

    (view changes)
    11:02 am
  2. page space.menu edited ... Zach's Project Colin's Project Python Find the Wildcat [[include component="navigat…
    ...
    Zach's Project
    Colin's Project
    Python
    Find the Wildcat
    [[include component="navigation"]]
    (view changes)
    9:48 am

More