Study Guides (248,471)
Canada (121,570)
COMP 1405 (5)
all (2)

COMP 1405A Notes.doc

9 Pages
154 Views
Unlock Document

Department
Computer Science
Course
COMP 1405
Professor
All Professors
Semester
Winter

Description
COMP 1405AIntroduction to Computer SciencePage 1Course NotesAlgorithmhow to do something not necessarily in programming language could be in English expressed as a detailed list of instructions for accomplishin a taskPropertiesWelldefined input may be nothingUnambiguous sequence of instructionsInstructions are atomic indivisibleProduces some outcomeResult is either the transformation of input OR physical changesTerminates when task is completeHow good is an algorithmHow fast is itDoes it respond to every inputDoes it waste resources ie memoryIs it easy to communicateIs everything an algorithm No AlgorithmSoftwareSpecific Tool not designed functiongoalfor specific functionProgrammingSometimes implementing algorithmsDevising new algorithmsSometimes implementing behaviours not algorithmsEventdriven programming software responds to outside events mouse clickLanguage SyntaxWhat instructions are availableHow to format an instructionSpecial SymbolsSemicolonused to end a statementParenthesesindicates input to a functionCurly braces used to group statementsVariablesNames given to data with a specific meaningSome are already given in Processing height of screen width mouseX mouseyValue can change as the program executes but the meaning stays the same ex score in a hockey game bank balanceIteration loopingUsed to do something over and overProcessing has a draw loop setup function called only once at the beginning draw function called after loops at 30 fpsProcessing Structure
More Less

Related notes for COMP 1405

Log In


OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit