Category Archives: Programming 11/12

Course Selection


Grade 8 Integrated into Business 8
Consider joining the Programming Club!
Grade 9 Information and Communications Technology 9 (MADIT09)
Computer Studies 10 (MCSTU10 with teacher approval)
Grade 10 Computer Studies 10 (MCSTU10)
Computer Programming 11 (MCMPR11 with approval)
Grade 11/12 Digital Communications 11 (MDCOM11) → Intro Course
Computer Programming 11 (MCMPR11)
Computer Programming 12 (MCMPR12)
Computer Information Systems 12 (MCINF12 with approval)
Legend Introductory | Programming | Hardware


INFORMATION AND COMMUNICATION TECHNOLOGIES 9 – MADIT09 – Information technologies incorporate social, ethical and sustainability considerations as a part of their operation and design. Students taking this course should be interested in how communication through tools like the Internet and social media develop their understanding of personal and social communication. Open to Grade 9 students only.

COMPUTER STUDIES 10 – MCSTU10 – This course will include the development of proficiency in modern programming practices and theory. Students taking this course should be interested in the process of programming computers and learning various high-level computer languages. Open to Grade 9 and 10 students.

DIGITAL COMMUNICATIONS 11 – MDCOM11 – THIS IS AN INTRODUCTORY COURSE INTENDED FOR STUDENTS WITH LIMITED COMPUTER EXPERIENCE. In this course, students can explore media that they use every day to determine what goes into the design of popular apps and the impact of new social media on mobile systems. Students should be interested in using computers to solve a variety of problems and should be open to working on website design as a conduit for all kinds of human interest and values. Open to Grade 10-12 students with NO previous experience in computing and programming.

COMPUTER PROGRAMMING 11 – MCMPR11 – In this specialized course, students will explore computer code languages to develop programs that will offer solutions to practical problems such as those associated with website construction, mathematics, or business. Students taking this course should be interested in using high level computer languages and developing strong debugging skills. Open to:

  • Grade 10 and Grade 11 students who have taken Computer Studies 10.
  • Grade 11 and Grade 12 students with solid math background.

COMPUTER PROGRAMMING 12 – MCMPR12 – Programming at the senior level requires a serious commitment to a high-level of self-reflective problem solving of complex computer algorithms. Students should have an interest in working on complex projects that require the ability to work independently with a high degree of self-discipline. Open to:

  • Grade 11 and 12 students who have take Computer Programming 11.
  • Grade 12 students with strong math background.

COMPUTER INFORMATION SYSTEMS 12 – MCINF12 – Students taking this course should have an interest in network design and maintenance both in terms of the hardware and software used by global computer networks. Students will learn to install software, troubleshoot network software, maintain lab computers, research and test new software, and support network users. Open to Grade 11 and 12 students with teacher permission.

Source: Kitsilano Course Planning Guide 2020-2021

Programming 12: Sic-Bo (骰寶)

Simplified Rules of Sic-Bo:

  • Player enters the table with money in his/her wallet.
    • Player can bet any whole-number amount he/she chooses less than or equal to the amount they have in their wallet. (Minimum $1)
    • Player places a bet on either BIG or SMALL based on the sum of three dice.
      • SMALL: 4 to 10
      • BIG: 11 to 17.
  • Dealer randomly rolls three dice (each dice is numbered 1 to 6) after bet is placed.
    • Dealer wins if the player misplaces the bet OR if the dealer rolls a triple (e.g. 1-1-1, 2-2-2, etc.). For example, if the player bets $5 and loses, then the player loses $5 from his wallet.
    • Player wins a 2:1 payout if he/she guesses correctly. For example, if the player bets $5 and wins, then the player gains $5 from his wallet.
  • Game is over when either player cashes out or has no more money.
Continue reading

Programming 12: Math Operations

mathopsThe class then typed in code for the “Add” button in which it calculated the sum of two numbers in the text fields but crashed when one of its input is numeric. This issue was addressed in the String Operations example in which the class learned how to check if the input in the text fields are numeric and how to combine two or more strings. These examples can be found on the school network drive under S:\Handout\Programming 11-12. Note: You must copy the folders onto your desktop or your storage device. You will not be able to save and run from the read-only network drive. Assignment: You will modify the Math Operations example that meets the following criteria

  1. The results can be decimals. For example, if 12.1 and 23.4 are entered into the text fields, the result is 35.5.
  2. The program adds, subtracts, multiplies and divides numbers. It then displays the result in a MsgBox.
  3. The text in the MsgBox displays a sentence. For example, if 12 and 13 are entered, it displays “The sum is 25.” rather than just “25”. To do this, review how to join strings in the the String Operations example.
  4. If one of the inputs in non-numeric (i.e. blank or text), then the MsgBox displays “Enter numbers only.”. To do this, review the IsNumeric function in the String Operations example.
  5. The text in the MsgBox displays “Unable to divide.” if the second number is zero when dividing. To do this, the input has to be a number and then check if it is zero. There are two ways to check:
    If (num2 <> 0) Then      normal division Else      error message End If If (num2 = 0) Then      error message Else      normal division End If
When complete, zip the entire folder in Projects and then upload the file onto the shared Google Drive folder. Evaluation: Total 10 marks
  • Proper comments and well-labeled names (2 marks)
  • Add, subtract, multiply and divide (4 marks)
    • Provides correct answers.
    • Includes decimal inputs and outputs.
  • Exceptions (2 marks)
    • Non-numeric
    • Division by 0
  • Visual Design (2 marks)
    • Displays “The result is ___.” with a period.
    • No spelling, grammar or punctuation errors in MsgBox.
    • Visually nice and easy to use.
  1. Take time to edit the “Add” button properly so that it displays the result in a sentence and handles non-numeric inputs properly. After this is done, copy/paste and modify the other three arithmetic operations.
  2. To display a number with a string in a message box, you need to type:
    MsgBox("The sum is " + sum.ToString())
  3. To check if your text fields are numeric, you need to type:
    ' Create variables Dim num1 As Decimal ... If (IsNumeric(Input1.Text) and IsNumeric(Input2.Text)) Then      ' Store into variables      num1 = Input1.Text      ...      ' Calculate and display result Else      ' Display error message End If
  4. Handle the “division by zero” exception last. Hint: Both inputs must be numbers before you can check if the second input is zero.

Article: Vancouver facing shortfall of talent to fill tech jobs (Vancouver Sun)

Full Story:

Vancouver will have more than 15,500 tech job openings between now and 2019, a recent report shows, which will intensify an already competitive job market that has companies fighting to attract new talent and keep employees from heading south of the border.  Continue reading