Lecture2 - Engineering Computation ENG ENG 1D04 1D04...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Engineering Computation ENG ENG 1D04 1D04 Lecture 2: Algorithms Mihai Albu Copyright 2008 Mihai Albu & Alan Wassyng 1 Announcements s Labs (4/5) s Quizzes (next week) s Comp. club http://www.youtube.com/eng1d04 Copyright 2008 Mihai Albu & Alan Wassyng 2 Lets start working s You should take advantage of Debug facilities User Controls repository Predefined classes Design mode facilities Copyright 2008 Mihai Albu & Alan Wassyng 3 Debug s A step-by-step execution of the program that allows variables observations, values, errors examinations. Build your project Set a breakpoint (F9) Run with F5 Execute one step at a time (F10) Examine variables, errors (hope not), expressions Copyright 2008 Mihai Albu & Alan Wassyng 4 Debug s It will greatly improve your understanding of code execution, loops, ifs, etc Copyright 2008 Mihai Albu & Alan Wassyng 5 Some samples s Try debug your program Use breakpoints Declare variables Implement ifs Implement loops Copyright 2008 Mihai Albu & Alan Wassyng 6 Algorithms s An algorithm is a step-by-step process that can be used to solve a specific problem s The algorithm could be implemented by manual operations performed by a person (or group of people), or could be implemented by some automated means - on a computer for example, or a combination of the above Copyright 2008 Mihai Albu & Alan Wassyng 7 Algorithm for Solving the Quadratic Copyright 2008 Mihai Albu & Alan Wassyng 8 Solving the Quadratic s So, we have a solution s Points to consider: Lots of ways of solving this problem (pay attention to the order of execution) Are we done?No s How should we document it? s How should we implement it now in C#? s How should we test it adequately? Copyright 2008 Mihai Albu & Alan Wassyng 9 Documenting?...
View Full Document

Page1 / 33

Lecture2 - Engineering Computation ENG ENG 1D04 1D04...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online