PLAGIARISM AND EVALUATION
Direct copying of code from another student or the Internet is not
A mark of zero will be assigned for any copied exercise or
assignment. This applies to both the student copying and the student
Game Creation Tips
Creating a Transparent Image and PictureBox
Before creating a transparent PictureBox, youll need to first create an
image with a transparent background. This can be done a few ways; Ill be
talking about how to do it using Fotoflexer.
THE LISTBOX CONTROL
The ListBox control displays a list of items from which we can make a
selection. This is a good way of avoiding errors if input is left to the user.
Using a ListBox provides the user with all the possible items and those are
the only i
Experience point From Wikipedia, the free encyclopedia
Jump to: navigation, search An experience point (often abbreviated to Exp or
XP) is a unit of measurement used in many role-playing games (RPGs) and
role-playing video games to quantify a player chara
Multiple Choice Quiz
Save as LastnameI_ASSN03.
Due Date :
Friday, Dec 18, 2015
Run ASSN03.exe to see how programme works.
Write a programme to run a Multiple Choice quiz using the 10 questions
provided in the file questions.txt. Th
THE LISTVIEW CONTROL
The ListView control, like a ListBox, displays a list of items. The difference
is the items are displayed in columns. VB automatically adds a scroll bar if
the ListView is too small so that you can scroll up and down the list of items
: Game of MASTERMIND
Save as LastnameI_ASSN02.
Fri, Oct 30, 2015
When completed, copy and paste to Dropoff.
Please review Chapter 6, page 201 for more info.
The game of Mastermind is played as follows: one player (the codemaker)
0,Neighbours who heard a man screaming "I'm going to kill you!" was really:,deranged and high on drugs,playing with a baby kangaroo,just trying to kill a spider,running after his car which took off down a hill,C
1,A Seattle food company recently began sel
KEYPRESS EVENT IN VB 2010
So I am trying to figure out how to get a keydown even to work but in 2010
this seems to have changed:
Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress
Income Statement (partial)
Cost of Goods Sold
Cost of Godds Purchased
Cost of Goods Available for sale
Cost of Goods Sold
Programs, Comments, Variables
NOTE TO SELF: DIAGRAM VARIABLES
AND MEMORY LOCNS
A program consists of a series of statements.
Statements are instructions to the Python
interpreter which tell it to do something.
-making programs modular
Our programs are getting more and
One way to handle this complexity is to
Functions are chunks of code that
perform a specific task.
Calling the Function
We make the function p
How do we make data permanent?
So far, when we exit our programs any data we
entered or created is lost.
The program always starts from the same,
That's not how most programs behave in the
When we open a word-processing d
-multiple conditions in one if
Remember, the condition in an if
statement is a boolean data type
I.e. it gets tested to see if it is either true
Python has logical operators which let
us create co
File I/O Assignment notes
Algorithmic considerations for printing just a range of dates
from the file
The biggest difficulty of this assignment is to print out just the range of dates that you
want in the file. Your program needs to know when the dates in
Order of Execution
Statements in your programs execute in a
So far, that order has been simple.
Begin at the beginning and execute (i.e.
do) each statement once in order from the
top to the bottom.
This order can be alte
-make the computer do the work
One of the computers great strengths is its ability to
repeat the same instructions over and over and over
Suppose we wanted to output the integers from 1 to 100.
We could use 100 print statements
Native Python doesnt support graphics
We need to import the graphics module:
from Tkinter import *
Code along with me!
The Canvas and the Window
We paint our graphics on a canvas.
The canvas exists in its own
Radio Buttons: a type of selector in which
only one selection may be made at a time
Execute ICS3U_0405_RadioButtons.py to
Radio Button Constructor
R1 = Radiobutton(root,\
text = canvas.create_text(200,200,\
Call the create_text() method.
N.B. that the parent widget is the same canvas
variable as last time
1st two args are the x and y
Pseudocode: An Introduction
Flowcharts were the first design tool to be widely used, but unfortunately they do not
very well reflect some of the concepts of structured programming. Pseudocode, on the
other hand, is a newer tool and has features that make